Advertisement
kirkarr

Untitled

Oct 18th, 2023 (edited)
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local modem = peripheral.wrap("right") or error("No modem attached", 0)
  2. local otherpc = peripheral.wrap("top")
  3. modem.open(32465)
  4. while true do
  5.     local event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  6.     if math.floor(distance) == 3 then
  7.         if message == 3071 then
  8.             modem.transmit(replyChannel,32465,200)    
  9.         end
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement