配置项总览
基本信息
| 属性 |
值 |
| 配置文件 |
config/natura.cfg(由 evt.getSuggestedConfigurationFile() 决定,Natura.java:90) |
| 配置类 |
mods.natura.common.PHNatura |
| 配置项总数 |
123 |
| 分类数 |
8 |
功能
Natura 的配置项定义在 PHNatura.initProps(common/PHNatura.java:12-193),共 123 处 config.get(...) 调用,划分为 8 个分类。
分类一览
| 分类常量 |
分类名 |
配置项数 |
用途 |
catDisabler |
disabler |
43 |
各内容模块与生成行为的开关 |
catWorldgen |
worldgen |
49 |
生成稀有度、高度、范围与黑名单 |
catMobChanges |
mob changes |
2 |
幼年灼痕蜘蛛数量 |
catGeneral |
general |
1 |
海平面 |
catWoodProducts |
wood products |
10 |
木制建筑方块开关 |
catOverworldProducts |
overworld products |
4 |
主世界产品开关 |
catNetherProducts |
nether products |
13 |
下界产品开关 |
| (无分类) |
Retrogen |
1 |
追溯生成 |
|
合计 |
123 |
|
分类常量定义见 PHNatura.java:14-19;逐分类计数由 grep -c "config\.get(\<分类名\>, 得到。
关键配置项
下界维度覆写
| 配置项 |
默认值 |
说明 |
Override Nether |
!BoP |
未装 BiomesO’ Plenty 时默认 true;启用后注册 NetheriteWorldProvider |
Obelisks let players respawn in the Nether |
true |
允许方尖碑设置下界重生点 |
BoP 由 Loader.isModLoaded("BiomesOPlenty") 决定(PHNatura.java:30-33)。覆写逻辑见 Natura.java:125-128。
小麦转面粉配方
enableWheatRecipe 的默认值取决于是否安装 ChocoCraft(PHNatura.java:92-97):
try {
Class.forName("chococraft.common.ModChocoCraft");
enableWheatRecipe = config.get(catDisabler, "Enable wheat to flour recipe", false).getBoolean(false);
} catch (Exception e) {
enableWheatRecipe = config.get(catDisabler, "Enable wheat to flour recipe", true).getBoolean(true);
}
装了 ChocoCraft 时默认 false(避免与其配方冲突),未装时默认 true。
木制建筑方块(wood products)
10 个开关全部默认 true(PHNatura.java:156-166):
| 配置项 |
控制的注册名 |
Enable Wooden Bookshevles |
Natura:Natura.bookshelf(原文拼写为 Bookshevles) |
Enable Wooden Buttons |
13 种按钮 |
Enable Wooden Doors |
7 种门 |
Enable Wooden Fence Gates |
13 种栅栏门 |
Enable Wooden Fences |
Natura:Natura.fence |
Enable Wooden Pressure Plates |
13 种压力板 |
Enable Wooden Slabs |
plankSlab1 / plankSlab2 |
Enable Wooden Stairs |
13 种楼梯 |
Enable Wooden Trapdoors |
13 种活板门 |
Enable Wooden Workbenches |
Natura:Natura.workbench |
主世界产品(overworld products)
4 个开关全部默认 true(PHNatura.java:168-171):
| 配置项 |
默认值 |
Enable Berries and Berry Bushes |
true |
Enable Bonemeal Bags |
true |
Enable Cactus Juice |
true |
Enable Seed Bags |
true |
下界产品(nether products)
13 个开关全部默认 true(PHNatura.java:173-187):
| 配置项 |
控制的注册名 |
Enable Blaze Hoppers |
Natura:NetherHopper |
Enable Blaze Rails |
4 个 Brail* 方块 |
Enable Flint And Blaze |
Natura:natura.flintandblaze |
Enable Nether Berries and Berry Bushes |
Natura:NetherBerryBush |
Enable Netherack Buttons |
Natura:NetherButton |
Enable Netherack Furnaces |
Natura:NetherFurnace |
Enable Nether Glass |
Natura:NetherGlass |
Enable Nether Wood Tools |
24 件下界木制工具 |
Enable Netherack Levers |
Natura:NetherLever |
Enable Netherack Pressure Plates |
Natura:NetherPressurePlate |
Enable Nether Wart Bags |
Natura:wartBag |
Enable Obelisks |
Natura:Obelisk |
Enable Quartz Tools |
5 件石英工具 |
生物(mob changes)
| 配置项 |
默认值 |
钳制 |
Minimum Baby Heatscar Spiders on Spider Death |
2 |
负值钳为 0 |
Maximum Baby Heatscar Spiders on Spider Death |
4 |
负值钳为 0 |
通用(general)
| 配置项 |
默认值 |
用途 |
Sea level |
64 |
浆果丛生成高度基准(PHNatura.seaLevel) |
追溯生成
| 配置项 |
默认值 |
Retroactive Generation |
false |
数值
| 数值名 |
值 |
来源 |
| 配置项总数 |
123 |
grep -c "config\.get(" PHNatura.java |
| 分类数 |
8 |
PHNatura.java:14-19 |
| 海平面默认值 |
64 |
PHNatura.java:189 |
跨模组兼容行为
| 模组 |
影响 |
来源 |
| BiomesO’ Plenty |
改变 Override Nether 默认值为 false |
PHNatura.java:30-33,39 |
| ChocoCraft |
改变 Enable wheat to flour recipe 默认值为 false |
PHNatura.java:92-97 |
| ExtraTiC |
改变 plankWood / stickWood 物品字典注册的 meta 范围 |
NContent.java:1783-1799 |
| TConstruct |
木制工具与镰刀的部分集成 |
NContent.java:1999+ |
相关条目