1
0
Fork 0

sunflower mapgen bug fix

mobile_bow_workaround
JoseDouglas26 2023-12-14 13:29:37 -03:00 committed by the-real-herowl
parent 113f07581b
commit dd5a9178d9
1 changed files with 52 additions and 24 deletions

View File

@ -4804,6 +4804,7 @@ local function register_decorations()
b = {"FlowerForest"}
end
if name ~= "sunflower" then
minetest.register_decoration({
deco_type = "schematic",
schematic = {
@ -4830,6 +4831,33 @@ local function register_decorations()
flags = "",
biomes = b,
})
else
minetest.register_decoration({
deco_type = "schematic",
schematic = {
size = {x = 1, y = 2, z = 1},
data = {
{name = "air", prob = 0},
{name = "mcl_flowers:" .. name, param1 = 255, },
},
},
place_on = {"group:grass_block_no_snow", "mcl_core:dirt"},
sidelen = 16,
noise_params = {
offset = o,
scale = 0.01,
spread = {x = 300, y = 300, z = 300},
seed = seed,
octaves = 5,
persist = 0.62,
},
y_min = 1,
y_max = mcl_vars.mg_overworld_max,
flags = "",
biomes = b,
})
end
end
end