TheNinth

Turtle Diggies.

Jan 24th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. function diggy221()
  2. if turtle.detect() then
  3. turtle.dig()
  4. end
  5. if turtle.detectUp() then
  6. turtle.digUp()
  7. turtle.up()
  8. else
  9. turtle.up()
  10. end
  11. if turtle.detect() then
  12. turtle.dig()
  13. end
  14. turtle.down()
  15. turtle.forward()
  16. end
  17.  
  18. function diggy921()
  19. local i = 1
  20. for i, 9 do
  21. diggy221()
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment