Advertisement
DabDaddy6223

servertestone

Oct 28th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local modem = peripheral.find("modem") or error("Modem not Found", 0)
  2. modem.open(1)
  3.  
  4. modem.transmit(2, 1, "Ping")
  5.  
  6. local event, side, channel, replyChannel, message, distance
  7. repeat
  8.     event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  9. until channel == 1
  10.  
  11. print("Receieved Reply: " .. tostring(message))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement