Make cactuses in a desert more sparse

This commit is contained in:
Andrey Stepanov 2024-12-21 21:00:01 +05:00
parent dbc23d66c8
commit 15eb0641fa
Signed by: Koldun
GPG Key ID: 53DE683337F5D25F

View File

@ -15,6 +15,7 @@ limitations under the License.
]]-- ]]--
local decor_to_exclude = {} local decor_to_exclude = {}
decor_to_exclude["default:cactus"] = { "desert", }
local function has_value(tab, value) local function has_value(tab, value)
for _, v in pairs(tab) do for _, v in pairs(tab) do
@ -53,3 +54,17 @@ for _, decoration in pairs(decorations_backup) do
end end
end end
-- cactus
minetest.register_decoration(
{
decoration = "default:cactus",
deco_type = "simple",
biomes = { "desert" },
sidelen = 80,
y_min = 1,
y_max = 100,
place_on = { "default:desert_sand" },
fill_ratio = 0.001,
height_max = 4
}
)