BreakWarn 默默监视你携带的每一个可损坏物品,并在其即将断裂时发出警告。没有错误时无 HUD 干扰,有错误时也不刷屏——每个物品仅一次提醒,恰在你需要时出现。
功能说明
-
每个游戏刻(tick)监控9个快捷栏槽位、副手以及全部4个护甲槽位。
-
当任何被监控物品的剩余耐久度降至 <= 10% 时,触发一次一次性警告:
- 声音 — 一声清脆的铁砧落地声,即使你没有看向屏幕角落也能注意到。
- 动作栏消息 显示在快捷栏上方:"工具即将损坏:<物品名称> (<N>%) "。
-
左上角的 HUD 横幅,持续约 3.5 秒:"即将损坏:<item> (<N>%"。
-
每个物品在每个耐久周期内仅获得一次警告。对其进行修复(使用铁砧、磨石或经验修补),如果同一物品的耐久度再次低于阈值,BreakWarn 会再次发出警告。更换为其他物品时,新物品将重新开始计算。
-
内置滞回机制:当剩余耐久度降至 20% 时,警告状态重置,因此耐久度在 9%-11% 徘徊的物品不会频繁向你发送警告。
控制键
- B — 切换 BreakWarn 的开启/关闭状态。操作栏确认信息会显示当前状态。
为什么
用一把好的镐子下矿,你发现了矿脉——但挖到第八格时,镐子断了,钻石随之消失在虚空中。BreakWarn 是最精简的解决方案:一个横幅提示、一个音效、每个物品一条警告信息,无需配置界面,无需设置步骤。
说明
- 纯客户端模组——仅安装在客户端即可。兼容任意 Fabric 服务器,完全原版兼容。
- 当你在背包或菜单界面时,会屏蔽音效和动作栏消息,因此打开箱子不会触发大量警告提示。
- HUD 横幅遵循 F1(隐藏 HUD)设置,并在几秒后自动消失。
- 代码仅约 180 行,无配置文件,唯一依赖为 Fabric API。
兼容性
Minecraft 1.21.8、1.21.9、1.21.10、1.21.11 —— 需要 Fabric Loader 0.16 及以上版本。单个 JAR 文件支持全部四个版本。将其放入 mods/ 文件夹,与 Fabric API 共存即可。
BreakWarn quietly watches every damageable item you're carrying and warns you the moment one is about to snap. No HUD clutter when nothing's wrong, no spam when something is — just one alert per item, exactly when you need it.
What it does
- Monitors the 9 hotbar slots, the off-hand, and all 4 armor slots every tick.
- When the remaining durability of any monitored item drops to <= 10%, it fires a one-shot warning:
- Sound — a sharp anvil-land thud, so you notice even when you're not looking at the corner.
- Action-bar message above the hotbar: "Tool almost broken: <item name> (<N>%)".
- HUD banner in the top-left for ~3.5 s: "About to break: <item> (<N>%)".
- Each item gets exactly one warning per damage cycle. Repair it (anvil, grindstone, Mending) and BreakWarn will warn you again if the same item dips back below the threshold. Swap to a different item and the new item starts fresh.
- Built-in hysteresis: the warning resets at 20% remaining, so a hovering 9-11% item won't spam you.
Controls
- B — toggle BreakWarn on/off. Action-bar confirmation tells you the current state.
Why
Caving with one good pickaxe, you find the ore vein — but eight blocks in, the pickaxe snaps and the diamonds vanish into the void. BreakWarn is the smallest possible fix: one banner, one sound, one alert per item, no config screens, no setup.
Notes
- Pure client-side — install on your client only. Works on any Fabric server, fully vanilla compatible.
- Sound and action-bar messages are suppressed while you're in an inventory/menu, so opening your chest doesn't spam alerts.
- The HUD banner respects F1 (hide HUD) and disappears on its own after a few seconds.
- ~180 lines of code, no config files, only Fabric API as a dependency.
Compatibility
Minecraft 1.21.8, 1.21.9, 1.21.10, 1.21.11 — Fabric Loader 0.16+. One JAR covers all four. Drop into your mods/ folder alongside Fabric API.
评论 0
登录后参与评分
还没有评论,来抢沙发吧