Browse Source

[nalc_moretrees] Ajoute génération herbe dans nouveaux biomes

tags/nalc-1.2.0
sys4 1 month ago
parent
commit
14be3b221a
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      nalc_moretrees/init.lua

+ 28
- 0
nalc_moretrees/init.lua View File

@@ -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…
Cancel
Save