Fabric 版本即将推出,关注本项目以便在新更新发布时收到通知!
Floppy HUD 是一款面向 Minecraft NeoForge 1.21.1 的纯客户端 HUD 转换模组。它用一款怀旧且功能完整的复古用户界面完全替换了原版 Minecraft 界面,该界面灵感源自传奇的 1993 年《Doom》共享软件版本。
此模组是官方 2019 年愚人节 Minecraft 版本「3D Shareware v1.34」中 HUD 的移植版,并添加了新功能。
功能特性
- 经典面板: 一个自定义的、完全透明的 256x64 复古快捷栏面板,完美贴合在屏幕底部。
- 实时 3D 玩家面部: HUD 正中央有一个完全动画化的 3D 玩家面部渲染模型。该模型采用自定义旋转算法,模拟“环顾四周”的效果,同时精确冻结游戏世界中实体的碰撞箱。
- 动态像素级精准状态条:
- 饥饿值: 经典的肉块图标,随着你饥饿程度的增加,会以像素为单位逐片“切片”消失,使用精确的边界框 UV 数学计算。
- 氧气值: 自定义的气泡图标,下潜至水下时会无缝出现并逐渐缩小。
- 简洁文本与翻译支持: 原生支持 Minecraft 本地化系统(
HEALTH 和 ARMOR 文本可完全翻译),并具备动态百分比追踪功能。
- 无缝原版集成: 自动调整原版叠加层(如经验等级和物品名称)以适应新布局,并通过自定义 Mixins 和 NeoForge 事件总线安全地移除冲突的原版 HUD 元素(护甲、食物、生命值)。
安装说明
由于这是一款仅客户端模组,因此无需安装在服务器上。
- 确保已安装 NeoForge 1.21.1。
- 从 Releases 选项卡下载最新的
.jar 文件。
- 将模组放入
.minecraft/mods 文件夹中。
- 启动游戏,享受类 Doom 风格的 HUD!
幕后技术(面向开发者)
本模组构建于对清洁、现代渲染实践和优化代码结构的重点关注之上:
- GuiGraphics 与 Z 轴层级: 利用现代的
GuiGraphics.blit 和矩阵栈平移 (pose().translate) 实现完美的 Z 轴排序和 Alpha 混合。
- 智能 UI 数学运算: 摒弃了原版 1.14 版本中容易出错的整数除法陷阱,转而采用纯浮点数百分比计算来实现 UI 缩放效果。
- 安全覆盖: 结合使用
@Mixin(Gui.class) 在发生前直接取消不必要的原版渲染调用,以及 RenderGuiLayerEvent.Pre 来安全地移动必要的原版文本元素,而不会破坏其他模组。
本地化
本模组原生支持 Minecraft 的 .json 语言系统。目前支持 en_us、en_gb、pt_pt 和 pt_br。若要添加你所在语言的翻译,只需在模组的资源文件夹中创建一个新的语言文件(例如 es_es.json),并包含以下键值:
{
"gui.floppyhud.health": "HEALTH",
"gui.floppyhud.armor": "ARMOR"
}
Fabric version coming soon, follow the project to get notified when a new update drops!
Floppy HUD is a total client-side HUD conversion mod for Minecraft NeoForge 1.21.1. It completely replaces the vanilla Minecraft interface with a nostalgic, fully functional retro UI inspired by the legendary 1993 Doom shareware release.
This mod is a port of the HUD from the official April Fools 2019 Minecraft version '3D Shareware v1.34' with new features.
Features
- The Classic Panel: A custom, fully transparent 256x64 retro hotbar panel that anchors beautifully to the bottom of the screen.
- Live 3D Player Face: A fully animated, 3D rendering of the player's face right in the center of the HUD. The model features custom rotation math to simulate "looking around" while perfectly freezing the actual entity's hitboxes in the game world.
- Dynamic Pixel-Perfect Status Bars:
- Hunger: A classic meat shank icon that gradually slices itself away pixel-by-pixel as you starve, using exact bounding-box UV math.
- Oxygen: A custom bubble icon that seamlessly appears and shrinks when diving underwater.
- Clean Text & Translations: Features native Minecraft localization support (fully translatable
HEALTH and ARMOR text) and dynamic percentage tracking.
- Seamless Vanilla Integration: Automatically shifts vanilla overlays (like XP levels and item names) to fit the new layout, while safely assassinating conflicting vanilla HUD elements (Armor, Food, Health) using custom Mixins and the NeoForge Event Bus.
Installation
Since this is a client-side only mod, it does not need to be installed on servers.
- Ensure you have NeoForge 1.21.1 installed.
- Download the latest
.jar file from the Releases tab.
- Drop the mod into your
.minecraft/mods folder.
- Boot up the game and enjoy the Doom-like HUD!
Under the Hood (For Developers)
This mod was built with a heavy focus on clean, modern rendering practices and optimized code structure:
- GuiGraphics & Z-Layers: Utilizes modern
GuiGraphics.blit and matrix stack translations (pose().translate) for flawless Z-layer sorting and Alpha Blending.
- Smart UI Math: Drops the buggy vanilla 1.14 integer-division traps in favor of pure float percentage calculations for UI shrinking effects.
- Safe Overrides: Uses a combination of
@Mixin(Gui.class) to outright kill unnecessary vanilla rendering calls before they happen, and RenderGuiLayerEvent.Pre to safely shift necessary vanilla text elements without breaking other mods.
Localization
The mod natively supports Minecraft's .json language system. It currently has support for en_us; en_gb; pt_pt and pt_br. To add a translation for your language, simply create a new language file (e.g., es_es.json) in the mod's asset folder with the following keys:
{
"gui.floppyhud.health": "HEALTH",
"gui.floppyhud.armor": "ARMOR"
}
评论 0
登录后参与评分
还没有评论,来抢沙发吧