✨ Elytra HUD Health ❤️
为你的鞘翅提供极简、像素级精准的生命值/耐久度 HUD,包含实时警告、多语言本地化以及怀旧的原版风格配置界面。

? 概览
Elytra HUD Health 让你无需打开物品栏即可随时掌握鞘翅的精确耐久度。该 HUD 模仿了原版 Minecraft 的用户界面,可放置在屏幕的任何位置,甚至能在鞘翅即将破碎前自动将其卸下。专为基于 Fabric 的客户端(1.21.x,已在 1.21.4 上测试)构建,支持完整的多语言本地化(EN / RU / UK / JA)和可选的聊天警告功能。

? 功能特性
- 原版风格的 HUD – 图标、进度条和百分比均沿用 Minecraft 原版的斜面边框设计,使叠加层看起来原生自然。
- 精确的定位与缩放 – 使用基于百分比的滑块调整 HUD 偏移量,并可单独微调图标和进度条的高度。
- 可配置的提示通知 – 独立切换聊天警告、声音提示、百分比文本、图标和进度条的显示。
- 自动卸下的安全保护 – 当耐久度达到自定义阈值时,自动将鞘翅切换到快捷栏;并在卸下前 10% 耐久度时发出警告。
- 就绪的多语言环境 – 内置英语、俄语、乌克兰语和日语翻译,涵盖 UI 界面和聊天消息;在配置界面内可一键循环切换语言。
- 滑块预览变暗效果 – 调整滑块时,世界画面会暂时变暗以提升可读性,且不会冻结游戏进程。
? 依赖要求
可选:Mod Menu,方便在游戏内直接打开配置界面。
?? 安装指南
- 为你的 Minecraft 版本安装 Fabric Loader。
- 将
Fabric API 和 elytra_hud_health-x.y.z.jar 放入 /.minecraft/mods 文件夹中(仅客户端需要)。
- 启动一次 Minecraft,以便生成配置文件
config/elytra_health.json。
- 按下已配置的快捷键(默认为你现有的 ElytraBar 按键绑定),或通过 Mod Menu 打开以访问 UI 界面。
?️ 配置亮点
| 设置项 |
位置 |
描述 |
scale, offsetX, offsetY |
配置界面 / elytra_health.json |
根据你的分辨率移动和调整 HUD 大小 |
showIcon, showProgressBar, showPercentage |
同上 |
切换各个 HUD 元素的显示/隐藏 |
soundsEnabled, showWarnings |
同上 |
启用提示音和聊天通知 |
autoRemove + autoRemoveThreshold |
同上 |
当耐久度低于阈值时自动卸下鞘翅,并在之前 10% 时发出警告 |
locale |
配置界面 |
在 EN / RU / UK / JA 之间循环切换;默认使用 Minecraft 语言或 EN |
提示:配置界面使用可滚动的分区、页脚致谢链接以及专用的语言按钮。“完成”操作会立即应用更改并保存 JSON 文件。
? 聊天与声音警报
- 耐久度低于 50% / 25% 时:播放轻微的铃声(可通过
soundsEnabled 配置)。
- 耐久度降至 10% 时:发送本地化的聊天警告 + 黄色高亮显示。
- 耐久度归零时:播放破碎音效并发送红色聊天警报。
- 即将自动卸下:如果你处于空中状态,发送红色聊天警告。
- 快捷栏已满:如果自动卸下时发现没有空槽位,发送本地化错误消息。
所有聊天消息均以 [EHH] 为前缀,并根据所选语言进行翻译。
?️ 开发指南
- 语言文件 位于
src/main/resources/assets/elytrabar/lang/。通过复制 en_us.json 并更新 Localization.java 来添加更多语言。
- 构建项目:运行
./gradlew build(需要 JDK 21+ 或仓库中配置的 JDK 22)。
- 测试调试:通过
./gradlew runClient 在 Fabric 开发环境中启动模组,以便快速迭代 HUD 调整。
- 代码风格:原版风格的 UI 使用手动绘制的
DrawContext 矩形。注释故意保持精简,以契合像素艺术的工作流程。
? 贡献与许可
- 作者:Risefall(概念与设计)• README 由 Elytra HUD Health 维护者用心整理 ❤️。
- 许可证:MIT(请参阅
LICENSE)。
飞行平安!?
✨ Elytra HUD Health ❤️
Minimal, pixel-perfect durability HUD for your elytra with live warnings, localization, and a nostalgic vanilla-style config screen.

? Overview
Elytra HUD Health keeps you updated on the exact durability of your wings without opening the inventory. The HUD mimics the original Minecraft UI, can be placed anywhere on screen, and even removes elytra automatically before they shatter. Built for Fabric-based clients (1.21.x, tested on 1.21.4) with full localization (EN / RU / UK / JA) and optional chat warnings.

? Features
- Vanilla-styled HUD – Icon, bar, and percentage share Minecraft's original beveled borders so the overlay feels native.
- Precise positioning & scaling – Offset the HUD using percentage-based sliders and tweak icon/bar height individually.
- Configurable notifications – Toggle chat warnings, sounds, percentage text, icon, and progress bar independently.
- Auto-remove safety – Automatically swap elytra into the hotbar once durability hits a custom threshold; warns you 10% before removal.
- Localization ready – Built-in English, Russian, Ukrainian, and Japanese translations for both UI and chat; one-click language cycle inside the config.
- Slider preview dimming – Adjusting sliders momentarily dims the world to improve readability without freezing gameplay.
? Requirements
| Dependency |
Version |
Notes |
| Fabric Loader |
0.16+ |
Matches your Minecraft version |
| Fabric API |
Latest for 1.21.x |
Needed for HUD events and keybinding |
Optional: Mod Menu for easily opening the config screen in-game.
?? Installation
- Install Fabric Loader for your Minecraft version.
- Drop Fabric API and
elytra_hud_health-x.y.z.jar into /.minecraft/mods (client-side only).
- Launch Minecraft once to let the config file
config/elytra_health.json generate.
- Press the configured hotkey (default: bound to your existing ElytraBar key) or open via Mod Menu to access the UI.
?️ Configuration Highlights
| Setting |
Location |
Description |
scale, offsetX, offsetY |
Config screen / elytra_health.json |
Move and resize the HUD per your resolution |
showIcon, showProgressBar, showPercentage |
Same |
Toggle individual HUD elements |
soundsEnabled, showWarnings |
Same |
Enable ping sounds and chat notifications |
autoRemove + autoRemoveThreshold |
Same |
Auto unequip elytra when below threshold, warning 10% prior |
locale |
Config screen |
Cycle between EN / RU / UK / JA; defaults to Minecraft language or EN |
Tip: The config screen uses scrollable sections, a footer credit link, and a dedicated language button. "Done" applies immediately and saves the JSON file.
? Chat & Sound Alerts
- Below 50% / 25% durability: subtle bell sounds (configurable via
soundsEnabled).
- At 10% durability: localized chat warning + yellow highlight.
- At 0% durability: break sound and red chat alert.
- Auto-remove imminent: red chat warning if you're airborne.
- Hotbar full: localized error message if auto-remove finds no empty slot.
All chat messages are prefixed with [EHH] and translate according to the selected locale.
?️ Development
- Language files live in
src/main/resources/assets/elytrabar/lang/. Add more by copying en_us.json and updating Localization.java.
- Building:
./gradlew build (requires JDK 21+ or JDK 22 as configured in the repo).
- Testing: Launch the mod in a Fabric dev environment via
./gradlew runClient to quickly iterate on HUD tweaks.
- Code style: Vanilla-inspired UI uses manual
DrawContext rectangles. Comments are intentionally sparse to match the pixel-art workflow.
? Contributions & License
- Author: Risefall (concept + design) • README curated with ❤️ by the Elytra HUD Health maintainers.
- License: MIT (see
LICENSE).
Fly safe! ?
评论 0
登录后参与评分
还没有评论,来抢沙发吧