forked from mtcontrib/bonemeal
added bush_classics support
This commit is contained in:
parent
8b98f5e497
commit
34e8c4a106
|
@ -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
|
||||
|
||||
|
|
16
mods.lua
16
mods.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user