Update craftCrystal.lua
This commit is contained in:
parent
58ae27714b
commit
c787fde08a
1 changed files with 12 additions and 1 deletions
|
@ -1,2 +1,13 @@
|
|||
local robot = require("robot")
|
||||
local component = require("component")
|
||||
local sides = require("sides")
|
||||
local rs = component.redstone
|
||||
while true do
|
||||
if rs.getInput(sides.top) > 0 then
|
||||
robot.suck()
|
||||
robot.dropDown()
|
||||
else
|
||||
robot.suckDown()
|
||||
robot.drop()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue