forked from MineClone5/MineClone5
Tweak biome height limits, fix some biome bugs
This commit is contained in:
parent
e91c5c9d01
commit
aac9af4d6d
|
@ -114,7 +114,7 @@ local function register_biomes()
|
|||
depth_filler = 3,
|
||||
node_riverbed = "mcl_core:dirt",
|
||||
depth_riverbed = 2,
|
||||
y_min = 15,
|
||||
y_min = 1,
|
||||
y_max = mcl_vars.mg_overworld_max,
|
||||
heat_point = 26,
|
||||
humidity_point = 72,
|
||||
|
@ -129,7 +129,7 @@ local function register_biomes()
|
|||
node_riverbed = "mcl_core:dirt",
|
||||
depth_riverbed = 2,
|
||||
y_min = mcl_vars.mg_overworld_min,
|
||||
y_max = 1,
|
||||
y_max = 0,
|
||||
heat_point = 26,
|
||||
humidity_point = 72,
|
||||
})
|
||||
|
@ -232,14 +232,14 @@ local function register_biomes()
|
|||
node_riverbed = "mcl_core:sand",
|
||||
depth_riverbed = 2,
|
||||
y_min = 1,
|
||||
y_max = 56,
|
||||
y_max = 3,
|
||||
heat_point = 47,
|
||||
humidity_point = 73, --was 70
|
||||
})
|
||||
|
||||
minetest.register_biome({
|
||||
name = "coniferous_forest_ocean",
|
||||
node_top = "mcl_core:dirt",
|
||||
node_top = "mcl_core:sand",
|
||||
depth_top = 1,
|
||||
node_filler = "mcl_core:dirt",
|
||||
depth_filler = 3,
|
||||
|
@ -334,7 +334,7 @@ local function register_biomes()
|
|||
node_riverbed = "mcl_core:sand",
|
||||
depth_riverbed = 2,
|
||||
node_stone = "mcl_core:sandstone",
|
||||
y_min = 0,
|
||||
y_min = 1,
|
||||
y_max = mcl_vars.mg_overworld_max,
|
||||
heat_point = 57,
|
||||
humidity_point = 0, --was 0
|
||||
|
@ -349,7 +349,7 @@ local function register_biomes()
|
|||
node_riverbed = "mcl_core:sand",
|
||||
depth_riverbed = 2,
|
||||
y_min = mcl_vars.mg_overworld_min,
|
||||
y_max = 4,
|
||||
y_max = 0,
|
||||
heat_point = 57,
|
||||
humidity_point = 0, --was 0
|
||||
})
|
||||
|
@ -392,13 +392,26 @@ local function register_biomes()
|
|||
depth_filler = 1,
|
||||
node_riverbed = "mcl_core:redsand",
|
||||
depth_riverbed = 2,
|
||||
node_stone = "mcl_colorblocks:hardened_clay",
|
||||
y_min = -35,
|
||||
node_stone = "mcl_core:stone",
|
||||
y_min = 1,
|
||||
y_max = mcl_vars.mg_overworld_max,
|
||||
heat_point = 88,
|
||||
humidity_point = 20,
|
||||
})
|
||||
|
||||
minetest.register_biome({
|
||||
name = "mesa_ocean",
|
||||
node_top = "mcl_core:redsand",
|
||||
depth_top = 1,
|
||||
node_filler = "mcl_core:redsand",
|
||||
depth_filler = 2,
|
||||
node_riverbed = "mcl_core:redsand",
|
||||
depth_riverbed = 2,
|
||||
y_min = mcl_vars.mg_overworld_min,
|
||||
y_max = 0,
|
||||
heat_point = 88,
|
||||
humidity_point = 20,
|
||||
})
|
||||
|
||||
-- Savanna
|
||||
minetest.register_biome({
|
||||
|
@ -515,33 +528,6 @@ local function register_biomes()
|
|||
humidity_point = 99,
|
||||
})
|
||||
|
||||
|
||||
--cold
|
||||
minetest.register_biome({
|
||||
name = "mushroom_cold",
|
||||
node_dust = "mcl_core:snow",
|
||||
node_top = "mcl_core:mycelium_snow",
|
||||
depth_top = 1,
|
||||
node_filler = "mcl_core:coarse_dirt",
|
||||
depth_filler = 3,
|
||||
node_riverbed = "mcl_core:dirt",
|
||||
depth_riverbed = 2,
|
||||
y_min = 56,
|
||||
y_max = mcl_vars.mg_overworld_max,
|
||||
heat_point = -13,
|
||||
humidity_point = 30,
|
||||
})
|
||||
|
||||
|
||||
|
||||
-- Underground in Overworld
|
||||
minetest.register_biome({
|
||||
name = "underground",
|
||||
y_min = mcl_vars.mg_overworld_min,
|
||||
y_max = mcl_util.layer_to_y(61),
|
||||
heat_point = 50,
|
||||
humidity_point = 50,
|
||||
})
|
||||
end
|
||||
|
||||
-- Register biomes of non-Overworld biomes
|
||||
|
@ -1409,7 +1395,7 @@ local function register_decorations()
|
|||
y_min = 4,
|
||||
y_max = mcl_vars.mg_overworld_max,
|
||||
decoration = "mcl_core:cactus",
|
||||
biomes = {"red_desert","desert","grassland_dunes", "coniferous_forest_dunes"},
|
||||
biomes = {"red_desert","desert"},
|
||||
height = 1,
|
||||
height_max = 3,
|
||||
})
|
||||
|
|
|
@ -938,7 +938,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
local cx = minp.x + math.floor((divx+0.5)*divlen)
|
||||
local cz = minp.z + math.floor((divz+0.5)*divlen)
|
||||
if minetest.get_node({x=cx,y=1,z=cz}).name == "mcl_core:water_source" and
|
||||
minetest.get_node({x=cx,y=0,z=cz}).name == "mcl_core:sand" then
|
||||
minetest.get_item_group(minetest.get_node({x=cx,y=0,z=cz}).name, "sand") == 1 then
|
||||
local is_shallow = true
|
||||
local num_water_around = 0
|
||||
if minetest.get_node({x=cx-divlen*2,y=1,z=cz+0}).name == "mcl_core:water_source" then
|
||||
|
@ -955,7 +955,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||
if is_shallow then
|
||||
for x1=-divlen,divlen do
|
||||
for z1=-divlen,divlen do
|
||||
if minetest.get_node({x=cx+x1,y=0,z=cz+z1}).name == "mcl_core:sand" or minetest.get_node({x=cx+x1,y=0,z=cz+z1}).name == "mcl_core:sandstone" then
|
||||
if minetest.get_item_group(minetest.get_node({x=cx+x1,y=0,z=cz+z1}).name, "sand") == 1 then
|
||||
minetest.set_node({x=cx+x1,y=0,z=cz+z1}, {name="mcl_core:clay"})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue