Advertisement
sinkir

lua turtle auto attack

Apr 16th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. function clear_inventory()
  2. for i = 1,16 do
  3. if(turtle.getItemCount(i)>0)then
  4. turtle.select(i)
  5. turtle.dropDown()
  6. end
  7. end
  8. turtle.select(1)
  9. end
  10.  
  11.  
  12. while(42)do
  13. turtle.attack()
  14. clear_inventory()
  15. sleep(0.5)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement