portablejim

Stray quarry

Sep 24th, 2013 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. a = 12
  2. b = 0
  3. while b < a do
  4. turtle.forward()
  5. b = b+1
  6. end
  7. if b == a and turtle.getItemCount(1) < 1 then
  8. turtle.select(2)
  9. turtle.placeUp()
  10. turtle.select(1)
  11. turtle.suckUp()
  12. turtle.select(2)
  13. turtle.digUp()
  14. turtle.select(1)
  15. turtle.placeDown()
  16. b = 0
  17. end
  18. if b == a and turtle.getItemCount(1) > 0 then
  19. turtle.placeDown()
  20. b = 0
  21. end
  22. turtle.select(2)
Add Comment
Please, Sign In to add comment