mirror of
https://github.com/mt-mods/moretrees.git
synced 2024-11-15 23:10:20 +01:00
80 lines
4.9 KiB
Lua
80 lines
4.9 KiB
Lua
local stg = minetest.settings
|
|
|
|
--enable/disable different trees
|
|
moretrees.enable_apple_tree = stg:get_bool("moretrees.enable_apple_tree", true)
|
|
moretrees.enable_oak = stg:get_bool("moretrees.enable_oak", true)
|
|
moretrees.enable_sequoia = stg:get_bool("moretrees.enable_sequoia", true)
|
|
moretrees.enable_palm = stg:get_bool("moretrees.enable_palm", true)
|
|
moretrees.enable_date_palm = stg:get_bool("moretrees.enable_date_palm", true)
|
|
moretrees.enable_cedar = stg:get_bool("moretrees.enable_cedar", true)
|
|
moretrees.enable_rubber_tree = stg:get_bool("moretrees.enable_rubber_tree", true)
|
|
moretrees.enable_willow = stg:get_bool("moretrees.enable_willow", true)
|
|
moretrees.enable_birch = stg:get_bool("moretrees.enable_birch", true)
|
|
moretrees.enable_spruce = stg:get_bool("moretrees.enable_spruce", true)
|
|
moretrees.enable_jungle_tree = stg:get_bool("moretrees.enable_jungle_tree", true)
|
|
moretrees.enable_fir = stg:get_bool("moretrees.enable_fir", true)
|
|
moretrees.enable_poplar = stg:get_bool("moretrees.enable_poplar", true)
|
|
moretrees.enable_beech = stg:get_bool("moretrees.enable_beech", false)
|
|
|
|
--spawns tree on mapgen as saplings, legacy setting
|
|
moretrees.spawn_saplings = stg:get_bool("moretrees.spawn_saplings", true)
|
|
|
|
--turn on/off stair varients of nodes via moreblocks or the stair api
|
|
moretrees.enable_stairs = stg:get_bool("moretrees.enable_stairs", true)
|
|
|
|
-- If this variable is set to true, register fences for moretrees wood
|
|
moretrees.enable_fences = stg:get_bool("moretrees.enable_fences", true)
|
|
|
|
--enable plantlike drawtype for leaves
|
|
moretrees.plantlike_leaves = stg:get_bool("moretrees.plantlike_leaves", false)
|
|
|
|
-- Enable this if you want moretrees to redefine default apples so that they
|
|
-- fall when leaves decay/are dug.
|
|
moretrees.enable_redefine_apple = stg:get_bool("moretrees.enable_redefine_apple", true)
|
|
|
|
-- Set this to true to enable leaf decay of all trees except the default ones.
|
|
moretrees.enable_leafdecay = stg:get_bool("moretrees.enable_leafdecay", true)
|
|
|
|
-- various related settings to configure leaf decay.
|
|
moretrees.leafdecay_delay = tonumber(stg:get("moretrees.leafdecay_delay")) or 2
|
|
moretrees.leafdecay_chance = tonumber(stg:get("moretrees.leafdecay_chance")) or 5
|
|
moretrees.leafdecay_radius = tonumber(stg:get("moretrees.leafdecay_radius")) or 5
|
|
moretrees.palm_leafdecay_radius = tonumber(stg:get("moretrees.palm_leafdecay_radius")) or 10
|
|
moretrees.date_palm_leafdecay_radius = tonumber(stg:get("moretrees.date_palm_leafdecay_radius")) or 14
|
|
|
|
-- 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 = stg:get_bool("moretrees.firs_remove_default_trees", false)
|
|
moretrees.firs_remove_interval = tonumber(stg:get("moretrees.firs_remove_interval")) or 2
|
|
moretrees.firs_remove_chance = tonumber(stg:get("moretrees.firs_remove_chance")) or 150
|
|
|
|
-- Cocos palm settings
|
|
moretrees.coconuts_regrow = stg:get_bool("moretrees.coconuts_regrow", true)
|
|
moretrees.coconuts_convert_existing_palms = stg:get_bool("moretrees.coconuts_convert_existing_palms", true)
|
|
moretrees.coconut_flower_interval = tonumber(stg:get("moretrees.coconut_flower_interval")) or 59
|
|
moretrees.coconut_flower_chance = tonumber(stg:get("moretrees.coconut_flower_chance")) or 67
|
|
moretrees.coconut_grow_interval = tonumber(stg:get("moretrees.coconut_grow_interval")) or
|
|
2 * moretrees.coconut_flower_interval * moretrees.coconut_flower_chance
|
|
moretrees.coconut_item_drop_ichance = tonumber(stg:get("moretrees.coconut_item_drop_ichance")) or 10
|
|
|
|
-- Date palm settings
|
|
moretrees.dates_regrow_pollinated = stg:get_bool("moretrees.dates_regrow_pollinated", true)
|
|
moretrees.dates_regrow_unpollinated_percent = tonumber(stg:get("moretrees.dates_regrow_unpollinated_percent")) or 0
|
|
moretrees.dates_female_percent = tonumber(stg:get("moretrees.dates_female_percent")) or 57
|
|
moretrees.dates_pollination_distance = tonumber(stg:get("moretrees.dates_pollination_distance")) or 120
|
|
moretrees.dates_blossom_search_time_treshold = tonumber(stg:get("moretrees.dates_blossom_search_time_treshold")) or 1000
|
|
moretrees.dates_blossom_search_iload = tonumber(stg:get("moretrees.dates_blossom_search_iload")) or 10
|
|
moretrees.dates_flower_interval = tonumber(stg:get("moretrees.dates_flower_interval")) or 59
|
|
moretrees.dates_flower_chance = tonumber(stg:get("moretrees.dates_flower_chance")) or 181
|
|
moretrees.dates_grow_interval = tonumber(stg:get("moretrees.dates_grow_interval")) or
|
|
2 * moretrees.dates_flower_interval * moretrees.dates_flower_chance
|
|
moretrees.dates_item_drop_ichance = tonumber(stg:get("moretrees.dates_item_drop_ichance")) or 10
|
|
|
|
-- Sapling settings
|
|
moretrees.sapling_interval = 100
|
|
moretrees.sapling_chance = 5
|
|
|
|
-- If this variable is set to true, drop leaves out as entities during leaf
|
|
-- decay, rather than just disappearing them.
|
|
moretrees.decay_leaves_as_items = stg:get_bool("moretrees.decay_leaves_as_items", false)
|