SHOW:
|
|
- or go back to the newest paste.
| 1 | shell.run("clear")
| |
| 2 | print("The remote power management program is running.")
| |
| 3 | modem = peripheral.wrap("right")
| |
| 4 | modem.open(48) | |
| 5 | while true do | |
| 6 | event, side, chan, rchan, msg, dist = os.pullEvent("modem_message")
| |
| 7 | if msg == "ON" then | |
| 8 | redstone.setOutput("top", true)
| |
| 9 | redstone.setOutput("front", true)
| |
| 10 | elseif msg == "OFF" then | |
| 11 | redstone.setOutput("top", false)
| |
| 12 | redstone.setOutput("front", false)
| |
| 13 | else | |
| 14 | end | |
| 15 | end |