ElytraWarn 仅在你真正滑翔时才会监控你的鞘翅。当你装备的鞘翅剩余耐久度低于 10% 的瞬间,屏幕正上方会闪烁红色的 [!] ELYTRA LOW x% 横幅,并播放简短的提示音 —— 只要你还处于危险区间,它就会每隔几秒重复一次 —— 以便你在空中折断翅膀之前着陆或更换。
功能特点
- 仅在滑翔时警告。 在地面上不会烦人,鞘翅状态良好时也不会显示横幅 —— 警告只在断裂会导致你从空中坠落时才出现。
- 闪烁横幅 + 声音。 闪烁的红字在你的周边视野中非常醒目,而音频提示即使你注视地平线也能引起注意。
- 实时百分比。 横幅显示剩余耐久度,让你清楚自己还有多少余量。
- 自动重置。 修复或更换新的鞘翅后,警告会自动清除。
与众不同之处
原版耐久条只是物品栏底部的一小截 —— 在高空巡航时毫无用处。ElytraWarn 将警报与滑翔状态绑定,因此它会在断裂意味着长距离坠落的精确时刻发出提醒。
工作原理
- 每个客户端刻读取胸甲槽位鞘翅的
getDamage() / getMaxDamage() 并检查 isGliding() —— 无需 Mixin、无需数据包、无需服务端组件。
- 通过 Fabric 的
HudRenderCallback 绘制,因此尊重 F1(隐藏 HUD)以及暂停/屏幕自动切换。
控制键
兼容性
适用于 Minecraft 1.21.8, 1.21.9, 1.21.10, and 1.21.11(Fabric Loader 0.16+)。一个 JAR 包兼容四个版本 —— 与 Fabric API 一起安装即可。纯客户端;零配置。
ElytraWarn watches your elytra only when it matters: while you're actually gliding. The instant your equipped elytra's remaining durability falls below 10%, a red [!] ELYTRA LOW x% banner blinks in the upper-center of your screen and a short alert sound plays — repeating every few seconds while you stay in the danger zone — so you can land or swap before your wings break in the air.
What it does
- Only warns while gliding. No nagging on the ground, no banner when the elytra is fine — the alert appears exactly when a break would actually drop you out of the sky.
- Blinking banner + sound. The flashing red text is hard to miss in your peripheral vision, and the audio cue catches you even if your eyes are on the horizon.
- Live percentage. The banner shows the remaining durability so you know how much margin you have left.
- Auto-resets. Repair or swap to a fresh elytra and the warning clears itself.
Why it's different
The vanilla durability bar is a tiny sliver at the bottom of the hotbar — useless when you're cruising at altitude. ElytraWarn ties the alert to the gliding state, so it speaks up precisely when a break means a long fall.
How it works
- Reads
getDamage() / getMaxDamage() on your chest-slot elytra and checks isGliding() every client tick — no mixins, no packets, no server component.
- Drawn via Fabric's
HudRenderCallback, so it respects F1 (hide HUD) and pauses/screens automatically.
Controls
- Y — toggle the warning on / off (default: on).
Compatibility
Works on Minecraft 1.21.8, 1.21.9, 1.21.10, and 1.21.11 (Fabric Loader 0.16+). One JAR for all four versions — install alongside Fabric API. Pure client-side; zero config.
评论 0
登录后参与评分
还没有评论,来抢沙发吧