Made changes to the MapGen definitions because with the new grow code, bamboo creates its own height, and therefore places its own top. And, having multiple tops looks funny.

This commit is contained in:
Michieal 2023-01-09 16:31:02 -05:00
parent 34faca3f2c
commit 8df0b2a48e

View file

@ -4458,8 +4458,8 @@ local function register_decorations()
end end
end end
register_double_fern(0.01, 0.03, {"Jungle", "JungleM", "JungleEdge", "JungleEdgeM", "Taiga", "ColdTaiga", "MegaTaiga", "MegaSpruceTaiga", "BambooJungle", "BambooJungleM", "BambooJungleEdge", "BambooJungleEdgeM",}) register_double_fern(0.01, 0.03, {"Jungle", "JungleM", "JungleEdge", "JungleEdgeM", "Taiga", "ColdTaiga", "MegaTaiga", "MegaSpruceTaiga", "BambooJungle", "BambooJungleM", "BambooJungleEdge", "BambooJungleEdgeM", })
register_double_fern(0.15, 0.1, {"JungleM"}) register_double_fern(0.15, 0.1, {"JungleM", "BambooJungleM"})
-- Large flowers -- Large flowers
local function register_large_flower(name, biomes, seed, offset, flower_forest_offset) local function register_large_flower(name, biomes, seed, offset, flower_forest_offset)
@ -4591,15 +4591,15 @@ local function register_decorations()
-- Bamboo -- Bamboo
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"group:grass_block_no_snow", "mcl_core:dirt",}, place_on = {"group:grass_block_no_snow", "mcl_core:dirt", },
sidelen = 80, sidelen = 80,
fill_ratio = 0.0043, fill_ratio = 0.0043,
biomes = {"Jungle", "JungleM", "JungleEdge", "JungleEdgeM"}, biomes = {"Jungle", "JungleM", "JungleEdge", "JungleEdgeM"},
y_min = 1, y_min = 1,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
decoration = "mcl_bamboo:bamboo", decoration = "mcl_bamboo:bamboo",
height = 12, height = 9,
max_height = 15, max_height = 11,
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
rotation = "random", rotation = "random",
}) })
@ -4613,12 +4613,13 @@ local function register_decorations()
y_min = 1, y_min = 1,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
decoration = "mcl_bamboo:bamboo", decoration = "mcl_bamboo:bamboo",
height = 12, height = 9,
max_height = 15, max_height = 12,
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
rotation = "random", rotation = "random",
}) })
--[[
-- commenting out this section because with the new grow code, bamboo creates its own height, and therefore places it's own top.
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
place_on = {"mcl_bamboo:bamboo"}, place_on = {"mcl_bamboo:bamboo"},
@ -4632,26 +4633,7 @@ local function register_decorations()
max_height = 4, max_height = 4,
flags = "all_floors", flags = "all_floors",
}) })
]]
minetest.register_decoration({
deco_type = "simple",
place_on = {"group:grass_block_no_snow"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.012,
spread = {x = 100, y = 100, z = 100},
seed = 354,
octaves = 1,
persist = 0.5,
lacunarity = 1.0,
flags = "absvalue"
},
biomes = {"BambooJungle", "BambooJungleM"},
y_max = mcl_vars.mg_overworld_max,
y_min = 2,
decoration = "mcl_core:podzol"
})
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
@ -4673,25 +4655,6 @@ local function register_decorations()
decoration = "mcl_flowers:tallgrass" decoration = "mcl_flowers:tallgrass"
}) })
minetest.register_decoration({
deco_type = "simple",
place_on = {"group:grass_block_no_snow"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.012,
spread = {x = 100, y = 100, z = 100},
seed = 354,
octaves = 1,
persist = 0.5,
lacunarity = 1.0,
flags = "absvalue"
},
biomes = {"BambooJungle", "BambooJungleM", "BambooJungleEdge"},
y_max = mcl_vars.mg_overworld_max,
y_min = 2,
decoration = "mcl_mud:mud"
})
register_doubletall_grass(-0.0005, -0.3, {"BambooJungle", "BambooJungleM", "BambooJungleEdge"}) register_doubletall_grass(-0.0005, -0.3, {"BambooJungle", "BambooJungleM", "BambooJungleEdge"})
register_grass_decoration("tallgrass", -0.03, 1, {"BambooJungle", "BambooJungleM", "BambooJungleEdge"}) register_grass_decoration("tallgrass", -0.03, 1, {"BambooJungle", "BambooJungleM", "BambooJungleEdge"})