Posted 07 October 2012 - 02:45 AM
This little system I've made allows for a set of 9 turtles to mine using an extremely simple digging program. They can dig from surface to bedrock in under an hour, and at 20 layer checkpoints, they place their inventory into chests so they won't run out of space. A retriever bot can be sent out to move the chests to the surface, along with their inventories, so you can reach them. After all the chests have been moved, you can take whatever resources you want out of them, move the items to a sorting chamber, and let the turtle in the room sort them for you.
http://www.mediafire...5mrk56mm6hck5cw <Download for all the files that the sorting turtle uses.
Digging program:
turtle.select(1) turtle.placeUp()
turtle.select(2) turtle.dropUp()
turtle.select(3) turtle.dropUp()
turtle.select(4) turtle.dropUp()
turtle.select(5) turtle.dropUp()
turtle.select(6) turtle.dropUp()
turtle.select(7) turtle.dropUp()
turtle.select(8) turtle.dropUp()
turtle.select(9) turtle.dropUp()
turtle.select(10) turtle.dropUp()
turtle.select(11) turtle.dropUp()
turtle.select(12) turtle.dropUp()
turtle.select(13) turtle.dropUp()
turtle.select(14) turtle.dropUp()
turtle.select(15) turtle.dropUp()
turtle.select(16) turtle.dropUp()
end
function diggy()
for a=1,2 do
for x=1,22 do
turtle.digDown()
turtle.forward()
turtle.digDown()
end
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
end
for x=1,20 do
diggy()
turtle.digDown()
turtle.down()
end
chest()
for x=1,20 do
diggy()
turtle.digDown()
turtle.down()
end
chest()
for x=1,20 do
diggy()
turtle.digDown()
turtle.down()
end
Retrieval program:
for x=1,50 do turtle.down()
end
for x=1,16 do turtle.suckDown()
end
turtle.digDown()
end
function goUp()
for x=1,20 do turtle.up()
end
end
function goUpMoar()
for x=1,39 do turtle.up()
end
end
function take()
turtle.forward()
turtle.forward()
goDown()
goUp()
turtle.select(1)
turtle.placeUp()
turtle.select(2)
turtle.dropUp()
turtle.select(3)
turtle.dropUp()
turtle.select(4)
turtle.dropUp()
turtle.select(5)
turtle.dropUp()
turtle.select(6)
turtle.dropUp()
turtle.select(7)
turtle.dropUp()
turtle.select(8)
turtle.dropUp()
turtle.select(9)
turtle.dropUp()
turtle.select(10)
turtle.dropUp()
turtle.select(11)
turtle.dropUp()
turtle.select(12)
turtle.dropUp()
turtle.select(13)
turtle.dropUp()
turtle.select(14)
turtle.dropUp()
turtle.select(15)
turtle.dropUp()
turtle.select(16)
turtle.dropUp()
turtle.select(1)
end
function take2()
turtle.forward()
turtle.forward()
goDown()
goUpMoar()
turtle.select(1)
turtle.placeUp()
turtle.select(2)
turtle.dropUp()
turtle.select(3)
turtle.dropUp()
turtle.select(4)
turtle.dropUp()
turtle.select(5)
turtle.dropUp()
turtle.select(6)
turtle.dropUp()
turtle.select(7)
turtle.dropUp()
turtle.select(8)
turtle.dropUp()
turtle.select(9)
turtle.dropUp()
turtle.select(10)
turtle.dropUp()
turtle.select(11)
turtle.dropUp()
turtle.select(12)
turtle.dropUp()
turtle.select(13)
turtle.dropUp()
turtle.select(14)
turtle.dropUp()
turtle.select(15)
turtle.dropUp()
turtle.select(16)
turtle.dropUp()
turtle.select(1)
end
for x=1,9 do
take()
end
turtle.turnLeft()
turtle.turnLeft()
for x=1,18 do turtle.forward()
end
turtle.turnLeft()
turtle.turnLeft()
for x=1,9 do
take2()
end
turtle.turnLeft()
turtle.turnLeft()
for x=1,18 do turtle.forward()
end
[media]http://www.youtube.com/watch?v=O1n1bELfJBw[/media]
http://www.mediafire...5mrk56mm6hck5cw <Download for all the files that the sorting turtle uses.
Digging program:
Spoiler
function chest()turtle.select(1) turtle.placeUp()
turtle.select(2) turtle.dropUp()
turtle.select(3) turtle.dropUp()
turtle.select(4) turtle.dropUp()
turtle.select(5) turtle.dropUp()
turtle.select(6) turtle.dropUp()
turtle.select(7) turtle.dropUp()
turtle.select(8) turtle.dropUp()
turtle.select(9) turtle.dropUp()
turtle.select(10) turtle.dropUp()
turtle.select(11) turtle.dropUp()
turtle.select(12) turtle.dropUp()
turtle.select(13) turtle.dropUp()
turtle.select(14) turtle.dropUp()
turtle.select(15) turtle.dropUp()
turtle.select(16) turtle.dropUp()
end
function diggy()
for a=1,2 do
for x=1,22 do
turtle.digDown()
turtle.forward()
turtle.digDown()
end
turtle.turnRight()
turtle.forward()
turtle.turnRight()
end
end
for x=1,20 do
diggy()
turtle.digDown()
turtle.down()
end
chest()
for x=1,20 do
diggy()
turtle.digDown()
turtle.down()
end
chest()
for x=1,20 do
diggy()
turtle.digDown()
turtle.down()
end
Retrieval program:
Spoiler
function goDown()for x=1,50 do turtle.down()
end
for x=1,16 do turtle.suckDown()
end
turtle.digDown()
end
function goUp()
for x=1,20 do turtle.up()
end
end
function goUpMoar()
for x=1,39 do turtle.up()
end
end
function take()
turtle.forward()
turtle.forward()
goDown()
goUp()
turtle.select(1)
turtle.placeUp()
turtle.select(2)
turtle.dropUp()
turtle.select(3)
turtle.dropUp()
turtle.select(4)
turtle.dropUp()
turtle.select(5)
turtle.dropUp()
turtle.select(6)
turtle.dropUp()
turtle.select(7)
turtle.dropUp()
turtle.select(8)
turtle.dropUp()
turtle.select(9)
turtle.dropUp()
turtle.select(10)
turtle.dropUp()
turtle.select(11)
turtle.dropUp()
turtle.select(12)
turtle.dropUp()
turtle.select(13)
turtle.dropUp()
turtle.select(14)
turtle.dropUp()
turtle.select(15)
turtle.dropUp()
turtle.select(16)
turtle.dropUp()
turtle.select(1)
end
function take2()
turtle.forward()
turtle.forward()
goDown()
goUpMoar()
turtle.select(1)
turtle.placeUp()
turtle.select(2)
turtle.dropUp()
turtle.select(3)
turtle.dropUp()
turtle.select(4)
turtle.dropUp()
turtle.select(5)
turtle.dropUp()
turtle.select(6)
turtle.dropUp()
turtle.select(7)
turtle.dropUp()
turtle.select(8)
turtle.dropUp()
turtle.select(9)
turtle.dropUp()
turtle.select(10)
turtle.dropUp()
turtle.select(11)
turtle.dropUp()
turtle.select(12)
turtle.dropUp()
turtle.select(13)
turtle.dropUp()
turtle.select(14)
turtle.dropUp()
turtle.select(15)
turtle.dropUp()
turtle.select(16)
turtle.dropUp()
turtle.select(1)
end
for x=1,9 do
take()
end
turtle.turnLeft()
turtle.turnLeft()
for x=1,18 do turtle.forward()
end
turtle.turnLeft()
turtle.turnLeft()
for x=1,9 do
take2()
end
turtle.turnLeft()
turtle.turnLeft()
for x=1,18 do turtle.forward()
end