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
- while true do
- local active_slot = 1
- robot.select(1)
- robot.suckUp(64)
- robot.turnLeft()
- robot.suck(64)
- robot.turnRight()
- for i=1, 64 do
- while component.geolyzer.analyze(3).name~="minecraft:air" do
- os.sleep(1)
- end
- if component.geolyzer.analyze(3).name=="minecraft:air" then
- robot.select(1)
- robot.place()
- end
- if component.geolyzer.analyze(3).name=="IC2:blockIronScaffold" then
- robot.use()
- end
- if component.geolyzer.analyze(3).name=="IC2:blockReinforcedFoam" then
- robot.select(2)
- component.inventory_controller.equip()
- robot.use()
- component.inventory_controller.equip()
- end
- end
- robot.turnAround()
- inv.equip()
- robot.drop()
- robot.suck()
- inv.equip()
- robot.turnAround()
- end
Advertisement
Add Comment
Please, Sign In to add comment