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)
This commit is contained in:
Vanessa Ezekowitz 2013-10-02 13:43:50 -04:00
parent 5a27405fad
commit b320a7db8f
2 changed files with 11 additions and 4 deletions

View File

@ -46,13 +46,13 @@ moretrees.enable_redefine_apple = true
-- various settings to configure leaf decay in general. -- various settings to configure leaf decay in general.
moretrees.leafdecay_delay = 2 moretrees.leafdecay_delay = 2
moretrees.leafdecay_chance = 200 moretrees.leafdecay_chance = 100
moretrees.leafdecay_radius = 5 moretrees.leafdecay_radius = 5
moretrees.palm_leafdecay_radius = 12 moretrees.palm_leafdecay_radius = 15
moretrees.default_leafdecay_delay = 3 moretrees.default_leafdecay_delay = 3
moretrees.default_leafdecay_chance = 100 moretrees.default_leafdecay_chance = 50
moretrees.default_leafdecay_radius = 4 moretrees.default_leafdecay_radius = 4
-- Change these settings if you want default trees to be gradually cut down -- Change these settings if you want default trees to be gradually cut down

View File

@ -85,6 +85,13 @@ for i in ipairs(moretrees.treelist) do
-- player will get leaves only if he/she gets no saplings, -- player will get leaves only if he/she gets no saplings,
-- this is because max_items is 1 -- this is because max_items is 1
local droprarity = 100
if treename ~= "palm" then
droprarity = 20
end
minetest.register_node("moretrees:"..treename.."_leaves", { minetest.register_node("moretrees:"..treename.."_leaves", {
description = treedesc.." Leaves", description = treedesc.." Leaves",
drawtype = "allfaces_optional", drawtype = "allfaces_optional",
@ -96,7 +103,7 @@ for i in ipairs(moretrees.treelist) do
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
{items = {"moretrees:"..treename.."_sapling"}, rarity = 100 }, {items = {"moretrees:"..treename.."_sapling"}, rarity = droprarity },
{items = {"moretrees:"..treename.."_leaves"} } {items = {"moretrees:"..treename.."_leaves"} }
} }
}, },