Apothic Staff Rarities
为 Apotheotic Additions 的后神话稀有度(Heirloom、Artifact、Esoteric)中的法杖添加了 Fallen Gems & Affixes 的法杖词缀。FG&A 的法杖词缀仅通过基础稀有度定义到古代(Ancient)为止的值,且它们均未声明 AA 的层级,因此这些类别在 AA 稀有度下不会生成。本模组通过新增 30 个条目来填补这一空白:
9 个自动施法词缀:
acupuncture
arrow_volley
burning_dash
ice_spikes
shadow_slash
sonic_boom
stomp
sunbeam
volt_strike
14 个法术效果/生物效果词缀:
acidic
bloodletting
bolstering
bursting
elusive
ensnaring
grievous
ivy_laced
revitalizing
satanic
sophisticated
swift
weakening
withering
4 个施法词缀:
bastion
hemospike
radiant
stormlash
3 个独特法杖词缀:
concentration
cooldown_reset
mana_shield
每个 JSON 文件仅添加三个 AA 稀有度桶,因此 FG&A 仍拥有普通至古代的条目,本模组只是在此基础上叠加。
依赖项
- Minecraft 1.20.1
- Forge 47.x
- Apotheosis 7.4.x
- Fallen Gems & Affixes
- Apotheotic Additions
- Iron's Spellbooks(条目加载依赖于
irons_spellbooks 已加载)
所有依赖项在 mods.toml 中均为可选,因此如果缺少某项依赖,模组仍可正常加载,只是需要该依赖的 JSON 配置不会生效。
配置
配置文件位于 config/apothic_staff_rarities-common.toml,首次启动时会根据默认值和包含布局说明的头部自动生成。它采用两级结构,你可以根据实际调整需求选择快速模式或详细模式。
第一级:全稀有度乘数
[scaling] 包含三个乘数,分别对应每个 AA 稀有度,范围限制在 0.01 到 100.0 之间。乘数影响的具体内容取决于数值类型:
- 自动施法和法术词缀:等级范围和冷却时间,四舍五入为整数
- 阶跃函数值(持续时间、
cooldown_reset 和 mana_shield 的概率,以及以 min / steps / step 块形式编写的放大倍数):每级阶跃项,因此依赖等级的部分随乘数缩放,而基础值和阶跃次数保持原样
- 整数放大倍数(纯数字):放大倍数,四舍五入到最近的整数等级,因此接近 1.0 的乘数可能使其保持不变
- concentration 是布尔标志,因此乘数对其无影响
示例:
heirloom_multiplier = 1.0
artifact_multiplier = 1.0
esoteric_multiplier = 1.25
第二级:逐词缀覆盖
[overrides] 为每个稀有度的每个词缀设有子部分。省略字段以保持第一级缩放后的默认值。将字段设置为任意值以硬编码其值,此时乘数不再对该字段生效。旧配置中使用 -1 的设置仍向后兼容。
[overrides.autocast.acupuncture.esoteric] 下的示例:
省略的字段保持第一级缩放状态,因此此处仅固定了冷却时间,等级范围仍应用乘数。
禁用类别
[disable] 通过在加载时清空稀有度值映射表来跳过整个词缀类别在 AA 稀有度下的生成,从而防止该词缀生成 heirloom/artifact/esoteric 稀有度。FG&A 的普通至古代条目不受影响。
[disable] 下的标志:
autocast = true
mob_effect = false
spell = false
concentration = false
cooldown_reset = false
mana_shield = false
解析顺序
在加载时为每个词缀值执行以下操作:
- 读取 JSON 默认值
- 如果
[disable.<category>] 为 true,则跳过该词缀
- 按该稀有度的第一级乘数进行缩放
- 如果存在该字段的第二级覆盖值,则用覆盖值替换缩放后的值
- 应用最终值
无需重启重载
/apothicstaffrarities reload(别名 /asr reload,需 OP 等级 2)会重新读取配置并重新应用覆盖过程。回复为一行文本:如果配置更改,显示应用的词缀数量;如果未更改,显示“配置未更改”。普通的 /reload 命令同样有效,因为覆盖过程会在每次数据包重载结束时运行。
关于显示的注意事项
在高倍率下,生物效果放大倍数可能会超过 Minecraft 显示名称所支持的等级上限,因此效果可能显示为原始键名(如 potion.potency.8)而非罗马数字。这是原版对高药水等级的显示限制,并非模组缺陷,且不会改变实际的药效强度。
许可证
MIT
Apothic Staff Rarities
Adds Fallen Gems & Affixes' staff affixes for the post-mythic rarities from Apotheotic Additions (Heirloom, Artifact, Esoteric). FG&A's staff affixes only define values through the base rarities up to ancient, and none of them declare the AA tiers, so those categories don't roll at AA rarities. This mod adds them with 30 new entries:
9 autocast affixes:
acupuncture
arrow_volley
burning_dash
ice_spikes
shadow_slash
sonic_boom
stomp
sunbeam
volt_strike
14 spell_effect / mob_effect affixes:
acidic
bloodletting
bolstering
bursting
elusive
ensnaring
grievous
ivy_laced
revitalizing
satanic
sophisticated
swift
weakening
withering
4 spell_cast affixes:
bastion
hemospike
radiant
stormlash
3 unique staff affixes:
concentration
cooldown_reset
mana_shield
Every JSON only adds the three AA rarity buckets, so FG&A still owns common through ancient and this just sits on top.
Requirements
- Minecraft 1.20.1
- Forge 47.x
- Apotheosis 7.4.x
- Fallen Gems & Affixes
- Apotheotic Additions
- Iron's Spellbooks (entries gate on
irons_spellbooks being loaded)
All deps are optional in mods.toml, so if something's missing the mod still loads and the JSONs that need it just don't apply.
Configuration
Config lives at config/apothic_staff_rarities-common.toml and gets generated on first launch with defaults and a header that walks through the layout. It's two-tier so you can go quick or detailed depending on how much tuning you actually want to do.
Tier 1: rarity-wide multipliers
[scaling] has three multipliers, one per AA rarity, clamped to the range 0.01 to 100.0. What a multiplier changes depends on the value type:
- autocast and spell affixes: the level range and the cooldown, rounded to whole numbers
- step-function values (durations, the
cooldown_reset and mana_shield chances, and amplifiers written as a min / steps / step block): the per-level step term, so the level-dependent part scales with the multiplier while the base floor and step count stay as written
- integer amplifiers (a bare number): the amplifier, rounded to the nearest whole level, so a multiplier close to 1.0 may leave it unchanged
- concentration is a yes/no flag, so the multiplier leaves it alone
Example:
heirloom_multiplier = 1.0
artifact_multiplier = 1.0
esoteric_multiplier = 1.25
Tier 2: per-affix overrides
[overrides] has a subsection per affix per rarity. Leave a field out to keep the tier 1 scaled default. Set a field to any value to hard-set it, and the multiplier stops applying to that field. Old configs that used -1 still work for backward compatibility.
Example under [overrides.autocast.acupuncture.esoteric]:
Omitted fields stay tier 1 scaled, so here only the cooldown is pinned and the level range still gets the multiplier.
Disabling a category
[disable] skips a whole affix category at AA rarities by emptying out the rarity-values map at load, so the affix can't roll heirloom/artifact/esoteric. FG&A's common-through-ancient entries are left alone.
Flags under [disable]:
autocast = true
mob_effect = false
spell = false
concentration = false
cooldown_reset = false
mana_shield = false
Resolution order
For each affix value at load:
- Read the JSON default
- If
[disable.<category>] is true, skip the affix
- Scale by the tier 1 multiplier for the rarity
- If a tier 2 override for the field is present, replace the scaled value with the override
- Apply the final value
Reloading without restarting
/apothicstaffrarities reload (alias /asr reload, op level 2) re-reads the config and re-applies the override pass. The reply is a single line: the number of affixes applied when the config changed, or config unchanged when it didn't. A regular /reload works too since the override pass runs at the end of every datapack reload anyway.
A note on display
At high multipliers a mob-effect amplifier can exceed the levels Minecraft has display names for, so an effect may show a raw key like potion.potency.8 instead of a roman numeral. This is a vanilla display limit for high potion levels, not a fault in the mod, and it doesn't change the actual effect strength.
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧