wasliebob

Untitled

May 10th, 2014
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function dig()
  2. if turtle.detectDown() then
  3. if turtle.digDown() then
  4. turtle.digDown()
  5. else
  6. if turtle.detect() then
  7. if turtle.dig() then
  8. turtle.dig()
  9. else
  10. turtle.up()
  11. end
  12. else
  13. if turtle.detectDown() == false
  14. turtle.forward()
  15. else
  16. turtle.down()
  17. end
  18. end
  19. else
  20.  
  21. end
  22. end
  23.  
  24. while true do
  25. dig()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment