local robot = turtle local function pulse() redstone.setOutput("front", true) sleep(0.1) redstone.setOutput("front", false) end local function waitForCraft() while not robot.suck() do sleep(0.5) pulse() end end while true do waitForCraft() end