此模组使 TerraFirmaCraft 中的森林随时间推移进行再生或扩散。树木仅在秋季扩散,因为这是它们通常掉落带种果实的季节,因此新树将在下一个春季准备好生长。哪些树木可以扩散或再生可通过数据包进行配置,包括种子扩散的速度和距离。
开箱即用支持 ArborFirmaCraft。
森林再生配方
再生配方定义了植物、灌木和树木在世界中自然扩散和再生的方式。与没有树木或植被扩散的静态世界不同,每个配方都指定了树苗(或其他指定方块)出现的条件,使森林、植被和世界感觉更加生动、具有交互性,并能响应周围环境并与之互动。
该模组为 TFC 树叶、果树树叶和果实灌木添加了扩散机制。
功能
-
动态森林生长
树叶或灌木可随时间推移扩散成新的树苗,模拟自然再生过程。
-
环境感知生成
生长可受岩石类型、海拔范围和光照等级的限制。
-
气候敏感性
配方可以强制执行温度和降雨阈值,包括平均值和方差。
-
地下水和水分检查
植物仅在可行的土壤条件下扩散。
-
森林类型集成
配方可以关联到特定的森林类型和子类型。
-
季节性控制
再生可以被限制在一年中的特定月份。
-
概率和扩散距离
可配置的概率和半径决定了树苗出现的频率和距离。
最小可行配方
以下是最小的有效配方定义,仅显示必需字段:
{
"type": "tfcrf:regrowth",
"leaves": [
"<block ingredient>"
],
"sapling": "<block state>"
}
这确保了配方的功能性。默认情况下,概率、扩散距离、环境、气候、地下水、森林和季节均允许无限制的再生。只有当你希望将生长限制在特定条件时,才需要添加额外字段。
示例配方
以下是橡树的更详细配方,展示了如何将再生限制在特定条件。这使用了 TFC 中生成橡树所需的已确立环境条件:
{
"type": "tfcrf:regrowth",
"leaves": [
"tfc:wood/leaves/oak"
],
"sapling": "tfc:wood/sapling/oak",
"chance": 4572,
"spread_distance": 19,
"rocks": [],
"min_y": 60,
"max_y": 85,
"min_light": 11,
"max_light": 15,
"min_average_temperature": -5.8,
"max_average_temperature": 8.6,
"min_rainfall_variance": -0.3,
"max_rainfall_variance": 0.45,
"min_groundwater": 210,
"max_groundwater": 380,
"forest_types": [],
"forest_sub_types": [],
"months": [
"january",
"february",
"march",
"april",
"may",
"june",
"july",
"august",
"september",
"october",
"november",
"december"
]
}
可能的配方对象
再生配方可以包含以下对象。leaves 和 sapling 是严格必需的;其他所有字段均为可选,如果省略则默认为宽松值。
基础数据
- leaves: 一个或多个可以扩散成树苗的树叶方块。
- sapling: 当条件满足时将放置的树苗的方块状态。
- chance: 再生的概率因子。数字越大表示事件越罕见。默认值:
3000.0。
- spread_distance: 新树苗可以从源树叶出现的最远水平距离。默认值:
18.0。
环境数据
- rocks: 允许的岩石类型列表。使用小写名称(
"andesite"、"gabbro"、"gneiss" 等)。空列表表示无限制。
- min_y: 最低海拔(Y 级)。默认值:无限制。
- max_y: 最高海拔(Y 级)。默认值:无限制。
- min_light: 最低光照等级。默认值:无限制。
- max_light: 最高光照等级。默认值:无限制。
气候数据
- min_temperature: 最低当前温度。默认值:无限制。
- max_temperature: 最高当前温度。默认值:无限制。
- min_average_temperature: 最低平均温度。默认值:无限制。
- max_average_temperature: 最高平均温度。默认值:无限制。
- min_rainfall: 最低当前降雨量。默认值:无限制。
- max_rainfall: 最高当前降雨量。默认值:无限制。
- min_average_rainfall: 最低平均降雨量。默认值:无限制。
- max_average_rainfall: 最高平均降雨量。默认值:无限制。
- min_rainfall_variance: 容忍的最小降雨方差。默认值:无限制。
- max_rainfall_variance: 容忍的最大降雨方差。默认值:无限制。
地下水数据
- min_groundwater: 所需的最低地下水位。默认值:无限制。
- max_groundwater: 允许的最高地下水位。默认值:无限制。
- min_hydration: 所需的最低土壤湿度。默认值:无限制。
- max_hydration: 允许的最高土壤湿度。默认值:无限制。
森林数据
- forest_types: 将再生限制到特定的森林类型。空列表表示无限制。完整列表请参阅 ForestType。
- forest_sub_types: 将再生限制到特定的森林子类型。空列表表示无限制。完整列表请参阅 ForestSubType。
季节数据
- months: 植物可以重新生长的月份列表。使用小写名称(
"january"、"february" 等)。空列表表示无限制。完整列表请参阅 Month。
摘要
- 至少需要一个包含 leaves(叶子)和 sapling(树苗)的配方。
- 所有其他字段允许你通过环境、气候、地下水、森林类型或季节来限制植物的重新生长。
- 默认设置较为宽松(无限制,无限范围),因此只有在需要限制植物重新生长时才添加字段。
This mod makes the forests in TerraFirmaCraft regenerate or spread over time. Trees only spread during fall, as this is when they typically drop their seed-bearing fruits, as such new trees will be ready for the next spring. Which trees that can spread or regenerate is configurable using a data pack, as well is how fast and how far they can spread their seeds.
Supports ArborFirmaCraft out-of-the-box.
Forest Regrowth Recipes
Regrowth Recipes define how plants, bushes, and trees naturally spread and regenerate in the world. Instead of a static world wherin no trees or vegetation spread, each recipe specifies the conditions under which a sapling (or otherwise specified block) can appear, making forests, vegetation and the world feel more alive, interactive and responsive to and with their surroundings.
The mod adds spreading mechanics to TFC leaves, fruit tree leaves and fruit bushes.
Features
-
Dynamic forest growth
Leaves or bushes can spread into new saplings over time, simulating natural regrowth.
-
Environment-aware spawning
Growth can be restricted by rock types, altitude ranges, and light levels.
-
Climate sensitivity
Recipes can enforce temperature and rainfall thresholds, including average values and variance.
-
Groundwater and hydration checks
Plants only spread in viable soil conditions.
-
Forest type integration
Recipes can be tied to specific forest types and subtypes.
-
Seasonal control
Regrowth can be limited to specific months of the year.
-
Chance and spread distance
Configurable probability and radius determine how often and how far saplings appear.
Minimum Viable Recipe
Here's the smallest valid recipe definition, showing only the required fields:
{
"type": "tfcrf:regrowth",
"leaves": [
"<block ingredient>"
],
"sapling": "<block state>"
}
This ensures the recipe is functional. By default, chance, spread distance, environment, climate, groundwater, forest, and season all allow regrowth without restrictions. You only need to add extra fields when you want to constrain growth to specific conditions.
Example Recipe
Below is a more detailed recipe for oak trees, showing how you can constrain regrowth to specific conditions. This uses already established environmental conditions required for oak trees to generate in TFC:
{
"type": "tfcrf:regrowth",
"leaves": [
"tfc:wood/leaves/oak"
],
"sapling": "tfc:wood/sapling/oak",
"chance": 4572,
"spread_distance": 19,
"rocks": [],
"min_y": 60,
"max_y": 85,
"min_light": 11,
"max_light": 15,
"min_average_temperature": -5.8,
"max_average_temperature": 8.6,
"min_rainfall_variance": -0.3,
"max_rainfall_variance": 0.45,
"min_groundwater": 210,
"max_groundwater": 380,
"forest_types": [],
"forest_sub_types": [],
"months": [
"january",
"february",
"march",
"april",
"may",
"june",
"july",
"august",
"september",
"october",
"november",
"december"
]
}
Possible Recipe Objects
A regrowth recipe can include the following objects. Only leaves and sapling are strictly required; all others are optional and default to permissive values if omitted.
Base Data
- leaves: One or more leaf blocks that can spread into saplings.
- sapling: The block state of the sapling that will be placed when conditions are met.
- chance: Probability factor for regrowth. Larger numbers mean rarer events. Default:
3000.0.
- spread_distance: Maximum horizontal distance a new sapling can appear from the source leaves. Default:
18.0.
Environment Data
- rocks: List of allowed rock types. Use lowercase names (
"andesite", "gabbro", "gneiss", etc.). Empty list means no restriction.
- min_y: Minimum altitude (Y-level). Default: unrestricted.
- max_y: Maximum altitude (Y-level). Default: unrestricted.
- min_light: Minimum light level. Default: unrestricted.
- max_light: Maximum light level. Default: unrestricted.
Climate Data
- min_temperature: Minimum current temperature. Default: unrestricted.
- max_temperature: Maximum current temperature. Default: unrestricted.
- min_average_temperature: Minimum average temperature. Default: unrestricted.
- max_average_temperature: Maximum average temperature. Default: unrestricted.
- min_rainfall: Minimum current rainfall. Default: unrestricted.
- max_rainfall: Maximum current rainfall. Default: unrestricted.
- min_average_rainfall: Minimum average rainfall. Default: unrestricted.
- max_average_rainfall: Maximum average rainfall. Default: unrestricted.
- min_rainfall_variance: Minimum rainfall variance tolerated. Default: unrestricted.
- max_rainfall_variance: Maximum rainfall variance tolerated. Default: unrestricted.
Groundwater Data
- min_groundwater: Minimum groundwater level required. Default: unrestricted.
- max_groundwater: Maximum groundwater level allowed. Default: unrestricted.
- min_hydration: Minimum soil hydration required. Default: unrestricted.
- max_hydration: Maximum soil hydration allowed. Default: unrestricted.
Forest Data
- forest_types: Restrict regrowth to specific forest types. Empty list means no restriction. See ForestType for the full list.
- forest_sub_types: Restrict regrowth to specific forest subtypes. Empty list means no restriction. See ForestSubType for the full list.
Season Data
- months: List of months when regrowth can occur. Use lowercase names (
"january", "february", etc.). Empty list means no restriction. See Month for the full list.
Summary
- At minimum, a recipe needs leaves and sapling.
- All other fields let you constrain regrowth by environment, climate, groundwater, forest type, or season.
- Defaults are permissive (no restrictions, infinite ranges), so you only add fields when you want to limit regrowth.
评论 0
登录后参与评分
还没有评论,来抢沙发吧