Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- machine = peripheral.wrap('bottom')
- while true do
- counter = 0
- for index in pairs(machine.list()) do
- counter = counter + 1
- end
- if counter > 1 then
- redstone.setOutput('bottom', false)
- else
- redstone.setOutput('bottom', true)
- end
- sleep(1)
- end
Add Comment
Please, Sign In to add comment