Standard horizontal position for tesseracts.

This commit is contained in:
Duane 2016-06-30 13:47:53 -05:00
parent f860bfa6b7
commit 6a68d3c616

View file

@ -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)