AsTio

Energy_Cube_Decider

Jun 21st, 2019
27
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("top")
  2. modem.open(55000)
  3. while true do
  4.  
  5.  
  6. event, s, f, rf, msg = os.pullEvent("modem_message")
  7.  
  8.  
  9. if msg == "POWER" then
  10.     redstone.setOutput("left",true)
  11.     print(""..msg)
  12.     modem.transmit(56000, 1, "ON")
  13. end
  14. if msg == "STOP" then
  15.     redstone.setOutput("left",false)
  16.     print(""..msg)
  17.     modem.transmit(56000, 1, "OFF")
  18. end
  19. end
RAW Paste Data