Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- modem.open(43)
- local integrator = peripheral.find("redstoneIntegrator")
- integrator.setOutput("top", false)
- while true do
- sleep()
- event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- if channel then
- local myname=os.getComputerLabel()
- if message[myname]==true or message[myname]==false then
- integrator.setOutput("top", message[myname])
- end
- if message[1]==true then
- integrator.setOutput("top", false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement