简体中文
修复 Create 模组中的下界合金潜水套装与 Curios 饰品系统的兼容性问题。
当在 Curios 的 back(背部)槽位装备下界合金背罐时,全套提供的火焰免疫效果现在能够正常工作。
问题
Create 通过 NetheriteDivingHandler 监听 LivingEquipmentChangeEvent 来追踪下界合金潜水套装。当检测到四件护甲(头盔/背罐/护腿/靴子)齐全时,它会写入 CreateFireImmune 状态以赋予岩浆免疫能力。
然而,Curios back 槽位的变更不会触发原版的护甲装备事件。因此,当通过 Curios 装备背罐时:
CreateNetheriteDivingBits 中的胸部比特位未更新
- 全套火焰免疫失效
- 铜制背罐 + 下界合金胸甲的组合不会消耗空气,也不会显示岩浆呼吸倒计时 UI
解决方案
-
火免比特位维护
同时监听 CurioChangeEvent 和 LivingEquipmentChangeEvent(低优先级),然后重新计算完整的装备比特掩码。支持多个 Curios back 槽位。
-
铜制背罐岩浆呼吸补丁
在高优先级下,临时将 FIRE_RESISTANT 标签应用于铜制背罐,以便 Create 的原生岩浆呼吸逻辑能正常执行(包括空气消耗和 UI 更新)。
随后在低优先级移除该标签。
-
客户端 UI 同步
在客户端和服务端均进行初始化,并为 VisualBacktankAir 提供客户端回退更新。
检测逻辑
| 槽位 |
条件 |
比特位 |
| 头部 |
DivingHelmetItem + FIRE_RESISTANT |
8 |
| 胸部 |
胸甲 ArmorItem + FIRE_RESISTANT 且 (PRESSURIZED_AIR_SOURCES 存在于胸甲槽或任意 Curios back 槽) |
4 |
| 腿部 |
ArmorItem + FIRE_RESISTANT |
2 |
| 脚部 |
ArmorItem + FIRE_RESISTANT |
1 |
English
Fixes compatibility issues between the Create mod's Netherite Diving Suit and the Curios accessory system.
When the Netherite Backtank is equipped in a Curios back slot, the full-set fire immunity effect now works correctly.
Problem
Create tracks the Netherite Diving Suit through NetheriteDivingHandler using LivingEquipmentChangeEvent.
When all four armor pieces (helmet / backtank / leggings / boots) are detected, it writes the CreateFireImmune state to grant lava fire immunity.
However, changes in Curios back slots do not trigger vanilla armor equipment events. As a result, when the backtank is equipped through Curios:
- The chest bit in
CreateNetheriteDivingBits is not updated
- Full-set fire immunity fails
- Copper Backtank + Netherite Chestplate combinations do not consume air or display the lava breathing countdown UI
Solution
-
Fire Immunity Bit Maintenance
Listens to both CurioChangeEvent and LivingEquipmentChangeEvent (LOW priority), then recalculates the full equipment bitmask. Supports multiple Curios back slots.
-
Copper Backtank Lava Breathing Patch
At HIGH priority, temporarily applies the FIRE_RESISTANT tag to Copper Backtanks so Create's native lava breathing logic executes normally (air consumption + UI updates).
The tag is removed again at LOW priority.
-
Client-side UI Sync
Initializes on both client and server sides, with client-side fallback updates for VisualBacktankAir.
Detection Logic
| Slot |
Condition |
Bit |
| Head |
DivingHelmetItem + FIRE_RESISTANT |
8 |
| Chest |
Chest armor ArmorItem + FIRE_RESISTANT and (PRESSURIZED_AIR_SOURCES exists in chest slot or any Curios back slot) |
4 |
| Legs |
ArmorItem + FIRE_RESISTANT |
2 |
| Feet |
ArmorItem + FIRE_RESISTANT |
1 |
简体中文
修复 Create 模组的下界合金潜水套装与 Curios 饰品栏的兼容问题。
问题
Create 通过 NetheriteDivingHandler 监听 LivingEquipmentChangeEvent 追踪四件套(头盔/背罐/护腿/靴子),凑齐后写入 CreateFireImmune 实现火免。
但 Curios 的 back 饰品槽变化不触发原版护甲栏事件,导致背罐放入 Curios 背槽时:
CreateNetheriteDivingBits NBT 胸部比特位不更新
- 满套火免失效
- 铜背罐 + 下界合金胸甲组合在岩浆中不消耗空气、不显示倒计时 UI
解决方案
- 火免比特位维护 — 监听
CurioChangeEvent + LivingEquipmentChangeEvent(LOW),重新计算全套比特位,支持 Curios 多个 back 槽
- 铜背罐岩浆呼吸补丁 — HIGH 优先级临时给铜背罐打
FIRE_RESISTANT 标记,欺骗 Create 原生逻辑完整跑完(空气消耗 + UI 更新),LOW 优先级清理标记
- 客户端 UI — 双端初始化,客户端兜底写入
VisualBacktankAir
判定逻辑
| 槽位 |
条件 |
bit |
| 头 |
DivingHelmetItem + FIRE_RESISTANT |
8 |
| 胸 |
胸甲栏 ArmorItem + FIRE_RESISTANT 且 (胸甲栏或任意 Curios back 槽有 PRESSURIZED_AIR_SOURCES) |
4 |
| 腿 |
ArmorItem + FIRE_RESISTANT |
2 |
| 脚 |
ArmorItem + FIRE_RESISTANT |
1 |
评论 0
登录后参与评分
还没有评论,来抢沙发吧