Advertisement
eytixis

Draconic Crafting Thing Simple pull and start (opencomputers mod)

Nov 5th, 2020 (edited)
2,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local robot = turtle
  2.  
  3. local function pulse()
  4.     redstone.setOutput("front", true)
  5.     sleep(0.1)
  6.     redstone.setOutput("front", false)
  7. end
  8.  
  9. local function waitForCraft()
  10.     while not robot.suck() do
  11.         sleep(0.5)
  12.         pulse()
  13.     end
  14. end
  15.  
  16. while true do
  17.     waitForCraft()
  18. end
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement