Future_Crafter47

mainframe

May 12th, 2021
566
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("top")
  2. local internal = peripheral.wrap("right")
  3. internal.open(9898)
  4. modem.open(4005)
  5.  
  6. while true do
  7.     sleep(0)
  8.     local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  9.    
  10.     if message == "toggledoor" and senderChannel == 4005 then
  11.         modem.transmit(9898, 1111, "toggledoor")
  12.         sleep(1)
  13.     end
  14. end
RAW Paste Data