Lorc520

loop 0.1s attack

May 6th, 2025 (edited)
28
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local checkInterval = 60 -- seconds
  2. local lastCheck = os.clock()
  3.  
  4. while true do
  5. turtle.attack()
  6. sleep(0.1)
  7.  
  8. if os.clock() - lastCheck >= checkInterval then
  9. for slot = 1, 16 do
  10. turtle.select(slot)
  11. local item = turtle.getItemDetail()
  12. if item then
  13. turtle.dropDown()
  14. end
  15. end
  16. turtle.select(1)
  17. lastCheck = os.clock()
  18. end
  19. end
  20.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment