S3mpx

queen test

May 4th, 2026 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2.  
  3. transChan = 11
  4. receiveChan = 101
  5.  
  6. modem.open(receiveChan)
  7.  
  8. local event, side, channel, replyChannel, message, distance = ""
  9.  
  10. print("starting loop...")
  11.  
  12. while 1 == 1
  13. do
  14.     repeat
  15.         event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  16.     until channel == receiveChan
  17.  
  18.     print(tostring(channel) .. ": " .. tostring(message))
  19. end
Advertisement
Add Comment
Please, Sign In to add comment