Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local computer = require("computer")
- local inv = component.inventory_controller
- local robot = require("robot")
- local term = require("term")
- local slot = 1
- robot.select(1)
- while true do
- while robot.count() == 0 do
- slot = slot + 1
- robot.select(slot)
- if slot > robot.inventorySize()-1 then
- slot = 1
- robot.select(slot)
- end
- end
- if inv.getStackInInternalSlot()['name'] == 'minecraft:redstone' then
- robot.drop()
- end
- if robot.place() == false then
- robot.drop()
- end
- while robot.swing() do
- robot.swing()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement