Advertisement
ZeeDerp

ccc

Feb 27th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function spaceLeft()
  2. for i=1,9 do
  3. if turtle.getItemCount(i)==0 then
  4. return true
  5. end
  6. end
  7. return false
  8. end
  9. function Cycle()
  10. Forward=1
  11. while spaceLeft() do
  12. turtle.dig()
  13. turtle.forward()
  14. Forward=Forward+1
  15. end
  16. if spaceLeft()==false then
  17. turtle.turnLeft()
  18. turtle.turnLeft()
  19. end
  20. for i=1,Forward-1 do
  21. turtle.forward()
  22. end
  23. for dropSlot = 1, 9 do
  24. turtle.select(dropSlot)
  25. turtle.drop()
  26. end
  27. turtle.turnLeft()
  28. turtle.turnLeft()
  29. end
  30. Cycle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement