FetherConfig
基本信息
| 属性 | 值 |
|---|---|
| 类型 | 客户端/服务端配置(Forge Configuration) |
| 文件路径 | <configDir>/fether.cfg |
| 兼容路径 | harvestthenether.cfg 自动重命名为 fether.cfg(若存在且旧配置文件还在) |
行为
FetherConfig.init(configDir) 加载 Configuration(fileFether, Tags.VERSION),包含 5 个分区的字段:
general:FetherAI 启用/随机性、食物属性、Quartz 物品总开关。crops:下界作物的掉落物、右键采收、成熟粒子效果。fruit trees:下界树出现罕见度、果实右键采收与粒子。gardens:Nether Garden 与 Glow Flower 的生成、扩散与掉落设置。recipes:crop → seed 配方开关、Quartz 装备/工具修理原料。
启动时自动迁移 harvestthenether 命名空间下的旧配置键(enablecroptoseedRecipe 等),以及把若干 boolean 转 int(enablegardenSpread → gardenSpreadRate)。配置变化自动 cfg.save()。
数值
| 分区 | 键 | 默认 | 范围 |
|---|---|---|---|
| general | enableFetherAI |
true | bool |
| general | aiRandomness |
0.1 | [0.0, 1.0] |
| general | foodHungerRestore |
1 | [0, 20] |
| general | foodSaturationModifier |
0.6 | [0.0, 10.0] |
| general | enableQuartzItems |
true | bool |
| crops | cropsDropSeeds |
false | bool |
| crops | rClickHarvestCrops |
true | bool |
| crops | rClickMatureCropsShowHearts |
false | bool |
| fruit trees | treeRarity |
15 | [0, 1000] |
| fruit trees | rClickHarvestFruits |
true | bool |
| fruit trees | rClickMatureFruitsShowHearts |
false | bool |
| gardens | gardenSpreadRate |
100 | [0, MAX_INT] |
| gardens | gardenRarity |
4 | [0, 1000] |
| gardens | gardenDropAmount |
3 | [1, 1024] |
| gardens | gardensDropSeeds |
false | bool |
| gardens | glowFlowerSpreadRate |
100 | [0, MAX_INT] |
| gardens | glowFlowerRarity |
4 | [0, 1000] |
| gardens | glowFlowersDropSeeds |
false | bool |
| recipes | enableCrop2SeedRecipes |
true | bool |
| recipes | isArmorRepairable |
true | bool |
| recipes | areToolsRepairable |
true | bool |
关键警告
- 变更
enableQuartzItems后加载存档会导致quartz_*物品消失,文档明确提示"can cause problems with existing worlds"。 foodHungerRestore=2时 Weevil/Cooked Weevil 都是2 * 1 = 2(代码是2 * FetherConfig.foodHungerRestore),Scrambled Weevil Egg 是3 *= 3。