bigbadtom

Broadcast Message

Oct 17th, 2021 (edited)
850
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local msg1 = "System has started and ready for input"
  2. local mon = peripheral.wrap("right")
  3. term.redirect(mon)
  4. term.clear()
  5. term.setCursorPos(1, 1)
  6. sleep(5)
  7. print(msg1)
  8. local modem = peripheral.wrap("top")
  9. modem.open(1)
  10. modem.open(2)
  11. print("Ready to receive messages from turtle ")
  12.  
  13. while true do
  14. local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  15. term.clear()
  16. term.setCursorPos(1, 1)
  17. print(message)
  18.  
  19. end
RAW Paste Data