View difference between Paste ID: YdRwf3Am and HhkKb9dP
SHOW: | | - or go back to the newest paste.
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