Skip to content

Sayinore/ComputerCraft-Miner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

ComputerCraft-Miner

Mining program with Depth-first search in ComputerCraft

Features

  • Get all the minerals you can see in the mine road, and fill the air blocks with any block you want after digging mineral blocks
  • Report the positions of special things (such as diamond ores, mob spawners, nether fortresses, abandoned mine shafts) to the host computer
  • Place torches in the mine road
  • Fill fluid blocks with any block you want
  • Simple but useful functions (err, I mean functions like "function()")

Requirement

Mod version

v1.64 or above

Things in your map

  • (RECOMMEND) A GPS cluster (How to build a GPS cluster?)
    GPS clusters can help the miner to get its coordinates, so that you do not need to input the coordinates or direction before going mining. They are very useful.
  • (RECOMMEND) A wireless receiving computer

Things in/on your mining turtle

  • A wireless modem
  • Fuels
  • Blocks to fill with The miner will fill the space with “Blocks to fill with” after digging the minerals.

Usage

Installation

Open your turtle. If your mod version is 1.77 or above, then please use this command:

wget https://raw.githubusercontent.com/Sayinore/ComputerCraft-Miner/master/Miner.lua miner

If it's not, please use the following command in lua mode:

io.open("miner", "a");io.output("miner");io.write(http.get("https://raw.githubusercontent.com/Sayinore/ComputerCraft-Miner/master/Miner.lua miner").readAll());io.close()

Usage

Place the mining turtle with this program, and then start this program by inputing “miner”

Personalization

You may set your own settings. Just edit the following things:

--REPLACE YOUR OWN SETTINGS HERE
distance = 32
fillingblock = "minecraft:cobblestone"
--REPLACE YOUR OWN SETTINGS HERE

They're all in the top of the program. And they're my recommend.

Screenshots

A Screenshot A Screenshot A Screenshot A Screenshot A Screenshot A Screenshot A Screenshot A Screenshot A Screenshot

Changelog

v4.1

2016-12-16

Added

  • More Notes
  • An item-check before go mining

Changed

  • Merged the two branches (master and Self-GPS), then whether there is a gps cluster, the program can work

v4.0

2016-8-28

Fixed

  • Bug: The miner does NOT report the position of the mineral block, BUT the position of itself

Changed

  • Do NOT ask for distance, but you can set some settings by editing file

Added

  • Check in a message history before broadcasting to the red net. The same thing won't be reported twice

v3.6

2016-6-9

Added

  • Distinguish
  • Abandoned mine shaft
  • Nether fortress
  • Fluid
  • Replace fluid blocks with cobblestone

v3.5

2016-6-3

Added

  • Function isearch(), it can search any item in inventory of the turtle
  • Release memory

Fixed

  • Bug: typo

v3.0 2016-5-29

Added

  • GPS (Self-GPS and Outer-GPS)

v2.6

2016-5-28

Added

  • Put cobblestone of the digged ore
  • Check special blocks

v2.5

2015-5-27

Changed

  • Optimize dfs(0)

Added

  • Array Mineral

Removed

  • Array Poop

v2.0

2016-5-26

Changed

  • Putting block in the turtle to compare block now need NOT!

v1.1

2016-5-23

Fixed

  • Can't search for ores behind the turtle
  • Program can't stop by itself

Added

  • Tip before asking for distance

v1.0 [NOT RECOMMEND]

2016-5-21

Added

  • Depth-first search

License

Using Apache License v2.0. See at Open Source Initiative

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages