diff --git a/bamboo/init.lua b/bamboo/init.lua index 536c4a6..0e664b4 100644 --- a/bamboo/init.lua +++ b/bamboo/init.lua @@ -215,3 +215,9 @@ default.register_leafdecay({ leaves = {"bamboo:leaves"}, radius = 3, }) + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"bamboo:sprout", grow_new_bamboo, "soil"}, + }) +end diff --git a/bamboo/mod.conf b/bamboo/mod.conf index 7303311..c518814 100644 --- a/bamboo/mod.conf +++ b/bamboo/mod.conf @@ -1,4 +1,4 @@ name = bamboo description = Bamboo Tree for Grassland depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/birch/init.lua b/birch/init.lua index 3443214..a58d868 100644 --- a/birch/init.lua +++ b/birch/init.lua @@ -251,3 +251,9 @@ if minetest.get_modpath("stairs") ~= nil then default.node_sound_wood_defaults() ) end + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"birch:sapling", grow_new_birch_tree, "soil"}, + }) +end diff --git a/birch/mod.conf b/birch/mod.conf index e67f796..a731282 100644 --- a/birch/mod.conf +++ b/birch/mod.conf @@ -1,4 +1,4 @@ name = birch description = Birch Tree for Grassland depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/cherrytree/init.lua b/cherrytree/init.lua index ca969fc..a93d3ef 100644 --- a/cherrytree/init.lua +++ b/cherrytree/init.lua @@ -258,3 +258,11 @@ minetest.register_abm({ end end }) + +--Support for bonemeal + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"cherrytree:sapling", grow_new_cherrytree_tree, "soil"}, + }) +end diff --git a/cherrytree/mod.conf b/cherrytree/mod.conf index b219a8f..bfc49c8 100644 --- a/cherrytree/mod.conf +++ b/cherrytree/mod.conf @@ -1,4 +1,4 @@ name = cherrytree description = Cherry Tree for Decidious Forest depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal \ No newline at end of file diff --git a/chestnuttree/init.lua b/chestnuttree/init.lua index 08bd3ab..b1c8e82 100644 --- a/chestnuttree/init.lua +++ b/chestnuttree/init.lua @@ -228,3 +228,9 @@ if minetest.get_modpath("stairs") ~= nil then default.node_sound_wood_defaults() ) end + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"chestnuttree:sapling", grow_new_chestnuttree_tree, "soil"}, + }) +end diff --git a/chestnuttree/mod.conf b/chestnuttree/mod.conf index 19394fa..877e490 100644 --- a/chestnuttree/mod.conf +++ b/chestnuttree/mod.conf @@ -1,4 +1,4 @@ name = chestnuttree description = Chesnut Tree for Grassland depends = default -optional_depends = stairs +optional_depends = stairs, bonemeal diff --git a/clementinetree/init.lua b/clementinetree/init.lua index 75c9d03..f58c8ec 100644 --- a/clementinetree/init.lua +++ b/clementinetree/init.lua @@ -208,4 +208,10 @@ if minetest.get_modpath("stairs") ~= nil then S("Clementine Tree Slab"), default.node_sound_wood_defaults() ) -end \ No newline at end of file +end + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"clementinetree:sapling", grow_new_clementinetree_tree, "soil"}, + }) +end diff --git a/clementinetree/mod.conf b/clementinetree/mod.conf index 032a313..eb3b581 100644 --- a/clementinetree/mod.conf +++ b/clementinetree/mod.conf @@ -1,4 +1,4 @@ name = clementinetree description = Clementine Tree for Decidious Forest depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/ebony/init.lua b/ebony/init.lua index 9f4b3c1..20d71a6 100644 --- a/ebony/init.lua +++ b/ebony/init.lua @@ -254,3 +254,9 @@ if minetest.get_modpath("stairs") ~= nil then default.node_sound_wood_defaults() ) end + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"ebony:sapling", grow_new_ebony_tree, "soil"}, + }) +end diff --git a/ebony/mod.conf b/ebony/mod.conf index d4bd222..009ccee 100644 --- a/ebony/mod.conf +++ b/ebony/mod.conf @@ -1,4 +1,4 @@ name = ebony description = Ebony Tree for Rainforest Biome depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/larch/init.lua b/larch/init.lua index 3d800d5..f11dd16 100644 --- a/larch/init.lua +++ b/larch/init.lua @@ -213,3 +213,9 @@ if minetest.get_modpath("stairs") ~= nil then default.node_sound_wood_defaults() ) end + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"larch:sapling", grow_new_larch_tree, "soil"}, + }) +end diff --git a/larch/mod.conf b/larch/mod.conf index d741038..a6af376 100644 --- a/larch/mod.conf +++ b/larch/mod.conf @@ -1,3 +1,3 @@ name = larch description = Larch Tree -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/lemontree/init.lua b/lemontree/init.lua index 2aa7ff5..b9501c4 100644 --- a/lemontree/init.lua +++ b/lemontree/init.lua @@ -218,8 +218,13 @@ if minetest.get_modpath("stairs") ~= nil then ) end -if minetest.get_modpath("cork") ~= nil then +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"lemontree:sapling", grow_new_lemontree_tree, "soil"}, + }) +end +if minetest.get_modpath("cork") ~= nil then minetest.register_node("lemontree:trunk_nobark", { description = S("Lemon Tree Trunk"), tiles = { @@ -244,5 +249,4 @@ if minetest.get_modpath("cork") ~= nil then recipe = "lemontree:trunk_nobark", burntime = 25, }) - -end \ No newline at end of file +end diff --git a/lemontree/mod.conf b/lemontree/mod.conf index 5f64e97..fb725a3 100644 --- a/lemontree/mod.conf +++ b/lemontree/mod.conf @@ -1,4 +1,4 @@ name = lemontree description = Lemon Tree for Decidious Forest depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/mahogany/init.lua b/mahogany/init.lua index 33ec757..2002904 100644 --- a/mahogany/init.lua +++ b/mahogany/init.lua @@ -255,3 +255,11 @@ if minetest.get_modpath("stairs") ~= nil then default.node_sound_wood_defaults() ) end + +--Support for bonemeal + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"mahogany:sapling", grow_new_mahogany_tree, "soil"}, + }) +end diff --git a/mahogany/mod.conf b/mahogany/mod.conf index b1e0088..450bb42 100644 --- a/mahogany/mod.conf +++ b/mahogany/mod.conf @@ -1,4 +1,4 @@ name = mahogany description = Mahogany Tree for Rainforest Biome depends = default -optional_depends = stairs \ No newline at end of file +optional_depends = stairs, bonemeal diff --git a/palm/init.lua b/palm/init.lua index f2084fb..6b4d80c 100644 --- a/palm/init.lua +++ b/palm/init.lua @@ -2,8 +2,6 @@ -- Palm Tree -- --- Thanks to VanessaE, Tenplus1, paramat and all others who --- contribute to this mod local modname = "palm" local modpath = minetest.get_modpath(modname) @@ -417,3 +415,10 @@ if minetest.get_modpath("stairs") ~= nil then default.node_sound_wood_defaults() ) end + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"palm:sapling", grow_new_palm_tree, "soil"}, + {"palm:sapling", grow_new_palm_tree, "sand"}, + }) +end diff --git a/palm/mod.conf b/palm/mod.conf index 1c712aa..5fec154 100644 --- a/palm/mod.conf +++ b/palm/mod.conf @@ -1,3 +1,3 @@ name = palm description = Palm Tree for deserts -depends = default, doors \ No newline at end of file +depends = default, doors, bonemeal diff --git a/pineapple/init.lua b/pineapple/init.lua index efa9145..1fc0755 100644 --- a/pineapple/init.lua +++ b/pineapple/init.lua @@ -125,4 +125,10 @@ minetest.register_lbm({ action = function(pos) minetest.get_node_timer(pos):start(math.random(1200, 2400)) end -}) \ No newline at end of file +}) + +if minetest.get_modpath("bonemeal") ~= nil then + bonemeal:add_sapling({ + {"pineapple:sapling", grow_new_pineapple_tree, "soil"}, + }) +end diff --git a/pineapple/mod.conf b/pineapple/mod.conf index 6081c86..3293928 100644 --- a/pineapple/mod.conf +++ b/pineapple/mod.conf @@ -1,4 +1,4 @@ name = pineapple description = Pineapple tree for the jungle depends = default -optional_depends = \ No newline at end of file +optional_depends = bonemeal