Advertisement
Guest User

Kill Turtle

a guest
Apr 18th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. --Kill turtle
  2.  
  3. function unload()
  4. sleep(0.5)
  5. for inv = 1,16 do
  6. --Keep trying to unload all cargo slots until empty
  7. while turtle.getItemCount(inv) > 0 do
  8. print("Unloading slot:"..inv)
  9. turtle.select(inv)
  10. turtle.dropDown()
  11. sleep(0.2)
  12. end
  13. end
  14. end
  15.  
  16. function choppo()
  17. for chop = 1,16 do
  18. turtle.attack()
  19. end
  20. end
  21.  
  22. while true do
  23. choppo()
  24. unload()
  25. sleep(0.1)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement