DuraHUD
三个你经常打开菜单查看的内容,现在直接显示在 HUD 上。
你的盔甲还剩多少耐久、你还携带了多少药水、以及你的效果还有多久结束——每一个都有独立的显示面板,并且你可以按照自己的喜好放置和样式化它们。
完全客户端运行。服务器端无需安装任何东西,适用于你游玩的任何服务器。
耐久度
头盔、胸甲、护腿、靴子、主手和副手——采用颜色编码,一眼就能看出哪些需要修理。
完整模式 — 图标、耐久度条、数字,可选显示物品名称:
[helmet] ██████████░░░ 86%
[chestplate] ██████░░░░░░░ 44%
[leggings] ██░░░░░░░░░░░ 12%
[boots] ████████░░░░░ 63%
迷你模式 — 图标和一个数值,紧凑间距,适合想要节省屏幕空间的人:
[helmet] 86% [chestplate] 44% [leggings] 12% [boots] 63%
颜色分段
绿色、黄色和红色不是硬编码的。最多可以添加 五个分段,每个分段都有自己的阈值和十六进制颜色,并选择 阈值使用的单位:
- 百分比 — 高于 50% 为绿色,高于 25% 为黄色,低于则为红色
- 耐久点数 — 剩余使用次数高于 300 为绿色,高于 100 为黄色
当你希望一把耐久度为 20%(剩余 312 次使用)的钻石镐看起来不像一把耐久度为 20%(仅剩 6 次使用)的金剑那样令人担忧时,点数模式正是你想要的。
效果计时器
原版效果图标的替代品,屏幕上实际显示了剩余时间。四种样式:
| 样式 | 显示内容 |
|---|---|
| 详细 | 图标 + 效果名称 + 等级 + 剩余时间 + 持续时间条 |
| 紧凑 | 图标 + 旁边的时间 |
| 仅图标 | 仅有图标,每个图标带有一条细长的持续时间条 |
| 图标 + 时间 | 时间绘制在图标上方,是四种中最小的 |
- 隐藏原版效果 — 关闭游戏自带的效果图标,避免重复显示(默认开启)
- 时间格式:
1:26、4m/13s,或纯秒数 - 排序方式:即将结束的优先、剩余时间最长的优先、按名称排序,或将有益效果排在前面
- 等级以罗马数字显示(II, III),可切换
- 持续时间条使用效果自身的颜色;无限效果显示
∞
药水计数器
无需打开背包即可知道库存中剩余什么。
- 所有药水 — 你携带的每种药水类型及其数量。喷溅型和滞留型分别计数,且你可以限制显示的行数。
- 选定的效果 — 最多选择 4 种效果(例如抗性提升和力量),仅统计这些效果。
- 未携带的药水不占用空间:行会根据你的库存动态出现和消失。
- 效果列表读取自游戏自带的药水注册表,因此模组添加的药水也会显示。
- 经验瓶 拥有独立的计数,位于列表的顶部或底部。
位置设置
这三个显示面板各自拥有独立的设置:
- 位置 — 8 个锚点加上 X/Y 偏移量
- 大小 — 0.5x 到 2.0x
- 方向 — 垂直堆叠或水平排列
- 背景 — 开/关,透明度可调
- 实时预览 — 设置界面会在其实际出现的位置绘制所有三个 HUD,这样你就不必关闭界面来检查效果了
控制键
| 按键 | 操作 |
|---|---|
H |
切换耐久度 HUD |
K |
打开设置 |
两者均可从「选项 → 控制」重新绑定。安装了 Mod Menu 后,也可以从模组列表打开设置界面。
设置保存在 config/durahud.json 中,可以直接手动编辑。
兼容性
- 仅客户端,无需服务器端安装
- 1.21.11 和 1.21.4 版本 完全不使用 Mixin —— 没有对原版类进行任何补丁。1.21.1 版本使用了一个小型 mixin,仅用于隐藏原版效果图标,因为该版本没有 HUD 层 API 来实现此功能。
- 包含英文和土耳其语翻译
要求
- Fabric Loader
- Fabric API
- Mod Menu — 可选
版本
提供 1.21.11、1.21.4 和 1.21.1 的独立构建文件。请选择与你的 Minecraft 版本匹配的文件。
DuraHUD
Three things you keep opening menus for, moved onto your HUD.
How close your armor is to breaking, how many potions you are still carrying, and how long your effects have left — each one its own display, each one placed and styled the way you want it.
Fully client-side. Nothing to install on the server, works on any server you play on.
Durability
Helmet, chestplate, leggings, boots, main hand and off hand — color-coded so one glance tells you what needs repairing.
Full — icon, durability bar, numbers, optionally the item name:
[helmet] ██████████░░░ 86%
[chestplate] ██████░░░░░░░ 44%
[leggings] ██░░░░░░░░░░░ 12%
[boots] ████████░░░░░ 63%
Mini — icon and one value, tight spacing, for people who want their screen back:
[helmet] 86% [chestplate] 44% [leggings] 12% [boots] 63%
Color bands
Green, yellow and red are not hardcoded. Add up to five bands, each with its own threshold and its own hex color, and pick which unit the thresholds use:
- Percentage — green above 50%, yellow above 25%, red below
- Durability points — green above 300 remaining uses, yellow above 100
Points mode is the one you want when a diamond pickaxe at 20% (312 uses left) should not look as alarming as a golden sword at 20% (6 uses left).
Effect timer
A replacement for the vanilla effect icons, with the remaining time actually written on screen. Four styles:
| Style | Shows |
|---|---|
| Detailed | icon + effect name + level + time left + duration bar |
| Compact | icon + time beside it |
| Icons only | just the icons, each with a thin duration bar |
| Icon + time | time drawn over the icon, the smallest of the four |
- Hide vanilla effects — switch the game's own effect icons off so nothing is shown twice (on by default)
- Time format:
1:26,4m/13s, or plain seconds - Order: ending soonest, longest left, by name, or helpful effects first
- Levels as roman numerals (II, III), toggleable
- The duration bar uses the effect's own color; infinite effects show
∞
Potion counter
Know what is left in your inventory without opening it.
- All potions — every potion type you carry, with its count. Splash and lingering are counted separately, and you can cap how many rows are shown.
- Picked effects — choose up to 4 effects (say, Fire Resistance and Strength) and only those are counted.
- Potions you are not carrying take up no space: rows appear and disappear with your inventory.
- The effect list is read from the game's own potion registry, so modded potions show up too.
- XP bottles get their own count, placed at the top or bottom of the list.
Placement
Each of the three displays has its own settings:
- Position — 8 anchor points plus X/Y offset
- Size — 0.5x to 2.0x
- Direction — stacked vertically or laid out horizontally
- Background — on/off with adjustable opacity
- Live preview — the settings screen draws all three HUDs where they will actually appear, so you never have to close it to check
Controls
| Key | Action |
|---|---|
H |
Toggle the durability HUD |
K |
Open settings |
Both are rebindable from Options → Controls. With Mod Menu installed, the settings screen also opens from the mod list.
Settings live in config/durahud.json and can be edited by hand.
Compatibility
- Client-side only, no server install needed
- The 1.21.11 and 1.21.4 builds use no mixins at all — nothing is patched into vanilla classes. The 1.21.1 build uses a single small mixin, only to hide the vanilla effect icons, because that version has no HUD layer API to do it with.
- English and Turkish translations included
Requirements
- Fabric Loader
- Fabric API
- Mod Menu — optional
Versions
Separate builds for 1.21.11, 1.21.4 and 1.21.1. Pick the file that matches your Minecraft version.
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
下载 DuraHUD
1.4.0
新增 Minecraft 版本
- 支持 26.1、26.1.1、26.1.2、26.2 和 26.3 的构建版本
新增语言
- 新增法语、德语、西班牙语和意大利语,与英语和土耳其语一同提供
修复
- 设置屏幕中的实时预览不再在小窗口中遮挡按钮
- 对未能完整显示而被截断的按钮标签进行了缩短处理(如“Hide undamageable”、“Threshold type: Points”、“Mode: Picked effects”,以及部分土耳其语标签)
- 药水计数器现在从右下角开始显示,因此在多种效果同时激活时不再与效果计时器重叠(现有设置的相对位置保持不变)
- 按键绑定使用游戏内的按键常量,以适配 Minecraft 26.3 切换至 SDL 后的需求
1.3.0 — 首次发布
耐久度 HUD
- 护甲、主手和副手的耐久度显示在 HUD 上
- 两种样式:完整(图标 + 条 + 数字)和迷你(图标 + 数值)
- 2 到 5 个颜色带,每个都有各自的阈值和十六进制颜色
- 阈值可按百分比或剩余耐久度点数衡量
- 始终显示 / 仅在受损时显示 / 仅在低耐久时显示
- 五种数字样式,可切换的图标、名称、条和背景
效果计时器
- 四种样式:详细、紧凑、仅图标、图标 + 时间
- 可选择隐藏原版的效果图标
- 时间格式为
1:26、4m/13s或秒数;无限效果显示为∞ - 按时间、名称或类别排序;罗马数字等级;持续时间条
- 将任何你不想在计时器上看到的效果加入黑名单
药水与经验瓶计数器
- 所有药水,或最多四个选定的效果
- 仅显示背包中实际存在的物品
- 喷溅药水和滞留药水分别计数
- 经验瓶数量显示在列表顶部或底部
通用功能
- 每个 HUD 拥有独立的锚点、偏移量、缩放比例、方向和背景
- 设置界面中实时预览所有三个 HUD
- 支持 Mod Menu,可重新绑定按键(
H切换,K设置) - 提供英文和土耳其语翻译
- 适用于 Minecraft 1.21.11、1.21.4 和 1.21.1 的构建版本
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
一个基于构建器的 Minecraft 配置库!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
添加睡袋和吊床,分别用于便携性和昼夜转换,同时不会设置新的出生点。共有16种颜色可选!
评论 0
登录后参与评分
还没有评论,来抢沙发吧