Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = 51
- local y = 59
- local z = -30
- local modem = peripheral.wrap("top")
- rednet.open("front")
- modem.open(65533)
- while true do
- local tbl = { os.pullEvent("modem_message") }
- if type(tbl[5]) == "table" then
- rednet.broadcast({pos = vector.new(x, y, z), dist = tbl[6], id = tbl[4]}, tostring(tbl[5].nMessageID))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement