roflmuffin

Untitled

Sep 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. machine = peripheral.wrap('bottom')
  2.  
  3. while true do
  4. counter = 0
  5. for index in pairs(machine.list()) do
  6. counter = counter + 1
  7. end
  8.  
  9. if counter > 1 then
  10. redstone.setOutput('bottom', false)
  11. else
  12. redstone.setOutput('bottom', true)
  13. end
  14.  
  15. sleep(1)
  16. end
Add Comment
Please, Sign In to add comment