Atomzerg

рубит

Apr 10th, 2019
2,167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local sides = require "sides"
  2. local robot = require "robot"
  3. local component = require "component"
  4. local inv = component.inventory_controller
  5. local Minimum = 0.2
  6. local active_slot = 1
  7.  
  8. local function Text()
  9.     os.execute("cls")
  10.     print("РОБОТ РАБОТАЕТ!! Создатель - GooodGame")
  11.     print("Доработал-atomzerg")
  12. end
  13.  
  14. Text()
  15.  
  16. function Charging()
  17.    robot.turnLeft()
  18.     os.sleep(7)
  19.     robot.turnLeft()
  20.     os.sleep(7)
  21.      inv.equip()
  22.      robot.drop()
  23.       os.sleep(7)
  24.        robot.suck()
  25.         os.sleep(7)
  26.         robot.turnRight()
  27.         os.sleep(7)
  28.          robot.turnRight()
  29.             os.sleep(7)
  30.           inv.equip()
  31. end
  32.  
  33. function Energy()
  34.   if robot.durability() < Minimum then
  35.     Charging()
  36.   end
  37. end
  38.  
  39. while true do
  40.   if robot.durability() < Minimum then
  41. Energy()
  42. end
  43. robot.swing()
  44. end
RAW Paste Data Copied