1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2025-07-12 05:10:29 +02:00

added bush_classics support

This commit is contained in:
tenplus1
2023-07-23 18:57:09 +01:00
parent 8b98f5e497
commit 34e8c4a106
2 changed files with 17 additions and 0 deletions

View File

@ -327,3 +327,19 @@ if minetest.get_modpath("everness") then
{"everness:willow_tree_sapling", Everness.grow_willow_tree, "soil"}
})
end
if minetest.get_modpath("bushes_classic") then
local function grow_bush(pos)
local meta = minetest.get_meta(pos)
local bush_name = meta:get_string("bush_type") or "strawberry"
minetest.swap_node(pos, {name = "bushes:" .. bush_name .. "_bush"})
end
bonemeal:add_sapling({
{"bushes:fruitless_bush", grow_bush, "soil"},
})
end