Put teleport script to not pass through walls, rivers , etc , only used when 3 free spaces .
local times = 3
function isWalkable(pos, creature, proj, pz)-- by Nord
if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end
if...