This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jan102's profile picture

Spiral Mining Program

Started by Jan102, 28 December 2012 - 11:56 PM
Jan102 #1
Posted 29 December 2012 - 12:56 AM
Some weeks ago I played on a server with some friends.
I wanted to craft an HV Solar Array and therefore I needed much more resources.
So I made this little mining program.

The program digs a spiral (1 block wide and 2 blocks high) around its starting point with 2 blocks between the tunnels.
After the turtle finished mining it returns to the starting point.
If the Inventory is full the turtle places an enderchest (enderchests are necessary) and puts all items inside, breaks the chest and continues.
You have to use the chunkloading turtle from Misc Peripherals so that the turtle won't stop if the chunk is unloaded.
Gravel and sand are no problem.

The enderchest has to be in the first slot of the turtle.
The turtle uses the coal it finds to refuel until it reaches a fuel level of 5.000.
I recommend you to start the turtle between y-Level 16 and 6 to get many diamonds ;-)

The program is used like this "spiral <number_of_tunnels>"

SpoilerExample: Spiral with 20 tunnels


Then it starts digging:





I think this program is very efficient and after the turtle has returned you can walk through the tunnels and mine all the remaining resources.

Pastebin link: click me

Have fun with this!
Wizy #2
Posted 31 December 2012 - 12:08 PM
so am i correct , deph is tunnel number divided by 4 ? cause i set it to make 200 tunnels so i have no idea where it will end up :D/>



Edit : woups , i thought it would create a reversed pyramid strip-mine (though i guess it shouldnt be hard to edit this to do that )
Jan102 #3
Posted 03 January 2013 - 09:40 AM
so am i correct , deph is tunnel number divided by 4 ? cause i set it to make 200 tunnels so i have no idea where it will end up :D/>
yes its about 1/4 of the tunnel number

Edit : woups , i thought it would create a reversed pyramid strip-mine (though i guess it shouldnt be hard to edit this to do that )
its only flat atm