Make cactuses in a desert more sparse
This commit is contained in:
parent
dbc23d66c8
commit
15eb0641fa
15
init.lua
15
init.lua
@ -15,6 +15,7 @@ limitations under the License.
|
||||
]]--
|
||||
|
||||
local decor_to_exclude = {}
|
||||
decor_to_exclude["default:cactus"] = { "desert", }
|
||||
|
||||
local function has_value(tab, value)
|
||||
for _, v in pairs(tab) do
|
||||
@ -53,3 +54,17 @@ for _, decoration in pairs(decorations_backup) do
|
||||
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
|
||||
}
|
||||
)
|
Loading…
Reference in New Issue
Block a user