Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sides = require "sides"
- local robot = require "robot"
- local component = require "component"
- local inv = component.inventory_controller
- local Minimum = 0.2
- local active_slot = 1
- local function Text()
- os.execute("cls")
- print("Обновлённая прошивка для робота Копателя успешно запущена.")
- print("Спасибо за покупку :D")
- print("By GameDoctor")
- print("Если вы случайно отключили робота, чтобы запустить программу снова, пропишите gbroke")
- end
- Text()
- function Charging()
- robot.turnLeft()
- os.sleep(7)
- robot.turnLeft()
- os.sleep(7)
- inv.equip()
- robot.drop()
- os.sleep(7)
- robot.suck()
- os.sleep(7)
- robot.turnRight()
- os.sleep(7)
- robot.turnRight()
- os.sleep(7)
- inv.equip()
- end
- function Energy()
- if robot.durability() < Minimum then
- Charging()
- end
- end
- while true do
- if robot.durability() < Minimum then
- Energy()
- end
- robot.swing()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement