Mining program with Depth-first search in ComputerCraft
- 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()
")
v1.64 or above
- (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
- A wireless modem
- Fuels
- Blocks to fill with The miner will fill the space with “Blocks to fill with” after digging the minerals.
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()
Place the mining turtle with this program, and then start this program by inputing “miner”
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.
2016-12-16
- More Notes
- An item-check before go mining
- Merged the two branches (master and Self-GPS), then whether there is a gps cluster, the program can work
2016-8-28
- Bug: The miner does NOT report the position of the mineral block, BUT the position of itself
- Do NOT ask for distance, but you can set some settings by editing file
- Check in a message history before broadcasting to the red net. The same thing won't be reported twice
2016-6-9
- Distinguish
- Abandoned mine shaft
- Nether fortress
- Fluid
- Replace fluid blocks with cobblestone
2016-6-3
- Function isearch(), it can search any item in inventory of the turtle
- Release memory
- Bug: typo
- GPS (Self-GPS and Outer-GPS)
2016-5-28
- Put cobblestone of the digged ore
- Check special blocks
2015-5-27
- Optimize dfs(0)
- Array Mineral
- Array Poop
2016-5-26
- Putting block in the turtle to compare block now need NOT!
2016-5-23
- Can't search for ores behind the turtle
- Program can't stop by itself
- Tip before asking for distance
2016-5-21
- Depth-first search
Using Apache License v2.0. See at Open Source Initiative