Update craftCrystal.lua
This commit is contained in:
parent
58fd221b10
commit
5196d3881c
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ local robot = require("robot")
|
||||||
local component = require("component")
|
local component = require("component")
|
||||||
local sides = require("sides")
|
local sides = require("sides")
|
||||||
local rs = component.redstone
|
local rs = component.redstone
|
||||||
local flag = true;
|
local flag = false;
|
||||||
while true do
|
while true do
|
||||||
if rs.getInput(sides.top) > 0 then
|
if rs.getInput(sides.top) > 0 then
|
||||||
if not flag then
|
if not flag then
|
||||||
|
@ -14,8 +14,8 @@ while true do
|
||||||
else
|
else
|
||||||
if flag then
|
if flag then
|
||||||
robot.turnAround()
|
robot.turnAround()
|
||||||
os.sleep(5)
|
|
||||||
flag = false
|
flag = false
|
||||||
|
os.sleep(5)
|
||||||
end
|
end
|
||||||
robot.suckDown()
|
robot.suckDown()
|
||||||
robot.drop()
|
robot.drop()
|
||||||
|
|
Loading…
Reference in a new issue