Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("top")
- modem.open(3) -- Open channel 3 so that we can listen on it
- while true do
- event, side, senderChannel, replyChannel, msg, distance = os.pullEvent("modem_message")
- if (message == "Open") then
- print(msg)
- redstone.setOutput("back", true)
- os.sleep(.5)
- redstone.setOutput("back", false)
- end
- end
Add Comment
Please, Sign In to add comment