2021-01-04 23:45:03 +00:00
|
|
|
local robot = require("robot")
|
2021-01-05 13:09:20 +00:00
|
|
|
local component = require("component")
|
|
|
|
local sides = require("sides")
|
|
|
|
local rs = component.redstone
|
|
|
|
while true do
|
|
|
|
if rs.getInput(sides.top) > 0 then
|
|
|
|
robot.suck()
|
|
|
|
robot.dropDown()
|
|
|
|
else
|
|
|
|
robot.suckDown()
|
|
|
|
robot.drop()
|
|
|
|
end
|
|
|
|
end
|