Advertisement
ivanzrer

cctremv1

Oct 16th, 2024
31
0
18 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. args = {...}
  2.  
  3. local modem = peripheral.find("modem") or error("No modem attached", 0)
  4. modem.open(43)
  5.  
  6. local event, side channel replyChannel, message, distance
  7. repeat
  8.     event, side, channel, replyChannel, message, distange = os.pullEvent("modem_message")
  9. until channel == 43
  10.  
  11. tFirst = tostring(message[1])
  12. tSecond = tostring(message[2])
  13.  
  14. dofile("display.lua", tFirst, tSecond)
  15. modem.transmit(15, 43, "Message received.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement