[nalc_mediterranean] Add bonemeal support
This commit is contained in:
parent
6ac7a6f608
commit
559e0414ab
@ -423,6 +423,15 @@ minetest.register_decoration({
|
|||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Support bonemeal
|
||||||
|
if minetest.get_modpath("bonemeal") then
|
||||||
|
local g_saplings = {}
|
||||||
|
for _, tree in pairs(trees) do
|
||||||
|
table.insert(g_saplings, {tree.sapling, grow_sapling, "soil"})
|
||||||
|
end
|
||||||
|
bonemeal:add_sapling(g_saplings)
|
||||||
|
end
|
||||||
|
|
||||||
minetest.log("action", "[nalc_mediterranean] loaded.")
|
minetest.log("action", "[nalc_mediterranean] loaded.")
|
||||||
|
|
||||||
-- local mts_save = function(name, schematic)
|
-- local mts_save = function(name, schematic)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name = nalc_mediterranean
|
name = nalc_mediterranean
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = snow
|
optional_depends = snow,bonemeal
|
||||||
|
Loading…
Reference in New Issue
Block a user