Advertisement
Maro919

tracker.lua

May 18th, 2025
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CHANNEL_TRACKER = 65531
  2.  
  3. local modem = peripheral.find("modem")
  4.  
  5. modem.open(CHANNEL_TRACKER)
  6.  
  7. while true do
  8.     local event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
  9.     if type(message) == "table" and message.dimmension and message.position then
  10.         print(textutils.serialise(message))
  11.     end
  12. end
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement