Update craftCrystal.lua

This commit is contained in:
erius0 2021-01-05 16:09:20 +03:00 committed by GitHub
parent 58ae27714b
commit c787fde08a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,13 @@
local robot = require("robot")
robot.suck()
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