and add the other stackpos too?if getThingFromPos({x=toPosition.x, y=toPosition.y, z=toPosition.z, stackpos=1}) == FALSE then
local teleportPosition = getThingFromPos({x=toPosition.x, y=toPosition.y, z=toPosition.z, stackpos=1})
if teleportPosition.itemid <= 0 then
doCreateTeleport(1387, {x=1, y=1, z=7}, toPosition)
end