Advertisement
markov2019

mob grinder

Jun 28th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---https://pastebin.com/WxxiDqcH---
  2. local robot = require "robot"
  3. local component = require "component"
  4. local inv = component.inventory_controller
  5.  
  6. os.execute("cls")
  7. print("mob grinder")
  8.  
  9. while true do
  10.   if robot.durability() < 0.2 then
  11.     robot.turnAround()
  12.     inv.equip()
  13.     robot.drop()
  14.     os.sleep(7) --время на зарядку меча
  15.     robot.suck()
  16.     inv.equip()
  17.     robot.turnAround()
  18.   end
  19.   while robot.detect() do
  20.     robot.swing()
  21.   end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement