Posted 14 December 2012 - 04:44 PM
I made a program that digs down a staircase of thirty blocks then starts digging forward. when it hits an empty space it places a block underneath while continuing to mine. it was quite simple to make but it took a while.
turtle.refuel(64)
turtle.select(2)
local x = 0
local y = 1
for i=1, 30 do
turtle.digDown()
turtle.dig()
turtle.down()
x = x + 1
turtle.dig()
turtle.forward()
x = x + 1
end
while true do
while turtle.detectDown() do
turtle.dig()
turtle.forward()
x = x + 1
turtle.digUp()
if x==6144
then turtle.refuel(64)
y = y + 1
turtle.select(y)
end
end
turtle.select(16)
while not turtle.detectDown() do
turtle.placeDown()
turtle.dig()
turtle.digUp()
turtle.forward()
x = x + 1
end
turtle.digUp()
end