You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
6.5KB

  1. -- Global configuration variables
  2. -- Enable the various kinds of trees.
  3. moretrees.enable_apple_tree = true
  4. moretrees.enable_oak = true
  5. moretrees.enable_sequoia = true
  6. moretrees.enable_palm = true
  7. moretrees.enable_date_palm = true
  8. moretrees.enable_cedar = true
  9. moretrees.enable_rubber_tree = true
  10. moretrees.enable_willow = true
  11. moretrees.enable_birch = true
  12. moretrees.enable_spruce = true
  13. moretrees.enable_jungle_tree = true
  14. moretrees.enable_fir = true
  15. moretrees.enable_poplar = true
  16. moretrees.enable_beech = false
  17. -- set this to true to make moretrees spawn saplings at mapgen time instead
  18. -- of fully-grown trees, which will grow into full trees after a very short
  19. -- delay. This reduces mapgen lag in some situations, and fixes situations
  20. -- where the mapgen conflicts with the tree generator.
  21. moretrees.spawn_saplings = true
  22. -- Set this to true to allow defining stairs/slabs/etc. If Moreblocks is
  23. -- installed, this will use that mod's Stairs Plus component. Otherwise, it
  24. -- will use the default stairs mod in minetest_game, if present
  25. moretrees.enable_stairs = true
  26. -- If this variable is set to true, register fences for moretrees wood
  27. moretrees.enable_fences = false
  28. -- Set this to true if you want the plantlike drawtype for leaves, which
  29. -- improves some peoples' framerates without resorting to making leaf nodes opaque.
  30. -- Affects default leaves and default jungle leaves also.
  31. moretrees.plantlike_leaves = false
  32. -- Enable this if you want moretrees to redefine default apples so that they
  33. -- fall when leaves decay/are dug.
  34. moretrees.enable_redefine_apple = true
  35. -- Set this to true to enable leaf decay of all trees except the default ones.
  36. moretrees.enable_leafdecay = true
  37. -- various related settings to configure leaf decay.
  38. moretrees.leafdecay_delay = 2
  39. moretrees.leafdecay_chance = 5
  40. moretrees.leafdecay_radius = 5
  41. moretrees.palm_leafdecay_radius = 10
  42. -- Change these settings if you want default trees to be gradually cut down
  43. -- above the elevation where firs normally generate.
  44. moretrees.firs_remove_default_trees = false
  45. moretrees.firs_remove_interval = 2
  46. moretrees.firs_remove_chance = 150
  47. -- Cocos palm settings
  48. moretrees.coconuts_regrow = true
  49. moretrees.coconuts_convert_existing_palms = true -- Converting existing palm trees will make coconuts regrow on them as well
  50. -- Else, they will only regrow on newly-spawned palms
  51. -- However, conversion is not an exact science, and although an attempt is
  52. -- made to detect whether a trunk belongs to an actual palm, some coconut trunks
  53. -- and some coconuts may be incorrectly converted.
  54. moretrees.coconut_flower_interval = 59
  55. moretrees.coconut_flower_chance = 67
  56. moretrees.coconut_grow_interval = 2 * moretrees.coconut_flower_interval * moretrees.coconut_flower_chance
  57. -- Actual interval will randomly vary between 67% and 133% of this value
  58. -- 2 * 59 * 67 ~ 2 hours. So flowers become coconuts in about 6 hours
  59. moretrees.coconut_item_drop_ichance = 10 -- inverse probability of ripe coconuts dropping as items (instead of disappearing)
  60. -- Date palm settings
  61. -- Suggested configuration alternatives:
  62. -- - Dates grow only when pollinated:
  63. -- - Set dates_regrow_pollinated to true
  64. -- - Set dates_regrow_unpollinated_percent to 0
  65. -- - Dates grow without pollination. Pollination disabled:
  66. -- - Set dates_regrow_pollinated to false
  67. -- - Set dates_regrow_unpollinated_percent to some larger positive value, e.g. 95
  68. -- - Dates grow, but more and faster if male flowers are nearby
  69. -- - Set dates_regrow_pollinated to true
  70. -- - Set dates_regrow_unpollinated_percent to some small positive value, e.g. 33
  71. -- - Optional but recommended: Reduce the pollination distance, e.g. to 30
  72. -- Note that it should not be necessary to disable pollination for performance
  73. -- reasons. A lot of effort has gone into ensuring that date growing will not cause lag.
  74. --
  75. -- If lag is suspected, use the chat command '/dates_stats' to obtain the male dates
  76. -- search time, as well as the counts of total number of searches requested and the
  77. -- number of searches actually performed.
  78. moretrees.dates_regrow_pollinated = true -- Enable pollination. If enabled, male trees are required for dates to grow.
  79. -- If disabled, dates_regrow_unpollinated_percent must be non-zero for dates to regrow.
  80. moretrees.dates_regrow_unpollinated_percent = 0 -- Percentage of female dates becoming dates without being pollinated.
  81. -- If 0, dates_regrow_pollinated must be enabled for dates to grow.
  82. moretrees.dates_female_percent = 57 -- Ratio of female to male trees - tune this to improve # of generated trees that actually bear fruit
  83. -- ~57% gives near optimal results for groups of 3 random trees, while it is only slightly suboptimal
  84. -- for groups of 2 and 4 random trees (~2% less fruit than optimal).
  85. -- Optimal values per group size: 2: 50%, 3: 57.78%, 4: 63%, 5: 66.9%, 6: 69.9%, [...], 12: 79.8%
  86. -- So 57% is optimal for small groups of trees. As larger groups have more female palms anyway, a
  87. -- less than optimal proportion of female to male trees is not a problem.
  88. moretrees.dates_pollination_distance = 120
  89. moretrees.dates_blossom_search_time_treshold = 1000 -- If average male blossom search time (in microseconds) exceeds this, start limiting the search load.
  90. moretrees.dates_blossom_search_iload = 10 -- Inverse fraction of CPU time that male blossom searching search may consume.
  91. -- As searching a large area (radius: dates_pollination_distance/3 per attempt) can cause lag,
  92. -- this limits the search frequency server-wide so that the impact on server lag is minimised
  93. -- For personal servers, this can be set lower, or even to 1 or 0 (0 disables load limiting).
  94. -- Obtain the current average search time using /dates_stats
  95. moretrees.dates_flower_interval = 59
  96. moretrees.dates_flower_chance = 181
  97. moretrees.dates_grow_interval = 2 * moretrees.dates_flower_interval * moretrees.dates_flower_chance
  98. -- As date palms have a high yield, don't grow dates too fast
  99. -- The actual interval will vary randomly between 67% and 133% of this value.
  100. -- 2 * 59 * 181 ~ 6 hours. So by default flowers become dates in about one (human) day.
  101. moretrees.dates_item_drop_ichance = 10 -- inverse probability of ripe dates dropping as items (instead of disappearing)
  102. -- Sapling settings
  103. moretrees.sapling_interval = 100
  104. moretrees.sapling_chance = 5
  105. -- If this variable is set to true, drop leaves out as entities during leaf
  106. -- decay, rather than just disappearing them.
  107. moretrees.decay_leaves_as_items = false