Jeyjey0

Computercraft gravel protected dig() function

Apr 16th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function mine()
  2. turtle.dig()
  3. function gravel()
  4. if turtle.forward() == false then
  5. repeat
  6. turtle.dig()
  7. sleep(0.25) -- small sleep to allow for gravel/sand to fall.
  8. until turtle.forward() == true
  9. end
  10. end
  11. gravel()
  12. turtle.digUp()
  13. end
  14. function mine2()
  15. turtle.dig()
  16. function gravel()
  17. if turtle.forward() == false then
  18. repeat
  19. turtle.dig()
  20. sleep(0.25) -- small sleep to allow for gravel/sand to fall.
  21. until turtle.forward() == true
  22. end
  23. end
  24. gravel()
  25. end
Add Comment
Please, Sign In to add comment