trainworld_computercraft/computer/5/report.lua
2025-05-22 20:51:25 +02:00

12 lines
328 B
Lua

while true do
id,mess,dist = rednet.receive()
_,_,_,_,_,dist = os.pullEvent("modem_message")
print(id..":"..tostring(mess)..tostring(dist))
--str = mess.x..","..mess.y..","..mess.z
--print(str)
file = fs.open("logs","a")
file.write(tostring(mess).."\n")
file.close()
--term.clear()
end