SummitSummit

digD

Apr 8th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local blocks = 0
  2. term.write("How many blocks down? :")
  3. blocks = read()
  4.  
  5. function digAll()
  6. turtle.digUp()
  7. turtle.dig()
  8. turtle.digDown()
  9. end
  10.  
  11. function gravel()
  12. if turtle.detect() then
  13. digAll()
  14. end
  15. end
  16.  
  17. function One()
  18. for i = 1, blocks do
  19. inch()
  20. end
  21. end
  22.  
  23. function inch()
  24. digAll()
  25. gravel()
  26. turtle.down()
  27. turtle.dig()
  28. turtle.forward()
  29. end
  30.  
  31. One()
Advertisement
Add Comment
Please, Sign In to add comment