0x0049

Turtle Attack

Oct 25th, 2013
211
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function attack()
  2.     turtle.attack()
  3. end
  4.  
  5. function emptyInventory()
  6.     if turtle.getItemCount(16) > 0 then
  7.         for i = 1, 16 do
  8.             turtle.select(i)
  9.             turtle.dropDown()
  10.         end
  11.         turtle.select(1)
  12.     end
  13. end
  14.  
  15. print("Name: "..os.getComputerLabel())
  16. print("ID: "..os.getComputerID())
  17. print("Fuel: "..turtle.getFuelLevel())
  18. print "LOADING ATTACK PROFILE..."
  19.  
  20. while true do
  21.     attack()
  22.     emptyInventory()
  23.     sleep(.1)
  24. end
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment