DBHerobrine

remote

Jul 26th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Add Comment
Please, Sign In to add comment