Ferns: Add 3 sizes for coniferous forest biome

Remove flowers from coniferous forest.
Add 'dirt with coniferous litter' to farming mod overrides.
This commit is contained in:
paramat 2017-12-24 02:23:29 +00:00 committed by paramat
parent 8ab7c54d76
commit d1db66bf4f
10 changed files with 102 additions and 3 deletions

View file

@ -1640,6 +1640,26 @@ local function register_dry_grass_decoration(offset, scale, length)
})
end
local function register_fern_decoration(seed, length)
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_coniferous_litter"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.2,
spread = {x = 100, y = 100, z = 100},
seed = seed,
octaves = 3,
persist = 0.7
},
biomes = {"coniferous_forest"},
y_min = 6,
y_max = 31000,
decoration = "default:fern_" .. length,
})
end
function default.register_decorations()
@ -1960,6 +1980,12 @@ function default.register_decorations()
register_dry_grass_decoration(0.07, -0.01, 2)
register_dry_grass_decoration(0.09, -0.03, 1)
-- Ferns
register_fern_decoration(14936, 3)
register_fern_decoration(801, 2)
register_fern_decoration(5, 1)
-- Junglegrass
minetest.register_decoration({