bonemeal support

master
runs 2019-07-27 17:22:05 +02:00
parent 6170a4ca71
commit 86291989f6
22 changed files with 85 additions and 18 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
name = bamboo
description = Bamboo Tree for Grassland
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,4 +1,4 @@
name = birch
description = Birch Tree for Grassland
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,4 +1,4 @@
name = cherrytree
description = Cherry Tree for Decidious Forest
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,4 +1,4 @@
name = chestnuttree
description = Chesnut Tree for Grassland
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -208,4 +208,10 @@ if minetest.get_modpath("stairs") ~= nil then
S("Clementine Tree Slab"),
default.node_sound_wood_defaults()
)
end
end
if minetest.get_modpath("bonemeal") ~= nil then
bonemeal:add_sapling({
{"clementinetree:sapling", grow_new_clementinetree_tree, "soil"},
})
end

View File

@ -1,4 +1,4 @@
name = clementinetree
description = Clementine Tree for Decidious Forest
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,4 +1,4 @@
name = ebony
description = Ebony Tree for Rainforest Biome
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,3 +1,3 @@
name = larch
description = Larch Tree
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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
end

View File

@ -1,4 +1,4 @@
name = lemontree
description = Lemon Tree for Decidious Forest
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,4 +1,4 @@
name = mahogany
description = Mahogany Tree for Rainforest Biome
depends = default
optional_depends = stairs
optional_depends = stairs, bonemeal

View File

@ -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

View File

@ -1,3 +1,3 @@
name = palm
description = Palm Tree for deserts
depends = default, doors
depends = default, doors, bonemeal

View File

@ -125,4 +125,10 @@ minetest.register_lbm({
action = function(pos)
minetest.get_node_timer(pos):start(math.random(1200, 2400))
end
})
})
if minetest.get_modpath("bonemeal") ~= nil then
bonemeal:add_sapling({
{"pineapple:sapling", grow_new_pineapple_tree, "soil"},
})
end

View File

@ -1,4 +1,4 @@
name = pineapple
description = Pineapple tree for the jungle
depends = default
optional_depends =
optional_depends = bonemeal