Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while turtle.detectUp() do
- turtle.digUp()
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- print("Digging the block")
- turtle.up()
- print("Moving up")
- end
- while not turtle.detectUp() and not turtle.detectDown() do
- turtle.down()
- print("Moving down")
- end
- print("Job done!")
Advertisement
Add Comment
Please, Sign In to add comment