emagiannu

Untitled

Dec 4th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. while true do
  2. local chest = peripheral.wrap("left")
  3. if chest.getStackInSlot(0) == nil then
  4. rs.setOutput("back",true)
  5. print("OK")
  6. sleep(0.5)
  7. else
  8. rs.setOutput("back",false)
  9. sleep(0.5)
  10. print("Nope")
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment