Update craftCrystal.lua

This commit is contained in:
erius0 2021-01-05 16:22:41 +03:00 committed by GitHub
parent 9b4780b1a1
commit 48fbfa4f97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()