Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local distance = 0
- repeat
- turtle.forward()
- distance = distance + 1
- until turtle.detect()
- turtle.turnLeft()
- turtle.turnLeft()
- for n=1,distance do
- if turtle.detect() then
- turtle.dig()
- turtle.forward()
- else
- turtle.forward()
- end
- end
- print(distance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement