
流血就是流血。 三个模组添加了流血效果,两个模组添加了眩晕效果,且它们各自只检查自己的状态:对其中一个模组的免疫并不能抵御另一个模组的效果,而且其中两种效果会在同一生物身上叠加。Effectification 将一个模组的效果转换为另一个模组的对应效果,使得每个模组都能识别到相同的状态。
Minecraft 版本支持:
- Fabric: 1.20.1 和 1.20.4 - 26.3
- Forge: 1.20.1
- NeoForge: 1.20.4 - 1.20.6, 1.21.1 - 1.21.5 和 1.21.7 - 26.3
在服务器和每个客户端上安装 Effectification 2.2.0 或更高版本:在 Forge 和 NeoForge 上,拥有不兼容版本玩家将无法加入。Fabric 需要 Fabric API。对于单人游戏,直接安装即可。

- 所有模组共用一种效果。 当一个模组施加源效果时,改为施加目标效果。查找源效果的模组会找到目标效果,因此两个模组的免疫和治疗机制均能生效。
- 映射文件是数据包文件。 随整合包分发,可按世界更改,通过
/reload 应用更改。
- 使用
* 的通配符模式。 *:bleeding* 可捕获所有模组的 Bleeding。exclude 可排除免疫效果。
- 回退机制。 在
targets 中列出多个效果:将使用已安装的第一个效果。
- 等级(Level)。
amplifierMultiplier 用于缩放转换后效果的等级。
- 模式(Mode)。
mode 设置源模组是否仍能看到该效果,还是仅更改名称和图标。
- 每刻动作(Per-tick actions)。
extraApplyEffectTick 也会运行其他效果的每刻动作,以触发其粒子或音效。discardEffectTick 关闭某效果的每刻动作。
- 游戏内编辑器。 输入
/effectification gui(仅限操作员,权限等级 2),并支持按效果搜索。更改立即生效。
- 错误会在日志中报告 包含文件和映射信息:例如 Effect ID 拼写错误、未知字段或模式。
- 现成映射 适用于多个模组添加的效果,详见下文。

安装并游玩即可:现成的映射无需任何设置即可工作。来自 Goety 或 Alex's Caves 的 Stun 会被转换为 Relics 的 Stun,而 Relics 的免疫可以保护玩家免受所有这些效果的影响。
现成映射。 涉及的效果:
- Bleeding
- Stun
- Freeze (Frozen, Frosted)
- Chill
- Immolate
- Confusion
- Knowledge
- Sapped
- Lava Vision
其效果 ID 包含在现成映射中的模组:
- Majrusz's Progressive Difficulty
- Apothic Attributes (
attributeslib, apothic_attributes)
- Valoria
- Relics
- Alex's Caves
- Alex's Mobs
- Mowzie's Mobs
- More RPG Classes (
more_rpg_classes, mrpg_lib)
- Iron's Spells 'n Spellbooks
- Goety
- Nether Depths Upgrade
这些通配符模式也会捕获来自其他模组的同名效果。如果映射中的目标效果均未安装,则该映射无效。
添加映射的方法:
- 在游戏中:输入
/effectification gui(仅限操作员,权限等级 2)。编辑器会将更改保存至世界的数据包 datapacks/effectification_gui 并立即生效。
- 针对每个世界:将文件放入
config/effectification/mappings/,然后运行 /reload。
- 在数据包中:将文件放入
data/<namespace>/effectification/mappings/(数据包需包含 pack.mcmeta),然后运行 /reload。
例如,config/effectification/mappings/stun.json:
{
"mappings": [
{
"source": "*:stun*",
"exclude": ["*:stun*_resistance", "*:stun*_immunity"],
"targets": ["relics:stun", "alexscaves:stunned"]
}
]
}
除抗性(resistances)和免疫(immunities)外的所有 Stun 都会变为 Relics 的 Stun;若未安装 Relics,则变为 Alex's Caves 的 Stunned。内置的 Stun 映射已实现此功能:您可以将此示例作为自定义效果映射的模板。

| 字段 |
省略时的默认值 |
作用 |
source / sources |
- |
源效果:一个 Effect ID,或带有 * 的模式(somemod:* 表示某模组的所有效果;不允许使用 *:*) |
exclude |
none |
源效果应跳过的 Effect ID 或模式 |
target / targets |
- |
目标效果;若有多个,将使用已安装的第一个 |
amplifierMultiplier |
1 |
乘以 I 级以上的等级,四舍五入:设为 2 时,II 级变为 III 级,III 级变为 V 级;I 级保持不变。最高等级为 256。设为 0 时所有等级均视为 I 级 |
mode |
bidirectional |
bidirectional:查找源效果的模组会找到目标效果。unidirectional:它们不会找到,因此源模组停止对此效果做出反应;移除源效果(喝牛奶、使用 /effect clear 或其他模组)仍会移除目标效果。onlyVisualChange:效果本身保持不变,但显示目标效果的名称和图标 |
extraApplyEffectTick |
none |
在此映射的效果激活期间,也会运行其每刻动作的其他效果,用于触发粒子或音效;支持模式匹配 |
discardEffectTick |
none |
关闭其每刻动作的效果。效果本身仍然存在,模组仍能检测到它。无论效果是否通过此映射产生,只要加载了该映射,对所有生物和玩家均有效;支持模式匹配 |
每个刻执行的操作是效果持续期间所执行的行为,例如中毒造成的伤害或再生提供的治疗。
链式转换。 如果 A 变为 B,B 变为 C,则 A 变为 C,且沿链的 amplifierMultiplier(倍率乘数)值会相乘。循环(A 变为 B,B 变为 A)会被忽略,并在日志中发出警告。
当多个映射匹配某个效果时,优先级判定如下:
- 使用精确 Effect ID 作为来源的映射优先于通配模式。
- 在两个精确映射之间,或两个通配模式之间,后读取的那个生效。
- 映射文件优先于同类型的静态映射。
- 具有精确 Effect ID 的静态映射仍优先于映射文件中的通配模式。
读取顺序:
- 内置的
data/effectification/effectification/mappings/defaults.json。
config/effectification/mappings/*.json,按文件名排序(大小写不敏感)。
- 其他数据包文件
data/<namespace>/effectification/mappings/*.json,按文本形式的 namespace/path 排序。
每个文件从上到下读取。仅读取以纯小写 .json 结尾的文件。若存在命名空间和路径完全相同的数据包文件,后者将替换前者,这符合数据包的常规行为。这也适用于内置文件:如果你的数据包包含自己的 data/effectification/effectification/mappings/defaults.json,它将替换原有的预设映射。
静态映射用于处理你已移除的模组的效果:其 Effect ID 将被映射为目标效果,以确保旧世界和命令仍能正常工作。将它们放入服务器端和每个客户端的 config/effectification/static_mappings.json 中(格式相同),然后重启游戏。
日志级别(默认为 NONE、ERRORS、WARNINGS,可选 ALL):配置项为 config/effectification/effectification.json 中的 logLevel。
来自 2.0 版本? 首次启动时,旧的 config/effectification/effectification.toml 会自动转换:
- 静态映射移至
config/effectification/static_mappings.json
- 自定义映射移至
config/effectification/mappings/converted.json(旧的内置映射被排除在外:由预设映射替代它们)
logLevel 移至 config/effectification/effectification.json
- 旧文件保留为
effectification.toml.old
- 如果某项无法写入,旧文件保持不变,日志会说明原因,并在下次启动时重新尝试转换
Fzzy Config 不再需要。
相同理念,适用于属性: Attributification。

在与朋友一起游玩你的服务器时:通过我的链接购买 BisectHosting 服务,首单可享 25% 折扣,我将获得少量佣金。


MIT 许可证:可自由使用、修改、分享并将其整合进整合包,只要保留版权声明即可。详见 LICENSE。
本模组并非 Minecraft 官方产品。未经 Mojang 或 Microsoft 批准,也不与其关联。


Bleeding is bleeding. Three mods add Bleeding, two add Stun, and each checks only its own: an immunity from one does nothing against another, and two of them stack on the same mob. Effectification turns an effect of one mod into the matching effect of another, so every mod sees the same effect.
Minecraft versions:
- Fabric: 1.20.1 and 1.20.4 - 26.3
- Forge: 1.20.1
- NeoForge: 1.20.4 - 1.20.6, 1.21.1 - 1.21.5 and 1.21.7 - 26.3
Install Effectification 2.2.0 or newer on the server and on every client: on Forge and NeoForge, a player with an incompatible version can't join. Fabric needs Fabric API. For single player, just install it.

- One effect for all mods. When a mod applies the source effect, the target effect is applied instead. Mods that look for the source effect find the target, so the immunities and cures of both mods work.
- Mapping files are data pack files. Ship them with a modpack, change them per world, apply changes with
/reload.
- Patterns with
*. *:bleeding* catches the Bleeding of every mod. exclude leaves out the immunities.
- Fallbacks. List several effects in
targets: the first installed one is used.
- Level.
amplifierMultiplier scales the level of the converted effect.
- Mode.
mode sets whether the source mod still sees the effect, or changes only the name and icon.
- Per-tick actions.
extraApplyEffectTick runs another effect's per-tick action as well, for its particles or sounds. discardEffectTick turns an effect's per-tick action off.
- An editor in the game.
/effectification gui, for operators (permission level 2), with a search for effects. Changes apply at once.
- Mistakes are reported in the log with the file and the mapping: a typo in an Effect ID, an unknown field or mode.
- Ready-made mappings for effects that several mods add, see below.

Install it and play: the ready-made mappings work without any setup. A Stun from Goety or Alex's Caves is applied as Relics' Stun, and Relics' immunity protects from all of them.
Ready-made mappings. Effects:
- Bleeding
- Stun
- Freeze (Frozen, Frosted)
- Chill
- Immolate
- Confusion
- Knowledge
- Sapped
- Lava Vision
Mods whose effect IDs are in the ready-made mappings:
- Majrusz's Progressive Difficulty
- Apothic Attributes (
attributeslib, apothic_attributes)
- Valoria
- Relics
- Alex's Caves
- Alex's Mobs
- Mowzie's Mobs
- More RPG Classes (
more_rpg_classes, mrpg_lib)
- Iron's Spells 'n Spellbooks
- Goety
- Nether Depths Upgrade
The patterns also catch effects with these names from other mods. If none of a mapping's targets is installed, the mapping does nothing.
To add a mapping:
- In the game:
/effectification gui (operators, permission level 2). The editor saves into the world's data pack datapacks/effectification_gui and applies the change at once.
- For every world: put a file into
config/effectification/mappings/, then run /reload.
- In a data pack: put a file into
data/<namespace>/effectification/mappings/ (the data pack needs a pack.mcmeta), then run /reload.
For example, config/effectification/mappings/stun.json:
{
"mappings": [
{
"source": "*:stun*",
"exclude": ["*:stun*_resistance", "*:stun*_immunity"],
"targets": ["relics:stun", "alexscaves:stunned"]
}
]
}
Every Stun except the resistances and immunities becomes Relics' Stun, or Alex's Caves' Stunned when Relics is not installed. The built-in Stun mapping already does this: use the example as a template for your own effects.

| Field |
If left out |
What it does |
source / sources |
- |
the source effect: an Effect ID, or a pattern with * (somemod:* is every effect of one mod; *:* is not allowed) |
exclude |
none |
Effect IDs or patterns that the source skips |
target / targets |
- |
the target effect; with several, the first installed one |
amplifierMultiplier |
1 |
multiplies the levels above I, rounded: with 2, level II becomes III and level III becomes V; level I stays I. The highest level is 256. 0 makes every level I |
mode |
bidirectional |
bidirectional: mods that look for the source effect find the target. unidirectional: they don't, so the source mod stops reacting to it; removing the source effect (milk, /effect clear, other mods) still removes the target. onlyVisualChange: the effect stays as it was, and the target's name and icon are shown |
extraApplyEffectTick |
none |
effects whose per-tick action also runs while the effect of this mapping is active, for their particles or sounds; patterns allowed |
discardEffectTick |
none |
effects whose per-tick action is turned off. The effect itself stays, and mods still see it. Works on every mob and player while the mapping is loaded, whether or not the effect came through this mapping; patterns allowed |
A per-tick action is what an effect does while it lasts, such as the damage of Poison or the healing of Regeneration.
Chains. If A becomes B and B becomes C, A becomes C, and the amplifierMultiplier values along the chain are multiplied. A loop (A becomes B, B becomes A) is ignored, with a warning in the log.
Which mapping wins when several match an effect:
- A mapping with an exact Effect ID as the source wins over a pattern.
- Between two exact mappings, or between two patterns, the one read later wins.
- A mapping file wins over a static mapping of the same kind.
- A static mapping with an exact Effect ID still wins over a pattern from a mapping file.
Reading order:
- The built-in
data/effectification/effectification/mappings/defaults.json.
config/effectification/mappings/*.json, by file name (upper and lower case count as the same).
- The other data pack files
data/<namespace>/effectification/mappings/*.json, sorted by the text namespace/path.
Each file is read from top to bottom. Only files ending in .json in lower case are read. A data pack file with the same namespace and path as another one replaces it, as data packs do. This includes the built-in file: a data pack with its own data/effectification/effectification/mappings/defaults.json replaces the ready-made mappings.
Static mappings are for an effect of a mod you removed: its Effect ID becomes the target effect, so old worlds and commands keep working. Put them into config/effectification/static_mappings.json (same format) on the server and on every client, then restart the game.
Log level (NONE, ERRORS, WARNINGS by default, ALL): logLevel in config/effectification/effectification.json.
Coming from 2.0? On the first start, the old config/effectification/effectification.toml is converted:
- static mappings go to
config/effectification/static_mappings.json
- your own mappings go to
config/effectification/mappings/converted.json (the old built-in ones are left out: the ready-made mappings replace them)
logLevel goes to config/effectification/effectification.json
- the old file is kept as
effectification.toml.old
- if something can't be written, the old file stays, the log says why, and the conversion runs again at the next start
Fzzy Config is no longer needed.
Same idea, for attributes: Attributification.

To play on your own server with friends: BisectHosting gives 25% off your first purchase through my link, and I get a small commission.


MIT License: free to use, modify, share and include in modpacks, as long as the copyright notice stays with it. See LICENSE.
Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.

评论 0
登录后参与评分
还没有评论,来抢沙发吧