From 9b4780b1a1e3f4f5c33d224ae4de8acdad24a83e Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Tue, 5 Jan 2021 16:14:05 +0300 Subject: [PATCH] Update craftCrystal.lua --- craftCrystal.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/craftCrystal.lua b/craftCrystal.lua index b15a839..c6385c1 100644 --- a/craftCrystal.lua +++ b/craftCrystal.lua @@ -2,11 +2,18 @@ local robot = require("robot") local component = require("component") local sides = require("sides") local rs = component.redstone +local flag = true; while true do if rs.getInput(sides.top) > 0 then + flag = true robot.suck() robot.dropDown() else + if flag then + os.sleep(5) + else + flag = false + end robot.suckDown() robot.drop() end