Перейти к содержимому
Mineforgian

Direction HUD

The Direction HUD mod displays the player's current facing direction (North, South, East, West, etc.) on the top left corner of the screen.

Загрузки
3K
Подписчики
3
Обновлён
17 июля 2026 г.
Лицензия
All-Rights-Reserved

Опубликован 18 августа 2025 г.

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 /dh namespace 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 /dh commands
  • 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 .properties to .json
  • Updated command namespace to /dh to avoid mod conflicts

Notes

  • All settings persist between game sessions
  • Designed to be lightweight and non-intrusive
  • Compatible with most Fabric-based modpacks

Ченджлог

4.0.1Релиз26.2 · 17 июля 2026 г.

[4.0.1] 26.2 - 18-07-2026

Features

  • Death Coordinates List: List all saved death coordinates.
  • Delete saved coordinates: Delete a specific saved coordinate.
  • HUD Placement: Customize the placement of the HUD elements.

Commands

  • /dh death coords list: List all saved death coordinates.
  • /dh coords delete <name>: Delete a specific saved coordinate.
  • /dh hud placement <top|bottom>: Set the placement of the HUD elements.

Note

  • Depends on Fabric API >= 0.155.2+26.2.
3.2.1Релиз26.1.2 · 29 апреля 2026 г.

[3.2.1] 26.1.2 - 29-04-2026

Features

  • Direction Display: Shows the cardinal direction (North, South, East, West, etc.) 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 (24h format) and in-game time (12h 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 list saved locations later.
  • Toggleable Features: All HUD elements can be toggled on or off using commands.
  • Persistent Config: Your preferences and saved coordinates are stored in config/direction-hud.json.

Commands

Commands has been changed to resolve conflicts with other mods.

  • /dh direction <on|off>: Toggle direction display.
  • /dh days <on|off>: Toggle Minecraft days display.
  • /dh time <on|off>: Toggle time display.
  • /dh coords <on|off>: Toggle coordinate display.
  • /dh biome <on|off>: Toggle biome display.
  • /dh coords save <name>: Save current coordinates with a given name.
  • /dh coords list: List all saved coordinates.
2.2.1Релиз26.1.2 · 21 апреля 2026 г.

[2.2.1] 26.1.2 - 22-04-2026

  • Simple port for 26.1.2
1.3.1Релиз1.21.11 · 1 января 2026 г.

Happy New Year

1.3.1 Update

  • Updated to 1.21.11.
  • Added feature to display no days played in Minecraft. It is a toggleable feature you can enable it by running /days on or disabled it using /days off.
  • Registers the in-game commands to toggle features:
    • /direction on|off
    • /days on|off
1.0.0Релиз1.21.8, 1.21.9, 1.21.10 · 18 августа 2025 г.

Initial Release.

Комментарии

Загружаем…