1
0
mirror of https://github.com/mt-mods/moretrees.git synced 2024-11-05 09:50:34 +01:00
moretrees/settings.lua
Vanessa Ezekowitz 4c198fad78 Multiple changes, see below:
Fix replacement of default trees so that it works correctly.  Beeches
now use default tree nodes, but L-systems models.  This redefines the
default tree, wood, leaves, and saplings so that they use moretrees'
textures "Beech" in their descriptions, but only if replacement of
default trees is enabled.

Added backward-compat aliases for this change.

Moved tree replacement mapgen->air aliases to a more logical spot in the
code.

Also, changed out all leaf decay dig_node() calls for nodeupdate(), since the
former calls the latter anyway, and the latter is what does the job.

Increased the palm leaf decay radius to 12.
2013-04-07 22:09:18 -04:00

64 lines
1.9 KiB
Lua

-- Global configuration variables
-- Enable the various kinds of trees.
moretrees.enable_apple_tree = true
moretrees.enable_oak = true
moretrees.enable_sequoia = true
moretrees.enable_palm = true
moretrees.enable_pine = true
moretrees.enable_rubber_tree = true
moretrees.enable_willow = true
moretrees.enable_birch = true
moretrees.enable_spruce = true
moretrees.enable_jungle_tree = true
moretrees.enable_fir = true
-- Enable replacement of default trees with moretrees beech.
-- Note: The code that uses this variable is in leafdecay.lua
-- because of how it interacts with settings related to that
-- function.
moretrees.enable_replace_default_trees = true
-- Set this to true to enable leaf decay of all trees except the default ones.
moretrees.enable_leafdecay = true
-- Enable this one if you want this mod's leafdecay code to affect the old
-- default trees too; this setting is independent of the one above. You'll
-- want to manually disable the default leafdecay code in minetest_game if
-- you enable this, otherwise you'll have two sets of leaf decay code running
-- at the same time, which will just waste CPU for no benefit.
moretrees.enable_default_leafdecay = true
-- Enable this if you want moretrees to redefine default apples so that they
-- fall when leaves decay/are dug.
moretrees.enable_redefine_apple = true
-- various settings to configure leaf decay in general.
moretrees.leafdecay_delay = 2
moretrees.leafdecay_chance = 200
moretrees.leafdecay_radius = 5
moretrees.palm_leafdecay_radius = 12
moretrees.default_leafdecay_delay = 3
moretrees.default_leafdecay_chance = 100
moretrees.default_leafdecay_radius = 4
-- Change these settings if you want default trees to be gradually cut down
-- above the elevation where firs normally generate.
moretrees.firs_remove_default_trees = false
moretrees.firs_remove_interval = 2
moretrees.firs_remove_chance = 150
-- Sapling settings
moretrees.sapling_interval = 500
moretrees.sapling_chance = 20