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

@ -191,6 +191,7 @@ https://forum.minetest.net/viewtopic.php?f=9&t=16446
* Update readme (thanks mckaygerhard)
* Recipe changes, player bones craft into 2x bones, bones must be cooked to
give bonemeal
* Added bushes_classic support
## LICENSE

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