LuaScripts/craftCrystal.lua
2021-01-05 16:09:20 +03:00

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