[nalc_moretrees] Ajoute génération herbe dans nouveaux biomes
This commit is contained in:
parent
73408c74b5
commit
14be3b221a
@ -355,6 +355,34 @@ end
|
||||
-- Mettez à true (ou false) dans default_settings.txt de moretrees les jungletrees si vous
|
||||
-- voulez (ou non) que moretrees génère des Jungletrees supplémentaires.
|
||||
|
||||
-- Grass decorations
|
||||
local function register_grass_decoration(offset, scale, length)
|
||||
minetest.register_decoration({
|
||||
name = "nalc_moretrees:grass_" .. length,
|
||||
deco_type = "simple",
|
||||
place_on = {"default:dirt_with_grass"},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 329,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
biomes = {"deciduous_cold", "deciduous_cold_humid"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "default:grass_" .. length,
|
||||
})
|
||||
end
|
||||
|
||||
register_grass_decoration(-0.03, 0.09, 5)
|
||||
register_grass_decoration(-0.015, 0.075, 4)
|
||||
register_grass_decoration(0, 0.06, 3)
|
||||
register_grass_decoration(0.015, 0.045, 2)
|
||||
register_grass_decoration(0.03, 0.03, 1)
|
||||
|
||||
-- Redefinir les feuilles avec l'apparence plantlike si configuré dans les paramètres
|
||||
-- (Améliore les performances des clients)
|
||||
if minetest.settings:get_bool("nalc_moretrees.plantlike_leaves") or moretrees.plantlike_leaves then
|
||||
|
Loading…
Reference in New Issue
Block a user