Atomzerg

ukrep

Mar 12th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. local sides = require "sides"
  2. local robot = require "robot"
  3. local component = require "component"
  4. local inv = component.inventory_controller
  5. while true do
  6. local active_slot = 1
  7. robot.select(1)
  8. robot.suckUp(64)
  9. robot.turnLeft()
  10. robot.suck(64)
  11. robot.turnRight()
  12. for i=1, 64 do
  13.  
  14. while component.geolyzer.analyze(3).name~="minecraft:air" do
  15. os.sleep(1)
  16. end
  17.  
  18. if component.geolyzer.analyze(3).name=="minecraft:air" then
  19. robot.select(1)
  20. robot.place()
  21. end
  22.  
  23. if component.geolyzer.analyze(3).name=="IC2:blockIronScaffold" then
  24. robot.use()
  25. end
  26.  
  27. if component.geolyzer.analyze(3).name=="IC2:blockReinforcedFoam" then
  28. robot.select(2)
  29. component.inventory_controller.equip()
  30. robot.use()
  31. component.inventory_controller.equip()
  32. end
  33. end
  34. robot.turnAround()
  35. inv.equip()
  36. robot.drop()
  37. robot.suck()
  38. inv.equip()
  39. robot.turnAround()
  40. end
Advertisement
Add Comment
Please, Sign In to add comment