Advertisement
k_goos

AttackTurtle

Apr 27th, 2013
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function DropAll()
  2. while true do
  3. for i=1,16 do
  4. if turtle.getItemCount(i) == 0 then
  5. turtle.select(1)
  6. break
  7. end
  8. turtle.select(i)
  9. turtle.dropDown()
  10. end
  11. turtle.select(1)
  12. sleep(10)
  13. end
  14. end
  15. function Attack()
  16. while true do
  17. turtle.attack()
  18. end
  19. end
  20. parallel.waitForAny(DropAll, Attack)
Advertisement
RAW Paste Data Copied
Advertisement