Advertisement
Houshalter

Cobblestone Generator

Mar 4th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function returnhome()
  2. turtle.select(1)
  3. if not turtle.compare() then turtle.turnRight() turtle.turnRight() return end
  4. turtle.turnRight()
  5. returnhome()
  6. end
  7.  
  8. function minecobble()
  9. while true do
  10. if turtle.detect() then turtle.dig() end
  11. if turtle.getItemCount(16) > 1 then dump() end
  12. end
  13. end
  14.  
  15. function dump()
  16. turtle.turnRight()
  17. turtle.turnRight()
  18. for i = 2, 16 do
  19. turtle.select(i)
  20. turtle.drop()
  21. end
  22. turtle.select(1)
  23. turtle.turnRight()
  24. turtle.turnRight()
  25. end
  26.  
  27. returnhome()
  28. minecobble()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement