Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dist = 100
- moved = 0
- while moved ~= dist do
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- os.sleep(.5)
- end
- if turtle.detectDown() then
- turtle.digDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement