Guest User

Untitled

a guest
May 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. while turtle.detect() do
  2. turtle.dig()
  3. print("Digging the block")
  4. turtle.up()
  5. print("Moving up")
  6. end
  7. while not turtle.detect() and not turtle.detectDown() do
  8. turtle.down()
  9. print("Moving down")
  10. end
  11. print("Job done!")
Add Comment
Please, Sign In to add comment