Advertisement
aaronred345

Turtle Mob Grinder

Jul 1st, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. function attackLoop()
  2.     while (true) do
  3.         turtle.attack()
  4.         os.sleep(1)
  5.     end
  6. end
  7.  
  8. function dropItemLoop()
  9.     while (true) do
  10.         turtle.suck()
  11.         count = 1
  12.         while count <= 16 do
  13.             turtle.select(count)
  14.             turtle.dropDown()
  15.             count = count + 1
  16.         end
  17.     end
  18. end
  19.  
  20. function installAPI()
  21.     shell.run("pastebin", "get", "KYtYxqHh", "/APIs/threading")
  22. end
  23.  
  24. function threadMain()
  25.     os.startThread(attackLoop)
  26.     os.startThread(dropItemLoop)
  27. end
  28.  
  29. if not fs.exists("/APIs/threading") then
  30.     installAPI()
  31. end
  32. shell.run("/APIs/threading")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement