BattleCorrection (BC) 面向那些希望自行设定战斗数值的 RPG 地图建造者、整合包制作者和服务器管理员。它添加了 15 种适用于玩家和生物的属性(如暴击率、生命偷取和闪避),以及用于 PVP、生物生命值、无敌帧和环境伤害的全局倍率,并内置了游戏内物品编辑器,可修改物品名称、描述、附魔、属性和原始 NBT。
1.21.1 (NeoForge, Fabric) · 1.20.1 (Forge, Fabric) · 1.12.2 (Forge) · 需在客户端和服务端同时安装 · Fabric 版本需要 Fabric API
添加的内容
- 15 种同时适用于玩家和生物的属性:带有溢出计算的暴击、两种类型的生命偷取、闪避几率、固定减伤、魔法伤害、箭矢与投射物伤害、弓速和使用速度、跳跃高度。
- PVP、各伤害类型下玩家造成的伤害与受到的伤害、环境伤害、无敌帧、攻击冷却时间、生物生命值和饥饿度的全局设置。
任何单个物品都可以成为饰品(在 Forge 和 NeoForge 上使用 Curios,Fabric 上使用 Trinkets,1.12.2 上使用 Baubles),其属性仅在佩戴时生效。
- 供操作员使用的物品编辑器:支持彩色名称和渐变色、描述、附魔、属性、NBT 树、SNBT 文本编辑器和模板。它还支持编辑实体和方块实体的 NBT。
- 伤害追踪(仅限 1.20.1 Forge):按游戏应用的顺序显示每次击打的每一步骤,并标明导致每次变化的模组。
物品编辑器
处于创造模式的操作员(权限等级 2)按下 I 或执行 /battlecorrection edit 即可打开编辑器。编辑器默认针对手中持有的物品、任意已打开的库存或箱子中鼠标悬停的物品,或者在手部为空时针对你注视的实体或方块实体。按下 O 直接打开 SNBT 页面,P 打开 NBT 树。服务器会在每次保存时再次检查权限、创造模式、目标对象和 NBT 大小,而 itemEditorEnabled = false 会完全关闭编辑器。
编辑器由模组本身绘制:左侧为页面标签,中间为当前页面,右侧为实时工具提示预览,底部排列着复制命令、导入、NBT 大小、取消和保存按钮。截图来自 1.20.1 版本,1.21.1 界面相同;1.21.1 和 1.12.2 的差异列在本节末尾。
名称和描述
输入 & 颜色代码和 &#RRGGBB 十六进制颜色,或点击色板和格式按钮在光标处插入。清除功能会从选区中移除颜色和格式代码,粘贴的 § 符号会自动转换为 &。插入功能写入一种颜色;渐变功能在选中文本上逐字混合两种颜色,若未选中则对整行应用。

名称页面:一个渐变色名称,右侧预览了最终的悬浮提示效果。
描述页面每行对应一行文字,提供上移/下移、删除和添加功能。Enter 在光标处分隔一行,Backspace 在行首时将当前行与上一行合并,多行粘贴将填充多个行。Vanilla style(原版风格)切换于纯白色文本和原版的紫色斜体之间。仅重新构建你修改过的行:包含文本框无法显示内容(点击事件、悬浮文本、自定义字体)的行会被标记,只要你不触碰它们,它们就会保持完整。

描述页面:每行对应一行文字,每行都支持移动、删除和实时预览。
调色板按钮打开一个颜色选择器,包含饱和度/亮度方形区域、色相条、RGB 滑块、十六进制输入框以及你最近使用的 16 种颜色。渐变支持 2 到 8 个颜色停止点,提供彩虹、火焰和海洋等十种预设,并显示整行的预览效果。

颜色调色板:一个五色阶渐变及其整行预览。
附魔和属性
物品的附魔位于左侧,每个附魔旁边标注了其原版最大等级:左键点击更改等级,右键点击移除附魔。在右侧,可以搜索游戏中的所有附魔(包括其他模组的附魔),点击其中一个即可添加。诅咒以红色显示,悬停可查看附魔的具体效果。等级最高可达 255(1.12.2 为 32767);即使超过原版最大等级且原版不允许施加在该物品上的附魔,依然可以生效。

附魔页面:左侧为物品的附魔,右侧为所有附魔列表。
属性的操作方式相同:所有已注册的属性(原版或来自任何模组)都在一个可搜索的列表中,悬停可查看描述。设置数值、操作方式和槽位;输入 20% 可切换为百分比模式。选择饰品槽位(Curios,或在 Fabric 上使用 Trinkets)作为槽位时,也允许该物品在此处佩戴。

属性页面:一把剑上的暴击几率、暴击伤害、生命偷取和魔法伤害。
标签和槽位
标签页面可设置不毁性、附魔光泽、隐藏标志、耐久度、铁砧修复成本、数量(1 到 127,1.21.1 为 1 到 99)以及在 1.20.1 和 1.21.1 上的自定义模型数据。饰品页面详见下方的饰品标记部分。
My Slots(1.20.1 和 1.21.1)用于测试配件并修改您自己的配件栏位。它会列出您拥有的所有栏位类型及其数量:更改数量(设为 0 即移除该类型),或输入 ID 以添加一个栏位,甚至是没有任何模组注册的栏位(此时它没有图标)。Curios 仅向已经至少拥有一种栏位类型的玩家提供栏位,因此如果当前没有任何栏位,此页面无法进行任何更改。对于测试用途,devCurioSlots = true 会给每个玩家分配 Curios 内置的十种栏位各一个;正常游玩时请保持关闭。在 Fabric 版本中,此页面只能更改玩家已拥有的栏位类型的数量;详见下方的 Fabric 版本说明。

My Slots:您自己的 Curios 栏位及其数量。
NBT 树与 SNBT
该树状图会显示带有其类型的每个标签。搜索键和值(Ctrl+F),跳转到如 tag.display.Lore[0] 这样的路径,复制节点的路径,就地编辑键和值,并添加、删除、复制、粘贴、重复或移动节点。

NBT 树:带输入框的节点、可跳转的路径框以及底部的节点按钮。
SNBT 页面以文本形式编辑整个物品,支持行号、高亮和实时错误标记;无法解析的文本不会被应用。它具备查找功能(Ctrl+F)、跳转到指定行(Ctrl+G)、缩进、重复行和移动行、格式化、压缩以及 & / § 转换功能。

SNBT 页面:Ctrl+Enter 将文本应用到物品上。
模板、导入与更改物品
模板可将物品的完整 NBT 数据和数量以名称的形式保存在您的本地计算机上。您可以应用整个模板,或者仅勾选您想要的部分(名称、描述、附魔、属性、Curio 标记等)并保留其余部分,例如给多把武器赋予相同的附魔和属性。

模板页面:仅应用保存的模板中的附魔和属性。
“导入”功能可从剪贴板读取 /give 命令、带有 NBT 的物品 ID 或物品 SNBT,并替换当前物品。“复制命令”功能将物品导出为 /give 命令;由于聊天窗口无法发送超过 256 个字符的命令,此类命令需从命令方块或函数中运行。F4 或点击标题栏中的物品图标可以更改物品类型,同时保留其 NBT 数据和数量。可按名称或 ID 搜索,或输入 @ 后跟模组 ID(如 @battlecorrection)来列出特定模组的物品。

更改物品(F4):@battlecorrection 仅列出该模组的物品。
实体与区块实体
在手部为空的情况下,按 I 可编辑准星下的实体(排除玩家)或带有区块实体的区块,例如箱子、熔炉或刷怪笼。实体和区块实体编辑器同样拥有 NBT 树和 SNBT 页面,其操作方式与物品编辑器相同。

实体 NBT 编辑器:搜索村民的 NBT 以查看其职业。
撤销与保存
Ctrl+Z / Ctrl+Y 用于撤销和重做,在一秒内连续输入的操作计为一步。Ctrl+Tab 切换到下一个页面,Ctrl+1 到 9 可直接跳转到对应页面。若有关闭未保存更改的提示,系统会列出具体更改内容并先询问确认。

关闭未保存的更改会在丢弃任何数据之前列出这些更改。
按 Ctrl+S 或点击“保存”可将物品发送至服务器。单个物品的 NBT 大小受 itemEditorMaxNbtKb 限制(1.20.1 和 1.21.1 默认为 1 MB,1.12.2 默认为 256 KB),超出限制的物品不会被保存。当物品大小超过约 2 MB 时,原版客户端将无法读取该物品,持有该物品的玩家会被断开连接。F1 列出所有快捷键。

键盘快捷键(F1)。
关于 1.21.1
Minecraft 1.21.1 将物品数据存储为组件(components)而非 NBT 标签,这导致编辑器中的几项功能有所变化:
- NBT 树、SNBT 页面、导入、复制命令和模板均使用 1.21.1 格式:根结构为
{id, count, components},命令示例如 diamond_sword[custom_name='"Name"']。为 1.20.1 编写的命令、SNBT 和模板在粘贴或加载时会自动转换。
- 堆叠上限增至 99,描述行数上限增至 256 行。
- 在 NBT 树中,
components 下的所有内容必须是有效的组件,自定义数据需放入 minecraft:custom_data。在编辑有效之前,数据会保留在树中,标记为尚未应用,且无法切换页面或保存。
- 隐藏“不可破坏”、“可破坏方块”、“可放置于”、染料颜色或盔甲纹饰需要物品本身包含相应组件,否则相关开关将呈灰色不可用。
- 属性槽列表新增了双手、护甲和身体槽位。
- 保存时,服务器会根据游戏自身的规则检查整个物品,并报告哪些内容是无效的。
关于 1.12.2
编辑器的功能基本相同,区别仅在于游戏版本所允许的内容。1.12.2 不支持十六进制颜色,因此调色板仅提供 16 种原版颜色(没有色块或 RGB 滑块),渐变会吸附到最接近的颜色,并且会记住最近使用的 8 种颜色。属性列表包含原版、Forge 和本模组的属性,以及玩家拥有的任何自定义属性,其他名称也可以手动输入。Tags 页面没有 CustomModelData,Curios 页面对应的是 Baubles 页面,且没有 My Slots 页面。
属性
所有 15 种属性都存在于每个生物实体上。你可以使用编辑器、/give 命令、数据包或任何能写入属性修饰符的工具将它们添加到装备上;在 1.20.1 和 1.21.1 中,/attribute 命令同样适用于它们。每个属性在配置文件中还有一个全局值,该值适用于所有实体,包括怪物。
以下 ID 适用于 1.20.1 和 1.21.1,格式为 battlecorrection:<id>。在 1.12.2 中,相同的名称以驼峰命名法写在点号之后:battlecorrection.magicDamage、battlecorrection.vanillaCriticalHitDamage 等。示例中使用的是操作 0(加法,在 1.21.1 中称为 add_value),这适用于所有 15 种属性。
| 属性 |
ID |
效果(操作 0) |
| 魔法伤害 |
magic_damage |
对有攻击者的魔法命中造成额外伤害 |
| 箭矢伤害 |
arrow_damage |
对箭矢命中造成额外伤害(在 1.20.1 和 1.21.1 中三叉戟也算作箭矢) |
| 投射物伤害 |
projectile_damage |
对其他投射物(如火球和法术投射物)造成额外伤害 |
| 伤害免疫 |
immune_damage |
完全忽略一次命中的几率:+0.25 = 25% |
| 无视伤害 |
ignore_damage |
从每次命中中减去固定数值;等于或低于该数值的命中将被取消 |
| 减少摔落伤害 |
reduced_fall_damage |
同上,但仅针对摔落伤害 |
| 治疗恢复 |
restore_heal |
治疗倍率:+0.5 = 150% 治疗效果 |
| 吸血 |
bloodthirsty |
治疗近战造成伤害的一部分(玩家需要蓄力满):+0.1 = 10% |
| 全能吸血 |
almighty_bloodthirsty |
对所有类型的伤害生效的吸血效果 |
| 弓速 |
bow_speed |
拉弓速度(在 1.20.1 和 1.21.1 中弩也适用):+1.0 = 速度翻倍 |
| 使用速度 |
preparation_speed |
食物、药水和其他手持物品的使用速度:+1.0 = 速度翻倍 |
| 跳跃提升 |
jump_lift |
额外跳跃高度:1.0 大约为一个方块的高度 |
| 原版暴击伤害 |
vanilla_critical_hit_damage |
叠加在原版的跳跃攻击暴击上:+0.5 将 150% 变为 200% |
| 暴击几率 |
custom_critical_chance |
本模组在近战和投射物命中时的暴击几率:0.3 = 30% |
| 暴击伤害 |
custom_critical_damage |
叠加到暴击倍率上,默认倍率为 2.0:+1.0 = 3 倍伤害 |
超过 100% 的暴击几率不会浪费:超出部分会加到倍率上。使用默认设置时,1.5 的几率会使每次命中都成为暴击,造成 2.5 倍伤害。近战命中和投射物各掷骰一次,而穿透箭矢会为所有目标保留一次掷骰结果。
操作与 /give 示例
起始值为 0 的属性(三种伤害加成、无视伤害、减少摔落伤害、跳跃提升、暴击几率和暴击伤害)在 1.20.1 和 1.21.1 中仅响应操作 0。起始值为 1.0 的属性计算高于 1.0 的部分,因此单独使用 0.25 的值时,操作 0 和操作 1 提供的加成是相同的。在 1.12.2 中,魔法伤害、箭矢伤害和投射物伤害的操作 1 和 2 会对命中进行缩放(0.5 = +50%)。
在 1.20.1 中带有 +5 箭矢伤害的弓(编辑器的复制命令按钮会为你生成如下命令):
/give @p bow{AttributeModifiers:[{AttributeName:"battlecorrection:arrow_damage",Name:"bonus",Amount:5.0d,Operation:0,UUID:[I;1,2,3,4],Slot:"mainhand"}]}

在 1.21.1 中:
/give @p bow[attribute_modifiers={modifiers:[{type:"battlecorrection:arrow_damage",id:"battlecorrection:bonus",amount:5.0,operation:"add_value",slot:"mainhand"}]}]
在 1.12.2 中:
/give @p minecraft:bow 1 0 {AttributeModifiers:[{AttributeName:"battlecorrection.arrowDamage",Name:"bonus",Amount:5.0d,Operation:0,UUIDMost:1L,UUIDLeast:1L,Slot:"mainhand"}]}
战斗调整
全局设置通过加载器的伤害和治疗事件应用(Fabric 版本直接挂钩这些相同的机制),因此其他模组的武器和伤害也被涵盖在内。使用默认设置时,原版战斗保持不变。
- PVP 和自伤倍率,可分别设置;设为 0 即关闭该项。
- 玩家造成和受到的伤害,按类型分类:近战、箭矢、投射物和魔法。魔法倍率叠加在其他三种之上,因此玩家的火球术造成的伤害为投射物倍率乘以魔法倍率。
- 玩家受到的环境伤害(无生命攻击者的伤害):一个通用倍率加上坠落、火焰、溺水、冰冻和爆炸的倍率,在护甲之后应用;设为 0 使玩家免疫。可选的地面机制使每次环境伤害至少造成最大生命值的一定比例或固定数值。虚空伤害和
/kill 命令不受影响。1.12.2 版本没有冰冻类别。
- 受击后的无敌时间,针对玩家和其他实体:0 保持原版设定,-0.5 减半,1.0 翻倍。
- 攻击冷却开启或关闭(关闭后提供 1.8 风格的战斗体验),以及连击修正,未蓄力挥击的伤害会根据攻击蓄力程度缩放,最低不低于 50%。
- 每个非玩家生物的最大生命值:1.0 使其翻倍。
- 饥饿值:来自饱和度和高饥饿值的额外再生效果(固定值或最大生命值的一定比例),以及玩家每缺失一点饥饿值所减少的伤害输出,并设有可选上限(0 表示无上限)。
- 其他模组的法术计入魔法伤害。在 1.20.1 和 1.21.1 版本中,Iron's Spells 'n Spellbooks、Ars Nouveau、Goety、Sweet Magic 和 Geomancy Plus 可通过模组命名空间自动识别,同时支持
forge:is_magic 伤害类型标签(1.21.1 版本中为 neoforge:is_magic 和 c:is_magic)、白名单和黑名单。在 1.12.2 版本中,需列出伤害类型前缀。召唤物和宠物进行的近战攻击从不计入魔法伤害。
- 吸血效果是否受治疗加成提升(默认开启)。

1.20.1 版本的游戏内配置界面(Mods → BattleCorrection → Config)。
饰品标记
安装 Curios(1.20.1 Forge 和 1.21.1 NeoForge)、Trinkets(Fabric 版本)或 Baubles(1.12.2)后,管理员可以标记单个物品,使其适配所选的饰品栏位:例如将剑作为护身符佩戴,或将头盔作为戒指佩戴。标记存储在物品的数据中(1.21.1 版本中为自定义数据),因此复制品和交易都会保留该标记。
- 被标记的物品仅适用于饰品栏位。其自身属性(护甲、攻击伤害、
AttributeModifiers 或 attribute_modifiers、其他模组的加成)仅在饰品栏位生效,且被标记的护甲不能再穿戴在护甲栏位。
- 可附加仅在装备时生效的额外属性,可选择性地限制为特定栏位类型。
- 右键点击可将标记物品装备到空闲栏位;在 1.20.1 版本中,Shift+右键点击也可在 Curios 界面中使用。
- 工具提示按栏位分组列出属性;在 Fabric 版本中,使用 Trinkets 自己的格式。
- 对于未标记的饰品,通过配置选项决定哪些原版格式的属性在装备时生效:
ALL(默认)、MOD_ONLY 或 OFF。

1.20.1 Forge 版本的饰品页面:此剑现在可装备在背部和手部栏位,其属性在预览中按栏位列出。
伤害追踪(仅限 1.20.1 Forge)
/battlecorrection damage 显示每次伤害的计算过程。追踪开启时,屏幕侧边面板会列出最近的几次伤害及其初始和最终数值。执行 /battlecorrection damage open 或按下绑定“打开伤害追踪”的按键,可查看完整分解详情。
分解详情按游戏应用的顺序列出每一步骤:攻击伤害、蓄力、附魔、本模组的属性和倍率、护甲、状态效果、保护效果以及其他模组所做的修改,每项均标注来源模组。悬停在某一步骤上可查看原版公式或背后的修饰因子。链式伤害(如荆棘反伤或引发后续伤害的攻击)以嵌套层级列在发起攻击之下。
/battlecorrection damage 开启或关闭追踪,on [minutes] 和 off 可直接设置。追踪会在 damageTraceMaxMinutes(默认为 10 分钟)后自动关闭。
/battlecorrection damage watch <player> [minutes] 追踪另一名玩家造成的伤害。
- 所有玩家默认均可使用这些命令;若
damageTraceOpOnly = true,则仅限管理员使用。
- 模组名称优先取自
damageTraceModNames(格式为 modid=Name 的条目),其次取自 jar 文件名开头的括号内名称,最后取自模组声明的名称。
- 面板的位置、行数以及是否仅保留最近一次攻击,均在
config/battlecorrection-client.toml 中设置。
管理法杖与测试剑
十种供地图制作者和测试使用的法杖。它们没有合成配方,仅能通过 Battle Correction 创造模式标签页或 /give 命令获取,但任何手持者均可使用,生存模式同样适用。区域类法杖的作用范围为 64 格,每种法杖均有 1 秒冷却时间。
所有法杖与剑
| 物品 |
用法 |
| 敌对法杖 |
点击两个生物:它们互相攻击 |
| 叛乱法杖 |
点击一个生物:64 格内所有生物攻击它 |
| 暴乱法杖 |
点击一个生物:它随机攻击附近生物,持续 10 分钟 |
| 混战法杖 |
在空中使用:64 格内所有生物互相战斗,持续 10 分钟 |
| 清除法杖 |
在空中使用:不同物种的生物互相攻击,持续 10 分钟 |
| 治疗法杖 |
点击任何活体实体:恢复满血 |
| 范围治疗法杖 |
目标 64 格内所有活体实体(包括玩家)恢复满血 |
| 献祭法杖 |
杀死被点击的实体,包括玩家 |
| 范围献祭法杖 |
杀死目标 64 格内所有非玩家实体 |
| 净化法杖 |
移除被点击实体上的所有状态效果 |
| 基础 / 进阶 / 大师之剑 |
攻击力分别为 10 / 100 / 1,000,耐久度分别为 1,000 / 10,000 / 100,000 |
命令与配置
命令、键位与配置文件
命令与按键
| 命令或按键 |
作用 |
/battlecorrection edit |
在手持物品上打开编辑器;添加 snbt 或 nbt 可打开对应页面 |
/battlecorrection curio add <槽位> |
让手持物品进入 Curios 的某个槽位类型(any = 所有槽位);remove <槽位>、clear 和 list 用于管理标记 |
| /battlecorrection curio attr add <attribute> <amount> | 添加一个仅在佩戴时生效的属性,后可接操作符(add、multiply_base 或 multiply_total)及槽位;attr remove <attribute> [slot] 和 attr clear 用于移除这些属性 |
| /battlecorrection damage | 仅适用于 1.20.1 Forge:开启或关闭伤害追踪功能;on、off、open 和 watch 的说明详见“伤害追踪”部分 |
| /battlecorrection bauble ... | 1.12.2:适用于饰品栏位(Baubles slots)的相同子命令(amulet、ring、belt、head、body、charm、any);curio 作为别名使用 |
| I / O / P | 打开编辑器 / SNBT 页面 / NBT 树;当容器打开时,它们作用于鼠标所在的槽位 |
| K | 仅限 1.12.2:打开模组列表 |
除 damage 指令外,其他所有指令都需要权限等级 2;edit 还需要创造模式。按键可在选项 → 控制 → 按键绑定 → Battle Correction(1.12.2 中为“选项 → 控制”)中更改。在 1.20.1 和 1.21.1 中,P 同时也是原版“社交界面”的默认按键,而在服务器上该界面会优先打开,因此请重新绑定其中之一的按键。
配置
在 1.20.1 和 1.21.1 中有两个配置文件,此外 1.20.1 Forge 版本还有一个用于伤害追踪面板的 config/battlecorrection-client.toml。config/battlecorrection-battle.toml 包含上述战斗调整设置,而 config/battlecorrection-attribute.toml 包含全局属性值、生命偷取选项、饰品标记以及物品编辑器。大多数选项也可在游戏内界面中进行修改(模组 → BattleCorrection → 配置;在 Fabric 上可通过 Mod Menu 打开);curioNbtAttributes、itemEditorEnabled 和 itemEditorMaxNbtKb 仅存在于配置文件中。“弓拉速”和“物品使用速度”会在客户端和服务端同时读取,因此请确保客户端和服务端文件中的这两个数值保持一致。
在 1.12.2 中,所有内容均位于 config/battlecorrection.cfg,包含战斗配置、属性配置、Bauble 标记和物品编辑器类别,均可在游戏中编辑(模组 → Battle Correction → 配置;K 可打开模组列表)。
在 1.20.1、1.21.1 中,编辑器对单个物品、实体或方块实体的 NBT 大小限制默认为 1024 KB;在 1.12.2 中默认为 256 KB。该限制可通过 itemEditorMaxNbtKb 进行修改。
Fabric 版本
1.20.1 和 1.21.1 均提供 Fabric 版本。属性、战斗调整、饰品标记、物品编辑器以及法杖的功能与同 Minecraft 版本的 Forge 或 NeoForge 版本相同。配置文件具有相同的名称和选项(1.20.1 的伤害追踪选项除外),因此可以在两者之间互相复制。
- 必需:Fabric API。
- 内置:Forge Config API Port 和 Cloth Config API,无需单独下载。
- 可选:Mod Menu 用于在游戏内打开配置界面,Trinkets 用于饰品标记。
与 Forge 和 NeoForge 版本的区别:
- 没有伤害追踪功能。
- 饰品标记使用 Trinkets 而非 Curios。槽位 ID 格式为
group/slot,例如 hand/ring,在命令中必须加引号:/battlecorrection curio add "hand/ring"。不同加载器的槽位 ID 不同,因此在 Forge 或 NeoForge 上创建的标记在 Fabric 上无效,反之亦然。
- Trinkets 不会自动为玩家分配任何槽位。槽位来自其他模组或数据包(示例如下),而“我的槽位”页面只能更改玩家已拥有的槽位类型数量。Trinkets 没有装饰性槽位。
- 在“我的槽位”页面上减少数量会将多余物品返还至背包;当背包已满时,则将其掉落至玩家脚下。
- 带有标记的物品工具提示使用 Trinkets 自身的格式。
- 配置界面通过 Mod Menu 打开。
- 安装了该模组的客户端可以加入未安装该模组的服务器,且在该会话中模组保持非活动状态。在 Forge 和 NeoForge 上,此类客户端无法加入。
若要为每位玩家提供一个戒指槽位和一个项链槽位,请将以下内容保存为数据包的 data/trinkets/entities/players.json 并运行 /reload:
{
"entities": ["player"],
"slots": ["hand/ring", "chest/necklace"]
}
Trinkets 定义的槽位类型:head/face, head/hat, chest/necklace, chest/back, chest/cape, legs/belt, feet/aglet, feet/shoes, hand/glove, hand/ring, offhand/glove, offhand/ring。
1.20.1 Fabric 已知限制:为了附加额外属性,该模组会包装 TrinketsApi.getTrinket 返回的对象。如果某模组使用 instanceof 检查该对象或与 TrinketsApi.getDefaultTrinket() 进行比较,将无法识别它。Trinkets 本身并不执行此操作;如遇受影响的模组,请报告。
需求
| Minecraft |
加载器 |
可选 |
| 1.21.1 |
NeoForge 21.1.265 或更高版本,Java 21 |
Curios API 9.5.1 或更高版本 |
| 1.21.1 |
Fabric Loader 0.16.14 或更高版本及 Fabric API 0.116.18 或更高版本,Java 21 |
Trinkets 3.10.0 或更高版本,Mod Menu |
| 1.20.1 |
Forge 47.x,Java 17 |
Curios API 5.14.1 或更高版本 |
| 1.20.1 |
Fabric Loader 0.16.14 或更高版本及 Fabric API 0.92.6 或更高版本,Java 17 |
Trinkets 3.7.2 或更高版本,Mod Menu |
| 1.12.2 |
Forge 14.23.5.2855 或更高版本,Java 8 |
Baubles |
客户端和服务器需安装相同版本。1.21.1 和 1.20.1 的 jar 文件已内置 Cloth Config API(Jar-in-Jar)以支持配置界面,且 Fabric 版本的 jar 还包含 Forge Config API Port,因此除了 Fabric API 外无需下载其他内容。若未安装 Curios、Trinkets 或 Baubles,饰品功能将处于关闭状态。在 1.21.1 中,Curios 必须为 9.5.1 或更高版本;在 1.20.1 中,必须为 5.14.1 或更高版本,否则游戏将无法启动。
常见问题
普通玩家能使用物品编辑器吗? 不能。它需要 2 级权限和创造模式,并且服务器在每次保存时都会再次检查这两项条件。将 itemEditorEnabled 设置为 false 可完全禁用该功能。
为什么在服务器上按 P 会打开社交界面? 在 1.20.1 和 1.21.1 原版中,P 键也用于打开其“社交互动”界面,而在服务器上,该界面会在 NBT 树之前打开。请在选项 → 控制 → 按键绑定中重新绑定其中任意一个按键。
配置文件更改需要重启游戏吗? 大多数选项在保存后立即生效,尽管 1.12.2 的配置文件界面提示它们需要重启。攻击冷却和生物最大生命量的调整会在实体再次进入世界时应用,饰品属性选项则在装备物品时应用。
法杖和剑在哪里获取? 从战斗修正(Battle Correction)创造模式标签页或使用 /give 命令获取。没有合成配方。
更新前有什么需要注意的吗? 请先备份你的配置文件文件夹。变更日志标签页列出了每个版本的更改内容以及你可能需要调整的项目。
源代码 · 问题反馈 · MC百科 (中文)
采用 CC BY-NC-SA 4.0 许可证授权。1.21.1 和 1.20.1 的 jar 文件包含未修改的 Cloth Config API(LGPL-3.0)。Fabric 版本的 jar 文件还包含未修改的 Forge Config API Port:MPL-2.0,其类取自 Forge(LGPL-2.1),其捆绑的 Night Config 库为 LGPL-3.0。
中文简介
战斗修正(BattleCorrection,简称 BC)为 NeoForge、Forge 和 Fabric 加入 15 种战斗属性(暴击、吸血、闪避、魔法和弹射物伤害等,玩家和怪物都能带)、全局战斗数值调整(PVP、按伤害类型的倍率、环境伤害、无敌时间、攻击冷却、生物生命值、饥饿),以及给管理员用的游戏内物品和 NBT 编辑器(按 I 打开,需要 2 级权限和创造模式)。
1.21.1 版分 NeoForge 和 Fabric 两个文件:NeoForge 版需要 NeoForge 21.1.265 及以上(可选 Curios API 9.5.1 及以上),Fabric 版需要 Fabric Loader 0.16.14 及以上和 Fabric API 0.116.18 及以上(可选 Trinkets 3.10.0 及以上、Mod Menu),两者都需要 Java 21。1.20.1 版分 Forge 和 Fabric 两个文件:Forge 版需要 Forge 47.x(可选 Curios API 5.14.1 及以上,版本更低时游戏无法启动),Fabric 版需要 Fabric Loader 0.16.14 及以上和 Fabric API 0.92.6 及以上(可选 Trinkets 3.7.2 及以上、Mod Menu),两者都需要 Java 17。以上各版均已内置 Cloth Config API。1.20.1 Forge 版另有伤害追踪,可逐步查看每一次伤害的计算过程。1.12.2 版需要 Forge 14.23.5.2855 及以上和 Java 8(可选 Baubles)。客户端和服务端要装同一个版本。
完整中文介绍、属性表和配置说明见 MC百科。
BattleCorrection (BC) is for people who build RPG maps, modpacks and servers and want to set the combat numbers themselves. It adds 15 attributes such as critical chance, lifesteal and dodge that work on players and mobs, global multipliers for PVP, mob health, invulnerability frames and environmental damage, and an in-game editor for item names, lore, enchantments, attributes and raw NBT.
1.21.1 (NeoForge, Fabric) · 1.20.1 (Forge, Fabric) · 1.12.2 (Forge) · install on both client and server · the Fabric versions need Fabric API
What it adds
- 15 attributes that work on players and mobs alike: critical hits with overflow, two kinds of lifesteal, dodge chance, flat damage reduction, magic, arrow and projectile damage, bow and use speed, jump height.
- Global settings for PVP, damage dealt and taken by players per damage type, environmental damage, invulnerability frames, attack cooldown, mob health and hunger.
- Any single item can become an accessory (Curios on Forge and NeoForge, Trinkets on Fabric, Baubles on 1.12.2), with attributes that only count while it is worn.
- An item editor for operators: coloured names and gradients, lore, enchantments, attributes, an NBT tree, an SNBT text editor and templates. It also edits entity and block entity NBT.
- Damage tracing (1.20.1 Forge only): every step of a hit, in the order the game applies it, with the mod behind each change.
Item editor
Operators (permission level 2) in creative mode press I or run /battlecorrection edit. The editor opens on the held item, on the item under the mouse in any open inventory or chest, or, with an empty hand, on the entity or block entity you are looking at. O opens the SNBT page directly and P the NBT tree. The server checks permission, creative mode, the target and the NBT size again on every save, and itemEditorEnabled = false turns the editor off completely.
The editor is drawn by the mod itself: page tabs on the left, the current page in the middle, a live tooltip preview on the right, and Copy command, Import, the NBT size, Cancel and Save along the bottom. The screenshots are from 1.20.1, and 1.21.1 looks the same; what differs on 1.21.1 and 1.12.2 is listed at the end of this section.
Name and lore
Type & colour codes and &#RRGGBB hex colours, or click the swatches and format buttons to insert them at the cursor. Clear strips colour and format codes from the selection, and pasted § signs become &. Insert writes one colour; Gradient blends two colours letter by letter across the selected text, or the whole line when nothing is selected.

Name page: a gradient name, with the finished tooltip previewed on the right.
The Lore page has one row per line, with move up / down, delete and add. Enter splits a line at the cursor, Backspace at the start of a line joins it to the one above, and a multi-line paste fills several rows. Vanilla style switches between plain white text and vanilla's purple italic. Only the lines you change are rebuilt: lines holding things a text box cannot show (click events, hover text, custom fonts) are marked, and stay intact as long as you leave them alone.

Lore page: one row per line, each with move, delete and a live preview.
The palette button opens a colour picker with a saturation / brightness square, hue bar, RGB sliders, hex input and your 16 most recent colours. Gradients take 2 to 8 colour stops, with ten presets such as rainbow, fire and ocean, and a preview of the whole line.

Colour palette: a five-stop gradient with a preview of the whole line.
Enchantments and attributes
The item's enchantments are on the left, each next to its vanilla maximum level: left-click changes the level, right-click removes it. On the right, search every enchantment in the game, other mods' included, and click one to add it. Curses are shown in red, and hovering shows what an enchantment does. Levels go up to 255 (32767 on 1.12.2); levels above the vanilla maximum and enchantments vanilla would not allow on the item still apply.

Enchantments page: the item's enchantments on the left, every enchantment on the right.
Attributes work the same way: every registered attribute, vanilla or from any mod, in one searchable list, with a description on hover. Set the amount, operation and slot; typing 20% switches to a percentage. Choosing an accessory slot (Curios, or Trinkets on Fabric) as the slot also lets the item be worn there.

Attributes page: critical chance, critical damage, lifesteal and magic damage on a sword.
Tags and slots
The Tags page sets Unbreakable, enchantment glint, hide flags, damage, anvil repair cost, count (1 to 127, or 1 to 99 on 1.21.1) and, on 1.20.1 and 1.21.1, CustomModelData. The Accessories page is covered under Accessory marks below.
My Slots (1.20.1 and 1.21.1) is for testing accessories and changes your own accessory slots. It lists every slot type you have with its count: change a count (0 removes that type), or type an id to add a slot, even one no mod has registered (it just has no icon). Curios only gives slots to players who already have at least one slot type, so with none this page cannot change anything. For testing, devCurioSlots = true gives every player one of each of Curios' ten built-in slots; keep it off in normal play. On Fabric the page can only change the count of slot types a player already has; see Fabric versions below.

My Slots: your own Curios slots and their counts.
NBT tree and SNBT
The tree shows every tag with its type. Search keys and values (Ctrl+F), jump to a path such as tag.display.Lore[0], copy a node's path, edit keys and values in place, and add, delete, copy, paste, duplicate or move nodes.

NBT tree: typed nodes, a path box with jump, and the node buttons along the bottom.
The SNBT page edits the whole item as text, with line numbers, highlighting and live error marking; text that does not parse is never applied. It has find (Ctrl+F), go to line (Ctrl+G), indent, duplicate and move line, Format, Compact and & / § conversion.

SNBT page: Ctrl+Enter applies the text to the item.
Templates, import and changing the item
A template stores an item's full NBT and count under a name, on your own computer. Apply it whole, or tick only the parts you want (name, lore, enchantments, attributes, curio marks and so on) and keep the rest, for example to give several weapons the same enchantments and attributes.

Templates page: applying only the enchantments and attributes of a saved template.
Import reads a /give command, an item id with NBT, or item SNBT from the clipboard and replaces the current item. Copy command exports the item as a /give command; commands longer than 256 characters cannot be sent from chat, so run those from a command block or function. F4 or a click on the item icon in the title bar changes the item type and keeps its NBT and count. Search by name or id, or type @ and a mod id (such as @battlecorrection) to list one mod's items.

Change item (F4): @battlecorrection lists only this mod's items.
Entities and block entities
With an empty hand, I edits the entity under the crosshair (players excluded) or a block with a block entity, such as a chest, furnace or spawner. The entity and block entity editors have the NBT tree and SNBT pages and work just like they do for items.

Entity NBT editor: searching a villager's NBT for its profession.
Undo and saving
Ctrl+Z / Ctrl+Y undo and redo, and typing within one second counts as one step. Ctrl+Tab moves to the next page and Ctrl+1 to 9 jump straight to one. Closing with unsaved changes lists what changed and asks first.

Closing with unsaved changes lists them before anything is discarded.
Ctrl+S or Save sends the item to the server. The NBT size of one item is capped by itemEditorMaxNbtKb (1 MB on 1.20.1 and 1.21.1, 256 KB on 1.12.2 by default), and larger items are not saved. Past about 2 MB the vanilla client cannot read an item at all, and players holding one get disconnected. F1 lists every shortcut.

Keyboard shortcuts (F1).
On 1.21.1
Minecraft 1.21.1 stores item data as components instead of NBT tags, which changes a few things in the editor:
- The NBT tree, the SNBT page, Import, Copy command and templates use the 1.21.1 format: an
{id, count, components} root and commands like diamond_sword[custom_name='"Name"']. Commands, SNBT and templates written for 1.20.1 are converted automatically when pasted or loaded.
- Count goes up to 99 and lore up to 256 lines.
- In the NBT tree, everything under
components must be a valid component, and your own data goes into minecraft:custom_data. Until an edit is valid it stays in the tree, marked as not applied yet, and pages cannot be switched or saved.
- Hiding Unbreakable, Can Break, Can Place On, dye colour or armour trim needs the item to have that component, otherwise the switch is greyed out.
- The attribute slot list adds Both Hands, Armor and Body.
- When saving, the server checks the whole item against the game's own rules and reports what is invalid.
On 1.12.2
The editor is the same apart from what that game version allows. 1.12.2 has no hex colours, so the palette offers the 16 vanilla colours (no colour square or RGB sliders), gradients snap to the nearest of them and it remembers 8 recent colours. The attribute list holds vanilla, Forge and this mod's attributes plus any your player has, and other names can be typed in. The Tags page has no CustomModelData, the Curios page is a Baubles page, and there is no My Slots page.
Attributes
All 15 attributes exist on every living entity. Put them on gear with the editor, /give, a data pack or any tool that writes attribute modifiers; on 1.20.1 and 1.21.1 the /attribute command works on them too. Each attribute also has a global value in the config that applies to every entity, mobs included.
Ids below are for 1.20.1 and 1.21.1, as battlecorrection:<id>. On 1.12.2 the same names are written in camelCase after a dot: battlecorrection.magicDamage, battlecorrection.vanillaCriticalHitDamage and so on. The examples use Operation 0 (addition, called add_value on 1.21.1), which suits all 15.
| Attribute |
Id |
Effect (Operation 0) |
| Magic Damage |
magic_damage |
Extra damage on magic hits that have an attacker |
| Arrow Damage |
arrow_damage |
Extra damage on arrow hits (tridents count on 1.20.1 and 1.21.1) |
| Projectile Damage |
projectile_damage |
Extra damage on other projectiles, such as fireballs and spell projectiles |
| Damage Immunity |
immune_damage |
Chance to ignore a hit completely: +0.25 = 25% |
| Ignore Damage |
ignore_damage |
Subtracts a flat amount from every hit; hits at or below it are cancelled |
| Reduced Fall Damage |
reduced_fall_damage |
The same, for fall damage only |
| Healing Restoration |
restore_heal |
Healing multiplier: +0.5 = 150% healing |
| Lifesteal |
bloodthirsty |
Heals a share of melee damage dealt (players need a full charge): +0.1 = 10% |
| Almighty Lifesteal |
almighty_bloodthirsty |
The same for every damage type |
| Bow Speed |
bow_speed |
Bow draw speed (crossbows too on 1.20.1 and 1.21.1): +1.0 = twice as fast |
| Use Speed |
preparation_speed |
Use speed of food, potions and other held items: +1.0 = twice as fast |
| Jump Boost |
jump_lift |
Extra jump height: 1.0 is about one block |
| Vanilla Critical Damage |
vanilla_critical_hit_damage |
Adds to the vanilla jump-attack critical: +0.5 turns 150% into 200% |
| Critical Chance |
custom_critical_chance |
Chance of this mod's own critical hit on melee and projectile hits: 0.3 = 30% |
| Critical Damage |
custom_critical_damage |
Added to the critical multiplier, which is 2.0 by default: +1.0 = 3× damage |
Critical chance above 100% is not wasted: the excess is added to the multiplier. With the default settings a chance of 1.5 makes every hit critical for 2.5× damage. Melee hits and projectiles roll once each, and a piercing arrow keeps one roll for all its targets.
Operations and /give examples
Attributes that start at 0 (the three damage bonuses, Ignore Damage, Reduced Fall Damage, Jump Boost, Critical Chance and Critical Damage) only react to Operation 0 on 1.20.1 and 1.21.1. Attributes that start at 1.0 count what is above 1.0, so an amount of 0.25 on its own gives the same bonus with Operation 0 or 1. On 1.12.2, Operation 1 and 2 on Magic, Arrow and Projectile Damage scale the hit instead (0.5 = +50%).
A bow with +5 Arrow Damage on 1.20.1 (the editor's Copy command button writes commands like this for you):
/give @p bow{AttributeModifiers:[{AttributeName:"battlecorrection:arrow_damage",Name:"bonus",Amount:5.0d,Operation:0,UUID:[I;1,2,3,4],Slot:"mainhand"}]}

The same on 1.21.1:
/give @p bow[attribute_modifiers={modifiers:[{type:"battlecorrection:arrow_damage",id:"battlecorrection:bonus",amount:5.0,operation:"add_value",slot:"mainhand"}]}]
The same on 1.12.2:
/give @p minecraft:bow 1 0 {AttributeModifiers:[{AttributeName:"battlecorrection.arrowDamage",Name:"bonus",Amount:5.0d,Operation:0,UUIDMost:1L,UUIDLeast:1L,Slot:"mainhand"}]}
Combat tuning
Global settings, applied through the loader's damage and healing events (the Fabric versions hook the same points themselves), so weapons and damage from other mods are covered too. At their defaults they leave vanilla combat unchanged.
- PVP and self-damage multipliers, set separately; 0 turns either one off.
- Damage dealt and taken by players, per type: melee, arrow, projectile and magic. Magic stacks on top of the other three, so a player's fireball uses the projectile multiplier times the magic multiplier.
- Environmental damage taken by players (damage without a living attacker): a general multiplier plus fall, fire, drowning, freezing and explosion, applied after armor; 0 makes players immune. An optional floor makes each environmental hit deal at least a share of max health or a flat amount. Void damage and
/kill are never changed. 1.12.2 has no freezing category.
- Invulnerability time after a hit, for players and for other entities: 0 keeps vanilla, -0.5 halves it, 1.0 doubles it.
- Attack cooldown on or off (off gives 1.8-style combat), and combo correction, which scales uncharged swings by the attack charge, never below 50%.
- Max health of every non-player mob: 1.0 doubles it.
- Hunger: extra regeneration from saturation and from a high hunger bar (flat or a share of max health), and less damage dealt by players per missing hunger point, with an optional cap (0 means no cap).
- Spells from other mods count as magic damage. On 1.20.1 and 1.21.1, Iron's Spells 'n Spellbooks, Ars Nouveau, Goety, Sweet Magic and Geomancy Plus are recognised out of the box by mod namespace, together with the
forge:is_magic damage type tag (neoforge:is_magic and c:is_magic on 1.21.1), a whitelist and a blacklist. On 1.12.2 you list damage type prefixes. Melee hits by summons and pets never count as magic.
- Whether lifesteal is boosted by healing bonuses (on by default).

The in-game config screen on 1.20.1 (Mods → BattleCorrection → Config).
Accessory marks
With Curios (1.20.1 Forge and 1.21.1 NeoForge), Trinkets (the Fabric versions) or Baubles (1.12.2) installed, an operator can mark one single item so it fits chosen accessory slots: a sword worn as a charm, a helmet worn as a ring. The mark is stored in the item's data (custom data on 1.21.1), so copies and trades keep it.
- A marked item is accessory-only. Its own attributes (armor, attack damage,
AttributeModifiers or attribute_modifiers, bonuses from other mods) apply only in the accessory slot, and marked armor can no longer be worn in armor slots.
- Extra attributes that count only while worn can be attached, optionally for one slot type.
- Right-click equips a marked item into a free slot; on 1.20.1 shift-click works in the Curios screen too.
- The tooltip lists the attributes in one section per slot; on Fabric it uses Trinkets' own format.
- For accessories without a mark, a config option decides which vanilla-format attributes apply while worn:
ALL (default), MOD_ONLY or OFF.

Accessories page on 1.20.1 Forge: this sword can now be worn in the Back and Hands slots, and its attributes are listed per slot in the preview.
Damage tracing (1.20.1 Forge only)
/battlecorrection damage shows how each hit was calculated. While tracing is on, a panel at the side of the screen lists the latest hits with their starting and final damage. /battlecorrection damage open, or a key bound to Open Damage Trace, opens the full breakdown.
The breakdown lists every step in the order the game applies it: attack damage, charge, enchantments, this mod's attributes and multipliers, armor, effects, protection and the changes made by other mods, each with the mod that made it. Hovering over a step shows the vanilla formula or the modifier behind it. Chained damage, such as thorns or a hit that causes further hits, is listed as nested levels under the attack that started it.
/battlecorrection damage turns tracing on or off, and on [minutes] and off set it directly. Tracing turns itself off after damageTraceMaxMinutes (10 by default).
/battlecorrection damage watch <player> [minutes] traces another player's damage.
- Every player can use these commands by default;
damageTraceOpOnly = true limits them to operators.
- Mod names come from
damageTraceModNames (entries in the form modid=Name), then from the bracketed name at the start of the jar file name, then from the name the mod declares.
- The position of the panel, its number of lines and whether it keeps only the latest attack are set in
config/battlecorrection-client.toml.
Management staffs and test swords
Ten staffs for map makers and testing. They have no recipes and come only from the Battle Correction creative tab or /give, but anyone holding one can use it, in survival too. The area staffs work within 64 blocks, and every staff has a one-second cooldown.
All staffs and swords
| Item |
Use |
| Enemy Staff |
Click two mobs: they attack each other |
| Rebel Staff |
Click a mob: every mob within 64 blocks attacks it |
| Riot Staff |
Click a mob: it attacks random mobs nearby for 10 minutes |
| Brawl Staff |
Use in the air: all mobs within 64 blocks fight each other for 10 minutes |
| Elimination Staff |
Use in the air: mobs attack mobs of other species for 10 minutes |
| Healing Staff |
Click any living entity: full health |
| Range Healing Staff |
Full health for every living entity within 64 blocks of the target, players included |
| Sacrificial Staff |
Kills the clicked entity, players included |
| Range Sacrificial Staff |
Kills every non-player entity within 64 blocks of the target |
| Restoration Staff |
Removes all effects from the clicked entity |
| Base / Advanced / Master Sword |
10 / 100 / 1,000 attack damage, 1,000 / 10,000 / 100,000 durability |
Commands and configuration
Commands, keys and config files
Commands and keys
| Command or key |
What it does |
/battlecorrection edit |
Opens the editor on the held item; add snbt or nbt to open that page |
/battlecorrection curio add <slot> |
Lets the held item go into a Curios slot type (any = every slot); remove <slot>, clear and list manage the marks |
/battlecorrection curio attr add <attribute> <amount> |
Attaches an attribute that counts only while worn, optionally followed by an operation (add, multiply_base or multiply_total) and a slot; attr remove <attribute> [slot] and attr clear remove them |
/battlecorrection damage |
1.20.1 Forge only: turns damage tracing on or off; on, off, open and watch are described under Damage tracing |
/battlecorrection bauble ... |
1.12.2: the same subcommands for Baubles slots (amulet, ring, belt, head, body, charm, any); curio works as an alias |
| I / O / P |
Open the editor / SNBT page / NBT tree; with a container open they act on the slot under the mouse |
| K |
1.12.2 only: opens the mod list |
All commands except damage need permission level 2; edit also needs creative mode. The keys can be changed under Options → Controls → Key Binds → Battle Correction (Options → Controls on 1.12.2). On 1.20.1 and 1.21.1, P is also vanilla's default Social Interactions Screen key, and on a server that screen opens first, so rebind one of the two.
Configuration
On 1.20.1 and 1.21.1 there are two files, plus config/battlecorrection-client.toml for the damage tracing panel on 1.20.1 Forge. config/battlecorrection-battle.toml holds the combat tuning above, and config/battlecorrection-attribute.toml holds the global attribute values, the lifesteal option, accessory marks and the item editor. Most options are also in the in-game screen (Mods → BattleCorrection → Config; on Fabric, open it from Mod Menu); curioNbtAttributes, itemEditorEnabled and itemEditorMaxNbtKb are only in the file. Bow Draw Speed and Item Use Speed are read on both sides, so keep those two values the same in the client and server files.
On 1.12.2 everything is in config/battlecorrection.cfg, with Battle Configuration, Attribute Configuration, Bauble Mark and Item Editor categories, all editable in game (Mods → Battle Correction → Config; K opens the mod list).
The editor's NBT size limit for one item, entity or block entity defaults to 1024 KB on 1.20.1 and 1.21.1 and 256 KB on 1.12.2 and can be changed with itemEditorMaxNbtKb.
Fabric versions
1.20.1 and 1.21.1 each have a Fabric version. Attributes, combat tuning, accessory marks, the item editor and the staffs are the same as in the Forge or NeoForge version for the same Minecraft version. The config files have the same names and options (apart from the damage tracing options on 1.20.1), so they can be copied between the two.
- Required: Fabric API.
- Bundled: Forge Config API Port and Cloth Config API, so neither needs to be downloaded.
- Optional: Mod Menu to open the config screen in game, and Trinkets for accessory marks.
Differences from the Forge and NeoForge versions:
- There is no damage tracing.
- Accessory marks use Trinkets instead of Curios. Slot ids take the form
group/slot, such as hand/ring, and have to be quoted in commands: /battlecorrection curio add "hand/ring". Slot ids differ between the loaders, so a mark made on Forge or NeoForge has no effect on Fabric, and the other way round.
- Trinkets does not assign any slots to players by itself. Slots come from other mods or from a data pack (example below), and the My Slots page can only change the count of slot types a player already has. Trinkets has no cosmetic slots.
- Lowering a count on the My Slots page returns the extra items to the inventory, or drops them at the player's feet when the inventory is full.
- Tooltips of marked items use Trinkets' own format.
- The config screen opens from Mod Menu.
- A client with the mod can join a server without it, and the mod stays inactive for that session. On Forge and NeoForge, such a client cannot join.
To give every player one ring slot and one necklace slot, save the following as data/trinkets/entities/players.json in a data pack and run /reload:
{
"entities": ["player"],
"slots": ["hand/ring", "chest/necklace"]
}
Slot types defined by Trinkets: head/face, head/hat, chest/necklace, chest/back, chest/cape, legs/belt, feet/aglet, feet/shoes, hand/glove, hand/ring, offhand/glove, offhand/ring.
Known limitation on 1.20.1 Fabric: to attach extra attributes, the mod wraps the object that TrinketsApi.getTrinket returns. A mod that checks that object with instanceof or compares it with TrinketsApi.getDefaultTrinket() will not recognise it. Trinkets itself does not do this; please report any mod that is affected.
Requirements
| Minecraft |
Loader |
Optional |
| 1.21.1 |
NeoForge 21.1.265 or newer, Java 21 |
Curios API 9.5.1 or newer |
| 1.21.1 |
Fabric Loader 0.16.14 or newer and Fabric API 0.116.18 or newer, Java 21 |
Trinkets 3.10.0 or newer, Mod Menu |
| 1.20.1 |
Forge 47.x, Java 17 |
Curios API 5.14.1 or newer |
| 1.20.1 |
Fabric Loader 0.16.14 or newer and Fabric API 0.92.6 or newer, Java 17 |
Trinkets 3.7.2 or newer, Mod Menu |
| 1.12.2 |
Forge 14.23.5.2855 or newer, Java 8 |
Baubles |
Install the same version on the client and the server. The 1.21.1 and 1.20.1 jars already contain Cloth Config API (Jar-in-Jar) for the config screen, and the Fabric jars also contain Forge Config API Port, so apart from Fabric API there is nothing else to download. Without Curios, Trinkets or Baubles the accessory features stay off. Curios must be 9.5.1 or newer on 1.21.1 and 5.14.1 or newer on 1.20.1, otherwise the game will not start.
FAQ
Can ordinary players use the item editor? No. It needs permission level 2 and creative mode, and the server checks both again on every save. Set itemEditorEnabled to false to turn it off completely.
Why does P open the social screen on a server? On 1.20.1 and 1.21.1 vanilla also uses P for its Social Interactions Screen, and on a server that screen opens before the NBT tree. Rebind one of the two under Options → Controls → Key Binds.
Do config changes need a restart? Most options apply as soon as they are saved, even though the 1.12.2 config screen marks them as needing a restart. Attack cooldown and mob max health apply when an entity joins the world again, and the accessory attribute option when the item is put on again.
Where do I get the staffs and swords? From the Battle Correction creative tab or with /give. There are no crafting recipes.
Anything to know before updating? Back up your config folder first. The changelog tab lists what each version changed and anything you may want to adjust.
Source code · Issues · MC百科 (中文)
Licensed under CC BY-NC-SA 4.0. The 1.21.1 and 1.20.1 jars include Cloth Config API (LGPL-3.0), unmodified. The Fabric jars also include Forge Config API Port, unmodified: MPL-2.0, with its classes taken from Forge under LGPL-2.1 and its bundled Night Config library under LGPL-3.0.
中文简介
战斗修正(BattleCorrection,简称 BC)为 NeoForge、Forge 和 Fabric 加入 15 种战斗属性(暴击、吸血、闪避、魔法和弹射物伤害等,玩家和怪物都能带)、全局战斗数值调整(PVP、按伤害类型的倍率、环境伤害、无敌时间、攻击冷却、生物生命值、饥饿),以及给管理员用的游戏内物品和 NBT 编辑器(按 I 打开,需要 2 级权限和创造模式)。
1.21.1 版分 NeoForge 和 Fabric 两个文件:NeoForge 版需要 NeoForge 21.1.265 及以上(可选 Curios API 9.5.1 及以上),Fabric 版需要 Fabric Loader 0.16.14 及以上和 Fabric API 0.116.18 及以上(可选 Trinkets 3.10.0 及以上、Mod Menu),两者都需要 Java 21。1.20.1 版分 Forge 和 Fabric 两个文件:Forge 版需要 Forge 47.x(可选 Curios API 5.14.1 及以上,版本更低时游戏无法启动),Fabric 版需要 Fabric Loader 0.16.14 及以上和 Fabric API 0.92.6 及以上(可选 Trinkets 3.7.2 及以上、Mod Menu),两者都需要 Java 17。以上各版均已内置 Cloth Config API。1.20.1 Forge 版另有伤害追踪,可逐步查看每一次伤害的计算过程。1.12.2 版需要 Forge 14.23.5.2855 及以上和 Java 8(可选 Baubles)。客户端和服务端要装同一个版本。
完整中文介绍、属性表和配置说明见 MC百科。
评论 0
登录后参与评分
还没有评论,来抢沙发吧