Tweak double tallgrass/fern amount in non-v6

This commit is contained in:
Wuzzy 2017-09-13 19:03:15 +02:00
parent 6f85cbdbc8
commit 5d70d05dab
1 changed files with 62 additions and 80 deletions

View File

@ -2341,6 +2341,8 @@ local function register_decorations()
}) })
-- Doubletall grass -- Doubletall grass
local register_doubletall_grass = function(offset, scale, biomes)
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
schematic = { schematic = {
@ -2354,22 +2356,28 @@ local function register_decorations()
replacements = { replacements = {
["mcl_flowers:tallgrass"] = "mcl_flowers:double_grass" ["mcl_flowers:tallgrass"] = "mcl_flowers:double_grass"
}, },
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt_with_grass_snow"}, place_on = {"mcl_core:dirt_with_grass"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = -0.01, offset = offset,
scale = 0.03, scale = scale,
spread = {x = 300, y = 300, z = 300}, spread = {x = 200, y = 200, z = 200},
seed = 420, seed = 420,
octaves = 2, octaves = 3,
persist = 0.6, persist = 0.6,
}, },
y_min = 1, y_min = 1,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
biomes = {"Plains", "SunflowerPlains", "Taiga", "Forest", "FlowerForest", "BirchForest", "BirchForestM", "RoofedForest", "Savanna", "SavannaM", "MesaPlateauF_grasstop" }, biomes = biomes,
}) })
end
register_doubletall_grass(-0.01, 0.03, {"Taiga", "Forest", "FlowerForest", "BirchForest", "BirchForestM", "RoofedForest", "MesaPlateauF_grasstop" })
register_doubletall_grass(-0.002, 0.03, {"Plains", "SunflowerPlains"})
register_doubletall_grass(-0.0005, -0.03, {"Savanna", "SavannaM"})
-- Large ferns -- Large ferns
local register_double_fern = function(offset, scale, biomes)
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
schematic = { schematic = {
@ -2383,50 +2391,24 @@ local function register_decorations()
replacements = { replacements = {
["mcl_flowers:fern"] = "mcl_flowers:double_fern" ["mcl_flowers:fern"] = "mcl_flowers:double_fern"
}, },
place_on = {"mcl_core:dirt_with_grass", "mcl_core:podzol", "mcl_core:podzol_snow"}, place_on = {"mcl_core:dirt_with_grass", "mcl_core:podzol"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0.01, offset = offset,
scale = 0.03, scale = scale,
spread = {x = 250, y = 250, z = 250}, spread = {x = 250, y = 250, z = 250},
seed = 333, seed = 333,
octaves = 2, octaves = 2,
persist = 0.66, persist = 0.66,
}, },
biomes = { "Jungle", "JungleM", "JungleEdge", "JungleEdgeM", "Taiga", "ColdTaiga", "MegaTaiga", "MegaSpruceTaiga" }, biomes = biomes,
y_min = 1, y_min = 1,
y_max = mcl_vars.mg_overworld_max, y_max = mcl_vars.mg_overworld_max,
}) })
end
minetest.register_decoration({ register_double_fern(0.01, 0.03, { "Jungle", "JungleM", "JungleEdge", "JungleEdgeM", "Taiga", "ColdTaiga", "MegaTaiga", "MegaSpruceTaiga" })
deco_type = "schematic", register_double_fern(0.15, 0.1, { "JungleM" })
schematic = {
size = { x=1, y=3, z=1 },
data = {
{ name = "air", prob = 0 },
{ name = "mcl_flowers:double_fern", param1=255, },
{ name = "mcl_flowers:double_fern_top", param1=255, },
},
},
replacements = {
["mcl_flowers:fern"] = "mcl_flowers:double_fern"
},
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 16,
noise_params = {
offset = 0.15,
scale = 0.1,
spread = {x = 250, y = 250, z = 250},
seed = 333,
octaves = 2,
persist = 0.60,
},
biomes = { "JungleM" },
y_min = 1,
y_max = mcl_vars.mg_overworld_max,
})
-- Large flowers -- Large flowers
local register_large_flower = function(name, biomes, seed, offset, flower_forest_offset) local register_large_flower = function(name, biomes, seed, offset, flower_forest_offset)