summaryrefslogtreecommitdiff
path: root/leaves.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-02-28 19:33:34 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-02-28 19:33:34 +0000
commiteca5b6e13c6b08bed05919425ed5a435f462b5f1 (patch)
tree32d5e39741157e612008e42ac9ec3a375902c5a9 /leaves.lua
parentcd40602a101c261066653b9cd16c05ad17fc0868 (diff)
added support for (0.4.15 dev)'s new leafdecay functions
Diffstat (limited to 'leaves.lua')
-rw-r--r--leaves.lua60
1 files changed, 59 insertions, 1 deletions
diff --git a/leaves.lua b/leaves.lua
index 0848c2a..38e7c3c 100644
--- a/leaves.lua
+++ b/leaves.lua
@@ -46,7 +46,6 @@ minetest.override_item("default:pine_needles", {
-- default acacia tree leaves
minetest.override_item("default:acacia_leaves", {
drawtype = leaftype,
--- tiles = {"moretrees_acacia_leaves.png"},
inventory_image = "default_acacia_leaves.png",
wield_image = "default_acacia_leaves.png",
visual_scale = 1.4,
@@ -386,3 +385,62 @@ minetest.register_craft({
recipe = "ethereal:bush3",
burntime = 1,
})
+
+-- compatibility check for new mt version with leafdecay function
+if minetest.registered_nodes["default:dirt_with_rainforest_litter"] then
+
+default.register_leafdecay({
+ trunks = {"default:tree"},
+ leaves = {"default:apple", "default:leaves", "ethereal:orange", "ethereal:orange_leaves"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:willow_trunk"},
+ leaves = {"ethereal:willow_twig"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:redwood_trunk"},
+ leaves = {"ethereal:redwood_leaves"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:frost_tree"},
+ leaves = {"ethereal:frost_leaves"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:yellow_trunk"},
+ leaves = {"ethereal:yellowleaves", "ethereal:golden_apple"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:palm_trunk"},
+ leaves = {"ethereal:palmleaves", "ethereal:coconut"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:banana_trunk"},
+ leaves = {"ethereal:bananaleaves", "ethereal:banana"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:birch_trunk"},
+ leaves = {"ethereal:birch_leaves"},
+ radius = 3
+})
+
+default.register_leafdecay({
+ trunks = {"ethereal:bamboo"},
+ leaves = {"ethereal:bamboo_leaves"},
+ radius = 1
+})
+
+end