Advertisement
demongts1998

Рубит руду

Nov 30th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local robot = require "robot"
  2. local component = require "component"
  3. local inv = component.inventory_controller
  4.  
  5. os.execute("cls")
  6. print("РОБОТ РАБОТАЕТ!! Создатель - GooodGame")
  7. print("Доработал-atomzerg")
  8.  
  9. while true do
  10.   if robot.durability() < 0.2 then
  11.     robot.turnLeft()
  12.     os.sleep(7)
  13.     robot.turnLeft()
  14.     os.sleep(7)
  15.     inv.equip()
  16.     robot.drop()
  17.     os.sleep(7)
  18.     robot.suck()
  19.     os.sleep(7)
  20.     robot.turnRight()
  21.     os.sleep(7)
  22.     robot.turnRight()
  23.     os.sleep(7)
  24.     inv.equip()
  25. end
  26.   robot.swing()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement