addEvent("addTeleport",true)
addEventHandler("addTeleport", root,
function(tpname, tpdesc)
local x, y, z = getElementPosition(source)
local rx, ry, rz = getElementRotation(source) -- fetch all the necessary info for the teleport
local int = getElementInterior(source)
local dim = getElementDimension(source)
table.insert(data, {tostring(#data+1), tpname, tpdesc, x, y, z, int, dim, rz})
end)
findNextTeleportID not needed.