forked from VoxeLibre/VoxeLibre
Clovers now generate
Also added a way to alter flower rarity
This commit is contained in:
parent
ade2a1a6a2
commit
c6a112d200
|
@ -5589,7 +5589,7 @@ local function register_decorations()
|
||||||
num_spawn_by = 1,
|
num_spawn_by = 1,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
local function register_flower(name, biomes, seed, is_in_flower_forest)
|
local function register_flower(name, biomes, seed, is_in_flower_forest, custom_rarity_mod)
|
||||||
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
|
||||||
|
@ -5599,7 +5599,7 @@ local function register_decorations()
|
||||||
place_on = {"group:grass_block_no_snow", "mcl_core:dirt"},
|
place_on = {"group:grass_block_no_snow", "mcl_core:dirt"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
noise_params = {
|
noise_params = {
|
||||||
offset = 0.0008,
|
offset = 0.0008 + (custom_rarity_mod or 0),
|
||||||
scale = 0.006,
|
scale = 0.006,
|
||||||
spread = {x = 100, y = 100, z = 100},
|
spread = {x = 100, y = 100, z = 100},
|
||||||
seed = seed,
|
seed = seed,
|
||||||
|
@ -5651,6 +5651,9 @@ local function register_decorations()
|
||||||
|
|
||||||
register_flower("lily_of_the_valley", nil, 325)
|
register_flower("lily_of_the_valley", nil, 325)
|
||||||
register_flower("cornflower", flower_biomes2, 486)
|
register_flower("cornflower", flower_biomes2, 486)
|
||||||
|
|
||||||
|
register_flower("clover", flower_biomes1, 3, false, 0.04)
|
||||||
|
register_flower("fourleaf_clover", flower_biomes1, 13, false, -0.002)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Decorations in non-Overworld dimensions
|
-- Decorations in non-Overworld dimensions
|
||||||
|
|
Loading…
Reference in New Issue