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 geo = component.geolyzer
- function Charging()
- component.inventory_controller.equip()
- robot.turnAround()
- robot.drop()
- os.sleep(7)
- robot.suck()
- robot.turnAround()
- component.inventory_controller.equip()
- end
- while true do
- if robot.durability() < 0.2 then
- Charging()
- end
- if geo.analyze(3).name=="IC2:blockAlloy" then
- robot.swing()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment