summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default_settings.txt6
-rw-r--r--node_defs.lua9
2 files changed, 11 insertions, 4 deletions
diff --git a/default_settings.txt b/default_settings.txt
index 665222e..ef81c53 100644
--- a/default_settings.txt
+++ b/default_settings.txt
@@ -46,13 +46,13 @@ moretrees.enable_redefine_apple = true
-- 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
diff --git a/node_defs.lua b/node_defs.lua
index a71b5c3..897a3c7 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -85,6 +85,13 @@ for i in ipairs(moretrees.treelist) do
-- 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",
@@ -96,7 +103,7 @@ for i in ipairs(moretrees.treelist) do
drop = {
max_items = 1,
items = {
- {items = {"moretrees:"..treename.."_sapling"}, rarity = 100 },
+ {items = {"moretrees:"..treename.."_sapling"}, rarity = droprarity },
{items = {"moretrees:"..treename.."_leaves"} }
}
},