Posted 08 June 2012 - 12:10 AM
My mining turtle doesn't take this code. Can someone tell me what's wrong with it?
I want the turtle to create a 1x2 tunnel through a hill, mountain, wall, etc, then return a message stating how many blocks long the tunnel is. Can anyone help?
x = 0
while turtle.detect() do
turtle.dig()
turtle.digUp()
turtle.forward()
x = x+1
end
print "This tunnel is"...x..."metres long."
I want the turtle to create a 1x2 tunnel through a hill, mountain, wall, etc, then return a message stating how many blocks long the tunnel is. Can anyone help?