diff --git a/craftCrystal.lua b/craftCrystal.lua index f662e41..b15a839 100644 --- a/craftCrystal.lua +++ b/craftCrystal.lua @@ -1,2 +1,13 @@ local robot = require("robot") -robot.suck() +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