forked from minetest-mods/nether
parent
fb3c358f74
commit
fb6b666895
|
@ -266,7 +266,7 @@ end
|
||||||
|
|
||||||
mapgen.getCavePerlinAt = function(pos)
|
mapgen.getCavePerlinAt = function(pos)
|
||||||
cavePointPerlin = cavePointPerlin or minetest.get_perlin(mapgen.np_cave)
|
cavePointPerlin = cavePointPerlin or minetest.get_perlin(mapgen.np_cave)
|
||||||
return cavePointPerlin:get3d(pos)
|
return cavePointPerlin:get_3d(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -485,7 +485,7 @@ function nether.find_nether_ground_y(target_x, target_z, start_y, player_name)
|
||||||
local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z}
|
local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z}
|
||||||
|
|
||||||
for y = start_y, math_max(NETHER_FLOOR + BLEND, start_y - 4096), -1 do
|
for y = start_y, math_max(NETHER_FLOOR + BLEND, start_y - 4096), -1 do
|
||||||
local nval_cave = nobj_cave_point:get3d({x = target_x, y = y, z = target_z})
|
local nval_cave = nobj_cave_point:get_3d({x = target_x, y = y, z = target_z})
|
||||||
|
|
||||||
if nval_cave > TCAVE then -- Cavern
|
if nval_cave > TCAVE then -- Cavern
|
||||||
air = air + 1
|
air = air + 1
|
||||||
|
|
|
@ -136,7 +136,7 @@ mapgen.add_basalt_columns = function(data, area, minp, maxp)
|
||||||
if basaltNoise > 0 then
|
if basaltNoise > 0 then
|
||||||
-- a basalt column is here
|
-- a basalt column is here
|
||||||
|
|
||||||
local abs_sealevel_cave_noise = math_abs(cavePerlin:get3d({x = x, y = nearest_sea_level, z = z}))
|
local abs_sealevel_cave_noise = math_abs(cavePerlin:get_3d({x = x, y = nearest_sea_level, z = z}))
|
||||||
|
|
||||||
-- Add Some quick deterministic noise to the column heights
|
-- Add Some quick deterministic noise to the column heights
|
||||||
-- This is probably not good noise, but it doesn't have to be.
|
-- This is probably not good noise, but it doesn't have to be.
|
||||||
|
|
|
@ -216,7 +216,7 @@ function nether.find_nether_ground_y(target_x, target_z, start_y, player_name)
|
||||||
local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z}
|
local maxp = {x = maxp_schem.x, y = 0, z = maxp_schem.z}
|
||||||
|
|
||||||
for y = start_y, math.max(NETHER_FLOOR + BLEND, start_y - 4096), -1 do
|
for y = start_y, math.max(NETHER_FLOOR + BLEND, start_y - 4096), -1 do
|
||||||
local nval_cave = nobj_cave_point:get3d({x = target_x, y = y, z = target_z})
|
local nval_cave = nobj_cave_point:get_3d({x = target_x, y = y, z = target_z})
|
||||||
|
|
||||||
if nval_cave > TCAVE then -- Cavern
|
if nval_cave > TCAVE then -- Cavern
|
||||||
air = air + 1
|
air = air + 1
|
||||||
|
|
|
@ -2007,7 +2007,8 @@ local wormhole_nodedef_default = {
|
||||||
a = 160, r = 128, g = 0, b = 80
|
a = 160, r = 128, g = 0, b = 80
|
||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = minetest.features.use_texture_alpha_string_modes
|
||||||
|
and "blend" or true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
|
@ -2015,7 +2016,6 @@ local wormhole_nodedef_default = {
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
drop = "",
|
drop = "",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
alpha = 192,
|
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user