Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("The remote power management program is running.")
- modem = peripheral.wrap("right")
- modem.open(48)
- while true do
- event, side, chan, rchan, msg, dist = os.pullEvent("modem_message")
- if msg == "ON" then
- redstone.setOutput("top", true)
- redstone.setOutput("front", true)
- elseif msg == "OFF" then
- redstone.setOutput("top", false)
- redstone.setOutput("front", false)
- else
- end
- end
Add Comment
Please, Sign In to add comment