-- various settings to configure leaf decay in general.
moretrees.leafdecay_delay = 2
-moretrees.leafdecay_chance = 200
+moretrees.leafdecay_chance = 100
moretrees.leafdecay_radius = 5
-moretrees.palm_leafdecay_radius = 12
+moretrees.palm_leafdecay_radius = 15
moretrees.default_leafdecay_delay = 3
-moretrees.default_leafdecay_chance = 100
+moretrees.default_leafdecay_chance = 50
moretrees.default_leafdecay_radius = 4
-- Change these settings if you want default trees to be gradually cut down
-- player will get leaves only if he/she gets no saplings,
-- this is because max_items is 1
+
+ local droprarity = 100
+
+ if treename ~= "palm" then
+ droprarity = 20
+ end
+
minetest.register_node("moretrees:"..treename.."_leaves", {
description = treedesc.." Leaves",
drawtype = "allfaces_optional",
drop = {
max_items = 1,
items = {
- {items = {"moretrees:"..treename.."_sapling"}, rarity = 100 },
+ {items = {"moretrees:"..treename.."_sapling"}, rarity = droprarity },
{items = {"moretrees:"..treename.."_leaves"} }
}
},