物品防损坏
Item Break Prevention 是一个适用于 NeoForge 1.21.1 的模组,它改变了耐久类物品在耐久值归零时的处理方式。物品不会消失,而是变成其破损版本,以便玩家保留并在之后进行修复。
功能
- 防止完全损坏的耐久类物品在损坏时被删除。
- 将破损装备转换为不可用的破损物品,并存储原始物品数据。
- 保留原始物品的名称和原版工具提示(tooltip),并添加 Broken - Repair in an Anvil(破损 - 在铁砧中修复)。
- 通过铁砧修复流程恢复原始物品。
- 完全破损物品的修复需要另一个具有相同物品 ID 的物品。
- 支持带有耐久值的模组物品,无需依赖自定义修复材料或修复配方。
破损物品行为
当物品耐久值降至零时,该模组会存储原始堆栈数据,并用破损版本替换该堆栈。破损物品无法正常使用、挖掘或作为功能性装备交互。
工具提示基于原始物品的工具提示,因此附魔、属性、名称以及其他原版工具提示细节均保持原有顺序显示。破损状态以 Broken - Repair in an Anvil(破损 - 在铁砧中修复)标示。
铁砧修复规则
完全破损物品使用比普通受损物品更严格的修复规则:
- 铁砧右侧槽位必须包含与存储的原始物品相同的物品 ID。
- 附魔、自定义名称、耐久损耗及其他物品数据无需匹配。
- 不接受皮革、毛皮、锭或宝石等常规修复材料用于完全破损物品的修复。
- 用于匹配的物品会在铁砧修复过程中被消耗。
例如,破损的皮革靴子必须使用另一双 minecraft:leather_boots 进行修复,而不能使用皮革或毛皮。
兼容性
本模组专为 Minecraft 1.21.1 搭配 NeoForge 设计。由于破损物品通过匹配物品 ID 而非检查原版修复材料来进行修复,它对那些作者未定义修复材料的模组工具和护甲更加友好。
注意事项
- 在物品达到完全破损状态之前,正常的物品耐久行为仍然适用。
- 完全破损物品在修复前故意设置为不可用状态。
- 当前破损物品使用占位符模型,因此资源包或未来版本可将其替换为专用的破损废料纹理。
Item Break Prevention
Item Break Prevention is a NeoForge 1.21.1 mod that changes what happens when a durability item reaches zero durability. Instead of disappearing, the item becomes a broken version of itself so the player can keep it and repair it later.
Features
- Prevents fully damaged durability items from being deleted when they break.
- Converts broken gear into an unusable broken item that stores the original item data.
- Keeps the original item's name and vanilla tooltip, then adds Broken - Repair in an Anvil.
- Restores the original item through an anvil repair flow.
- Requires another item with the same item id for fully broken item repair.
- Supports modded durability items without relying on custom repair ingredients or repair recipes.
Broken Item Behavior
When an item reaches zero durability, the mod stores the original stack data and replaces the stack with a broken version. The broken item cannot be used normally, mined with, or interacted with as working equipment.
The tooltip is based on the original item tooltip, so enchantments, attributes, names, and other vanilla tooltip details stay in their normal order. The broken state is shown with Broken - Repair in an Anvil.
Anvil Repair Rules
Fully broken items use a stricter repair rule than normal damaged items:
- The right anvil slot must contain the same item id as the stored original item.
- Enchantments, custom names, damage, and other item data do not need to match.
- Repair ingredients such as leather, hide, ingots, or gems are not accepted for fully broken items.
- The matching item is consumed by the anvil repair.
For example, broken leather boots must be repaired with another pair of minecraft:leather_boots, not leather or hide.
Compatibility
This mod is designed for Minecraft 1.21.1 with NeoForge. Because broken items repair by matching the item id instead of checking vanilla repair ingredients, it is friendlier to modded tools and armor whose authors may not define repair materials.
Notes
- Normal item durability behavior still applies until the item reaches the fully broken state.
- Fully broken items are intentionally unusable until repaired.
- The broken item currently uses a placeholder item model, so resource packs or future versions can replace it with a dedicated broken scrap texture.
评论 0
登录后参与评分
还没有评论,来抢沙发吧