13 lines
288 B
Lua
13 lines
288 B
Lua
local robot = require("robot")
|
|
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
|