1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-30 05:40:24 +02:00

Add marram grass for coastal sand dunes

Use noise with 1 octave and flag 'absvalue' to create sand paths
in dunes.
This commit is contained in:
paramat
2018-01-24 11:29:02 +00:00
committed by paramat
parent ca81e9b8c6
commit 7f3e9e65b3
7 changed files with 89 additions and 3 deletions

View File

@ -1603,7 +1603,7 @@ end
local function register_grass_decoration(offset, scale, length)
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:sand"},
place_on = {"default:dirt_with_grass"},
sidelen = 16,
noise_params = {
offset = offset,
@ -1613,8 +1613,7 @@ local function register_grass_decoration(offset, scale, length)
octaves = 3,
persist = 0.6
},
biomes = {"grassland", "grassland_dunes", "deciduous_forest",
"coniferous_forest_dunes", "floatland_grassland"},
biomes = {"grassland", "deciduous_forest", "floatland_grassland"},
y_min = 1,
y_max = 31000,
decoration = "default:grass_" .. length,
@ -2022,6 +2021,31 @@ function default.register_decorations()
param2 = 4,
})
-- Marram grass
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:sand"},
sidelen = 4,
noise_params = {
offset = -0.4,
scale = 3.0,
spread = {x = 16, y = 16, z = 16},
seed = 513337,
octaves = 1,
persist = 0.5,
flags = "absvalue"
},
biomes = {"coniferous_forest_dunes", "grassland_dunes"},
y_min = 4,
y_max = 5,
decoration = {
"default:marram_grass_1",
"default:marram_grass_2",
"default:marram_grass_3",
},
})
-- Coral reef
minetest.register_decoration({