1
0
Fork 0

Generate alliums in flower forest only

This commit is contained in:
Wuzzy 2017-09-09 00:22:59 +02:00
parent f61ecab98e
commit edf42043db
1 changed files with 20 additions and 18 deletions

View File

@ -2417,23 +2417,25 @@ local function register_decorations()
if is_in_flower_forest == nil then if is_in_flower_forest == nil then
is_in_flower_forest = true is_in_flower_forest = true
end end
minetest.register_decoration({ if biomes then
deco_type = "simple", minetest.register_decoration({
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"}, deco_type = "simple",
sidelen = 16, place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
noise_params = { sidelen = 16,
offset = 0.0008, noise_params = {
scale = 0.006, offset = 0.0008,
spread = {x = 100, y = 100, z = 100}, scale = 0.006,
seed = seed, spread = {x = 100, y = 100, z = 100},
octaves = 3, seed = seed,
persist = 0.6 octaves = 3,
}, persist = 0.6
y_min = 1, },
y_max = mcl_vars.mg_overworld_max, y_min = 1,
biomes = biomes, y_max = mcl_vars.mg_overworld_max,
decoration = "mcl_flowers:"..name, biomes = biomes,
}) decoration = "mcl_flowers:"..name,
})
end
if is_in_flower_forest then if is_in_flower_forest then
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",
@ -2468,7 +2470,7 @@ local function register_decorations()
register_flower("azure_bluet", flower_biomes2, 800) register_flower("azure_bluet", flower_biomes2, 800)
register_flower("oxeye_daisy", flower_biomes2, 3490) register_flower("oxeye_daisy", flower_biomes2, 3490)
register_flower("allium", {}, 0) -- flower forest only register_flower("allium", nil, 0) -- flower forest only
register_flower("blue_orchid", {"swampland"}, 64500, false) register_flower("blue_orchid", {"swampland"}, 64500, false)