diff --git a/tesseract.lua b/tesseract.lua index 838f183..8b3692b 100644 --- a/tesseract.lua +++ b/tesseract.lua @@ -30,15 +30,15 @@ local function teleporter(user, area, power) } elseif area == 'hell' then newpos = { - x = pos.x, + x = pos.x + (math.random(5) - math.random(5)) * 80, y = fun_caves.underzones[({'Caina','Phlegethos','Dis','Minauros', 'Phlegethos','Styx'})[power+1]].ceiling-30, - z = pos.z, + z = pos.z + (math.random(5) - math.random(5)) * 80, } elseif area == 'sky' then newpos = { - x = pos.x, + x = pos.x + (math.random(5) - math.random(5)) * 80, y = ({4368, 8768, 13168, 4368, 4368, 4368})[power+1]+76, - z = pos.z, + z = pos.z + (math.random(5) - math.random(5)) * 80, } elseif area == 'dungeon' then newpos = {} @@ -87,9 +87,9 @@ local function teleporter(user, area, power) local c1, c2 for i = 1, 1000 do newpos = { - x = pos.x, + x = base_pos.x + (math.random(5) - math.random(5)) * 80, y = base_pos.y - math.random(50) * 80, - z = pos.z, + z = base_pos.z + (math.random(5) - math.random(5)) * 80, } c1 = minetest.get_perlin(fun_caves.cave_noise_1):get3d(newpos)