Atomzerg

BrokeUkrep

Mar 13th, 2019
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local sides = require "sides"
  2. local robot = require "robot"
  3. local component = require "component"
  4. local geo = component.geolyzer
  5.  
  6.  
  7. function Charging()
  8. component.inventory_controller.equip()
  9. robot.turnAround()
  10. robot.drop()
  11. os.sleep(7)
  12. robot.suck()
  13. robot.turnAround()
  14. component.inventory_controller.equip()
  15. end
  16.  
  17. while true do
  18. if robot.durability() < 0.2 then
  19. Charging()
  20. end
  21. if geo.analyze(3).name=="IC2:blockAlloy" then
  22. robot.swing()
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment