diff --git a/craftCrystal.lua b/craftCrystal.lua index c6385c1..a4c355b 100644 --- a/craftCrystal.lua +++ b/craftCrystal.lua @@ -5,13 +5,16 @@ local rs = component.redstone local flag = true; while true do if rs.getInput(sides.top) > 0 then - flag = true + if not flag then + robot.turnAround() + flag = true + end robot.suck() robot.dropDown() else if flag then + robot.turnAround() os.sleep(5) - else flag = false end robot.suckDown()