diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-10-02 13:43:50 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-10-02 13:43:50 -0400 |
commit | b320a7db8f2f6d2cf3d5a025c05d858f96455cf8 (patch) | |
tree | 24de3291eaf416812d5142cbd7a735582a624a35 /node_defs.lua | |
parent | 5a27405fadcf314fa21ec6573e8cd534d4f35c55 (diff) |
All leaf decay values sped up a bit and palm leaf decay radius changed
to 15, by default (does not affect existing world - admins will need to
change the moretrees_settings.txt file manually, if so desired)
Palms make more saplings now. (Affects all worlds)
Diffstat (limited to 'node_defs.lua')
-rw-r--r-- | node_defs.lua | 9 |
1 files changed, 8 insertions, 1 deletions
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"} } } }, |