Update craftCrystal.lua
This commit is contained in:
parent
9b4780b1a1
commit
48fbfa4f97
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue