Direction HUD
概览
Direction HUD 模组直接在屏幕上显示有用的玩家信息,例如朝向、世界时间、坐标等。所有 HUD 元素均可配置,并可通过命令开启或关闭。状态会在游戏会话之间保存。
功能
-
方向显示 在左上角显示基本方向(N、S、E、W)和中间方向(NE、NW、SE、SW)。
-
Minecraft Days 显示当前世界中已过去的天数(左上角)。
-
时间显示 同时显示:
- 现实时间(24小时制)
- 游戏内时间(12小时制,带 AM/PM 以及太阳/月亮图标),位于右上角
-
坐标显示 在快捷栏上方显示当前的 X、Y、Z 坐标。
-
生物群系显示 在坐标旁边显示当前所在的生物群系。
-
坐标保存 使用自定义名称保存当前位置,以便稍后检索。
-
可切换功能 每个 HUD 元素都可以通过命令独立启用或禁用。
-
持久化配置 所有偏好设置和已保存的坐标存储在:
config/direction-hud.json -
极简 UI 清晰易读的叠加层,带有半透明背景以确保可见性。
工作原理
1. 初始化
- 模组从
config/direction-hud.json加载配置 - 使用
/dh命名空间注册命令,以避免与其他模组冲突
2. 方向计算
- 使用玩家的偏航角(yaw)来确定方向
- 360° 圆环被划分为 8 个扇区(每个 45°):
- N、NE、E、SE、S、SW、W、NW
3. 渲染
- 启用的 HUD 元素在其各自的屏幕位置上渲染:
- 左上角:方向 + Minecraft Days
- 右上角:时间(现实 + 游戏内)
- 快捷栏上方:坐标 + 生物群系
- 每个元素都包含半透明背景以提高可读性
4. 命令处理
- 所有功能均通过
/dh命令控制 - 更改会立即保存到配置文件
命令
方向
/dh direction <on|off>
切换方向显示
天数
/dh days <on|off>
切换 Minecraft Days 显示
时间
/dh time <on|off>
切换现实时间和游戏内时间显示
坐标
/dh coords <on|off>
切换坐标显示
/dh coords save <name>
使用自定义名称保存当前坐标
/dh coords list
列出所有已保存的坐标
生物群系
/dh biome <on|off>
切换生物群系显示
配置
该模组使用基于 JSON 的配置文件:
config/direction-hud.json
此文件存储:
- 每个 HUD 元素的启用/禁用状态
- 带有自定义名称的已保存坐标
更新日志
[3.2.1] - 29-04-2026
功能
- 添加了 Minecraft 天数计数器
- 添加了现实时间和游戏内时间显示
- 添加了坐标和生物群系显示
- 添加了坐标保存和列表系统
- 引入了通过命令进行单功能切换的功能
- 将配置从
.properties迁移到.json - 更新命令命名空间为
/dh以避免模组冲突
备注
- 所有设置在游戏会话之间保持持久
- 设计为轻量级且无侵入性
- 兼容大多数 Fabric 整合包
Direction HUD
Overview
The Direction HUD mod displays useful player information such as facing direction, world time, coordinates, and more directly on the screen. All HUD elements are configurable and can be toggled on or off using commands. The state is saved between game sessions.
Features
-
Direction Display Shows cardinal (N, S, E, W) and intercardinal directions (NE, NW, SE, SW) in the top left corner.
-
Minecraft Days Displays the number of days passed in the current world (top left).
-
Time Display Shows both:
- Real-world time (24-hour format)
- In-game time (12-hour format with AM/PM and sun/moon icons) in the top right corner
-
Coordinate Display Shows current X, Y, Z coordinates above the hotbar.
-
Biome Display Shows the current biome next to the coordinates.
-
Coordinate Saving Save your current location with a custom name and retrieve it later.
-
Toggleable Features Each HUD element can be enabled or disabled independently using commands.
-
Persistent Config All preferences and saved coordinates are stored in:
config/direction-hud.json -
Minimalist UI Clean, readable overlays with subtle backgrounds for visibility.
How It Works
1. Initialization
- The mod loads configuration from
config/direction-hud.json - Commands are registered using the
/dhnamespace to avoid conflicts with other mods
2. Direction Calculation
- The player’s yaw angle is used to determine direction
- The 360° circle is divided into 8 segments (45° each):
- N, NE, E, SE, S, SW, W, NW
3. Rendering
- Enabled HUD elements are rendered in their respective screen positions:
- Top Left: Direction + Minecraft days
- Top Right: Time (real + in-game)
- Above Hotbar: Coordinates + biome
- Each element includes a semi-transparent background for readability
4. Command Handling
- All features are controlled via
/dhcommands - Changes are saved instantly to the config file
Commands
Direction
/dh direction <on|off>
Toggle direction display
Days
/dh days <on|off>
Toggle Minecraft days display
Time
/dh time <on|off>
Toggle real-world and in-game time display
Coordinates
/dh coords <on|off>
Toggle coordinate display
/dh coords save <name>
Save current coordinates with a custom name
/dh coords list
List all saved coordinates
Biome
/dh biome <on|off>
Toggle biome display
Configuration
The mod uses a JSON-based configuration file:
config/direction-hud.json
This file stores:
- Enabled/disabled state for each HUD element
- Saved coordinates with custom names
Changelog
[3.2.1] - 29-04-2026
Features
- Added Minecraft day counter
- Added real-world and in-game time display
- Added coordinate and biome display
- Added coordinate saving and listing system
- Introduced per-feature toggles via commands
- Migrated config from
.propertiesto.json - Updated command namespace to
/dhto avoid mod conflicts
Notes
- All settings persist between game sessions
- Designed to be lightweight and non-intrusive
- Compatible with most Fabric-based modpacks
下载 Direction HUD
下载 Direction HUD
下载 Direction HUD
下载 Direction HUD
下载 Direction HUD
下载 Direction HUD
下载 Direction HUD
下载 Direction HUD
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
[5.0.2] 26.3 - 11-11-2026
特性
- 实时切换:现实时间与游戏时间现在可以独立切换。
更改
- Minecraft 26.3 移植:更新至 Fabric Loader 0.20.1、Fabric API 0.166.0+26.3 以及 Loom 1.19-SNAPSHOT。
- 版本更新:mod_version 已更新为 5.0.2。
命令
/dh rtime <on|off>:在游戏time切换之外,独立切换现实时间显示。
[5.0.1] 26.3 - 2026年10月9日
已更改
- Minecraft 26.3 移植:将模组从 26.2 更新到 26.3。
- Fabric Loader:0.19.5(由 0.19.3 升级)。
- Fabric API:0.162.0+26.3(由 0.155.2+26.2 升级)。
- Loom:锁定为稳定版 1.17.21,以确保与 Gradle 9.5.1 构建的可靠性。
- 版本号提升:
mod_version已更新至 5.0.1。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧