Config Overview

基本信息

属性 值
配置类 witchinggadgets.common.WGConfig
加载时机 FMLPreInitializationEvent,WitchingGadgets.java:104
配置文件 event.getSuggestedConfigurationFile()(WGConfig.java:34)
顶层 config.get* 调用数 22
静态配置字段数 28
顶层配置分类数 5(Other Options / Modules / Ore/Crucible / Search / Other)

功能

本模组共有 5 个顶层配置分类(WGConfig.java 中出现的分类字符串去重后为 Other Options、Modules、Ore/Crucible、Search、Other),另有 2 个运行时动态读取的 ID 分类(Potions、Enchantments)。

Other Options(10 项)

字段 配置键名 默认值
allowdropsfrommachinery Drop Items from Generators false
smelteryResultForClusters Smeltery Result for Clusters 144 * 3 = 432
blocksforWGBF Blocks for the WG Blast Furnace {"Railcraft:brick.infernal", "Railcraft:stair"}
terraformer Enable Terraformer true
radialSpeed Selection Radial Speed 0.15
cloakAnimationMode Cloak Animation Mode 2
coremod_allowBootsRepair Dis-/enable repairing the Boots of the Traveller with leather true
coremod_allowEnchantModifications Dis-/enable the modification of looting and fortune modifications with the Ring of the Covetous Coin true
coremod_allowPotionApplicationMod Allow modifications to newly applied PotionEffects true

allowdropsfrommachinery 的默认 false 及其注释说明该选项适用于多人服务器:「should be disabled on MP servers with chunkloading」(WGConfig.java:42)。

cloakAnimationMode 的三个取值含义(WGConfig.java:97):0 = 无动画,1 = 移动腿部时旋转斗篷,2 = 移动腿部时拉伸斗篷。

radialSpeed 的取值范围被钳制在 [0.15, 1],注释明确「15% is the minimum」(WGConfig.java:86-92)。

Modules(12 项)

见 Module Config。

Ore/Crucible(3 项)

字段 配置键名 默认值
allowClusters Enable clusters true
allowTransmutations Enable transmutations true
triplingClusterList Not Trippling Cluster List 36 个矿种(DEFAULTCLUSTERS)

allowClusters 的注释说明它在使用 AOBD 时应关闭(WGConfig.java:53);allowTransmutations 的注释说明关闭它可「fix the infinite loop glitch」(WGConfig.java:59)。

Search(2 项)

字段 配置键名 默认值
limitBookSearchToCategory Limit Thaumonomicon Search to currently active category false
enableSearch Enables the search function in the Thaumonomicon true

Other(2 项,世界生成基座)

字段 配置键名 默认值
coremod_worldgenValidBase_HilltopStones Valid generation bases: HilltopStones stone / sand / packed_ice / grass / gravel / dirt
coremod_worldgenValidBase_EldritchRing Valid generation bases: EldritchRing 同上

这两项修改的是 Thaumcraft 的世界生成(丘顶石头与eldritch 方尖碑的可生成基座),通过 Mixin 实现:MixinWorldGenHilltopStones.java 与 MixinWorldGenEldritchRing.java,二者都 @ModifyReturnValue 拦截 GetValidSpawnBlocks。每个 modname:blockname 字符串会经 split(":", 2) 解析并 GameRegistry.findBlock 查找,找不到的方块被静默跳过(WGConfig.java:188-195)。

运行时动态 ID(Potions / Enchantments)

药水与附魔的 ID 不是顶层配置,而是在 init 阶段通过 getPotionID / getEnchantmentID 逐个读取并立即 config.save()(WGConfig.java:216-228)。默认 ID 由 Utilities.getNextPotionId(base) / getNextEnchantmentId(base) 顺延分配,基准值见 WGContent.java:198(药水从 32 起)与 WGContent.java:213(附魔从 64 起)。

数值

数值名 值
顶层配置分类数 5
运行时动态 ID 分类数 2(Potions / Enchantments)
顶层 config.get* 调用数 22
静态配置字段数 28(WGConfig.java:15-23)
默认结晶簇冶炼产出 432 mB(= 3 锭)
DEFAULTCLUSTERS 矿种数 35

相关条目