1
0
Fork 0

Generate tall grass after large flowers

This commit is contained in:
Wuzzy 2017-03-21 02:53:21 +01:00
parent c914e69081
commit 40d3bc5602
1 changed files with 29 additions and 29 deletions

View File

@ -547,35 +547,6 @@ local function register_mgv6_decorations()
height_max = 3, height_max = 3,
}) })
-- Tall grass
minetest.register_decoration({
deco_type = "simple",
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 8,
noise_params = {
offset = 0.01,
scale = 0.3,
spread = {x = 500, y = 500, z = 500},
seed = 420,
octaves = 2,
persist = 0.6
},
y_min = 1,
y_max = 50,
decoration = "mcl_flowers:tallgrass",
})
-- Add a small amount of tall grass everywhere to avoid areas completely empty devoid of tall grass
minetest.register_decoration({
deco_type = "simple",
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 8,
fill_ratio = 0.001,
y_min = 1,
y_max = 50,
decoration = "mcl_flowers:tallgrass",
})
-- Doubletall grass -- Doubletall grass
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
@ -672,6 +643,35 @@ local function register_mgv6_decorations()
register_large_flower("lilac", 10600, -0.007) register_large_flower("lilac", 10600, -0.007)
register_large_flower("sunflower", 2940, -0.005) register_large_flower("sunflower", 2940, -0.005)
-- Tall grass
minetest.register_decoration({
deco_type = "simple",
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 8,
noise_params = {
offset = 0.01,
scale = 0.3,
spread = {x = 500, y = 500, z = 500},
seed = 420,
octaves = 2,
persist = 0.6
},
y_min = 1,
y_max = 50,
decoration = "mcl_flowers:tallgrass",
})
-- Add a small amount of tall grass everywhere to avoid areas completely empty devoid of tall grass
minetest.register_decoration({
deco_type = "simple",
place_on = {"mcl_core:dirt_with_grass"},
sidelen = 8,
fill_ratio = 0.001,
y_min = 1,
y_max = 50,
decoration = "mcl_flowers:tallgrass",
})
-- Dead bushes -- Dead bushes
minetest.register_decoration({ minetest.register_decoration({