Advertisement
Arc13

Untitled

Jul 19th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function guardKill()
  2. while true do
  3. turtle.attackDown()
  4. sleep(0.1)
  5. end
  6. end
  7.  
  8. function dropItems()
  9. while true do
  10. turtle.suckDown()
  11. for i = 1, 16 do
  12. if turtle.getItemCount(i) > 0 then
  13. turtle.select(i)
  14. turtle.drop()
  15. end
  16. end
  17.  
  18. sleep(0.2)
  19. end
  20. end
  21.  
  22. parallel.waitForAny(guardKill, dropItems)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement