一款 Minecraft 模组,用于重新设计部分 HUD(抬头显示)元素。最显著的是,它将小型生命值显示替换为大型生命值条。
所有新增的 HUD 元素均可自由移动以符合个人偏好,并且可以选择性地启用或禁用,以便在需要时保留原版 HUD 元素。

生命值条
生命值条以条形图形式显示当前生命值相对于玩家最大生命值的比例。 它还以覆盖层或条形图重色的形式显示再生、凋谢和中毒状态效果。
根据模组设置,吸收伤害也会显示在条形图的内部和/或后方。 还有一个设置可以限制添加的额外吸收伤害条的数量,以防止大量吸收伤害遮挡屏幕。
它还可以选择在条形图顶部以数字形式显示生命值和吸收伤害值。
空气、食物和坐骑生命值条
较小的条形图替代了原版的呼吸、饥饿和坐骑生命值显示。
如果激活了水下呼吸,呼吸条可以选择隐藏。 资源包也可以在激活水下呼吸时更改其纹理。
饥饿条显示饱和度和饥饿状态效果。请注意,饱和度显示可能不准确,因为包括单人服务器在内的原版服务器不会频繁向客户端发送饱和度更新。
坐骑生命值也可以选择以数字形式显示在条形图顶部。 此条形图独立于其他条形图,即不会像原版那样覆盖任何其他条形图。
其他功能
使用此模组可以重新排列两个原版 HUD 元素:“手持物品提示”,显示当前物品的名称;以及“消息”显示,显示一些持续时间较短的消息,例如附近存在怪物时无法睡觉。
这允许将这些显示移出新的条形图(尤其是大型生命值条)的视线范围。
安装说明
该模组目前仅提供 Fabric 版本。此外,运行此模组还需要 Fabric API。
要在游戏中更改此模组的设置,需要安装 Mod Menu 和 Cloth Config API。然后可以通过 Mod Menu 按常规方式访问配置界面。
资源包兼容性
所有元素都可以通过资源包进行广泛的重设计。例如,我制作了一个 RP 使其与 Dokucraft Dwarven RP 兼容(由于 Dokucraft 令人困惑的许可证,我无法分享):

杂项 RP 说明
生命值条的大小完全取决于 health.png 纹理的宽高比。
其高度假定为 32 个“HUD 像素”(物品大小的两倍),宽度由此计算得出。
例如,我的自定义 RP 使用 360x64 像素的纹理来获得双倍分辨率的生命值条,宽度为 180 个“HUD 像素”,而默认纹理大小为 184x32。
所有其他生命值条纹理应使用相同的尺寸,
或者对于如 wither.png 这样的覆盖层,将纹理的高度加到宽度上(且 32x32 纹理显然应保持正方形)。
类似地,其他条形图的大小也取决于其“主”纹理的宽高比,例如呼吸条的 breath.png。
如果纹理有 _0、_10 等变体,这些表示显示该纹理的条形图的最小值。
您可以使用任意数量的这些纹理,它们将被适当使用。
请注意,所有此类纹理必须来自同一个 RP,覆盖功能被故意禁用,
以便您可以选择任何您需要的级别,而不受基础纹理或其他 RP 的干扰。
如果您不需要不同的纹理,只需创建一个基础纹理和一个 _0 变体即可。
A Minecraft mod that restyles some HUD elements. Most notably, it replaces the small health display with a big health bar.
All new HUD elements can be freely moved around to suit one's preferences, and can also be selectively enabled or disabled to keep some vanilla HUD elements if desired.

Health Bar
The health bar show current health as a bar relative to the player's maximum health. It also shows the Regeneration, Wither, and Poison status effects as overlays or bar recolors.
Absorption is also displayed in and/or behind the bar, depending on mod settings. There's also a setting to limit the number of extra absorption bars added top prevent blocking the screen with tons of absorption health.
It also optionally displays health and absorption as a number on top of the bar.
Air, Food, and Mount Health Bars
Smaller bars replace the vanilla breath, hunger, and mount health displays.
The breath bar can optionally be hidden if water breathing is active. Resource packs can also change its texture with water breathing active.
The hunger bar shows saturation level and the Hunger status effect. Note that the saturation level is inaccurate, because vanilla servers, including the singleplayer server, do not send saturation updates to clients often.
Mount health can optionally be displayed as a number on top of the bar as well. This bar is independent of other bars, i.e. does not override any other bar like in vanilla.
Other Features
Two vanilla HUD elements can be rearranged using this mod: the "held item tooltip" that shows the name of the current item, and the "messages" display which shows some short-lasting messages like being unable to sleep when there are monsters nearby.
This allows moving these displays out of the way of the new bars, especially the big health bar.
Installation Notes
This mod is currently only available for Fabric. It furthermore requires Fabric API to run.
To be able to change this mod's settings in game, Mod Menu and Cloth Config API need to be installed. The config screen can then be accessed as usual via Mod Menu.
Resource Pack Compatibility
All elements can be restyled extensively with resource packs. For example, I made a RP to make it fit in with the Dokucraft Dwarven RP (which I cannot share unfortunately due to Dokucraft's confusing licensing):

Misc RP Notes
The size of the health bar depends entirely on the aspect ratio of the health.png texture.
Its height is assumed to be 32 "HUD pixels" (two times the size of an item), and the width is calculated from that.
For example, my custom PR uses a texture of 360x64 pixels to get a double-resolution health bar with a width of 180 "HUD
pixels", while the default texture size is 184x32.
All other health bar textures should either use the same dimensions,
or in case of overlays like wither.png add the texture's height to the width
(and 32x32 textures should obviously stay square).
Similarly, other bars' sizes also depend on their "main" texture's aspect ratio, e.g. breath.png for the breath bar.
If a texture has some _0, _10 etc. variants, those represent the minimum value of that bar to show that texture.
You can use as many of these textures as desired, and they will all be used appropriately.
Note that all such textures must come from the same RP, overriding is deliberately disabled
so that you can choose whatever levels you need independent of the base textures or other RPs without interference.
If you don't want different textures, just make a base texture and a _0 variant.
下载 Njol's HUD
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Njol's HUD
下载 Njol's HUD
下载 Njol's HUD
下载 Njol's HUD
下载 Njol's HUD
下载 Njol's HUD
下载 Njol's HUD
已更新到 Minecraft 1.20.2
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧