The mod adds tooltip display of the lodestone’s coordinates, distance, and dimension when hovering over a compass, with switchable display modes via a configurable keybind
This mod enhances the Lodestone Compass by displaying additional useful information when hovering over it in the inventory. It provides a cleaner and more informative way to understand where the compass is pointing without needing to place or follow it in-game.
Features
Lodestone Data Detection
The mod automatically detects when an item is a Lodestone Compass by reading its NBT data. If the compass is linked to a lodestone, it extracts the stored coordinates and dimension information.
Coordinates Display
When hovering over the compass, the tooltip shows the exact stored coordinates of the lodestone:
- X, Y, Z position of the target block
Distance Calculation
The mod calculates the real-time distance between the player and the lodestone using 3D Euclidean distance.
- Displays the distance in blocks
- Updates dynamically based on the player’s position
Dimension Information
The tooltip also shows which dimension the lodestone is located in:
- Overworld
- Nether
- End
If the player is in a different dimension than the lodestone, the mod highlights this as a warning in the tooltip.
Tooltip Display Modes
The mod includes multiple display modes that control how much information is shown:
- Coordinates only
- Coordinates + Distance
- Full info (Coordinates + Distance + Dimension)
The player can switch between these modes using a keybind.
Configurable Keybind
- The keybind can be changed in the in-game controls settings menu
- Default key: H
- Pressing the key cycles through the available display modes
Behavior
- Works only on the client side
- Does not require any server-side changes
- Does not interfere with vanilla gameplay mechanics
- Only modifies the tooltip of Lodestone Compasses with valid NBT data
- Handles missing or invalid data safely without errors
User Experience
The mod keeps the vanilla feel while adding subtle but powerful information. It is designed to be lightweight, non-intrusive, and intuitive, helping players track lodestones more efficiently and understand their compass targets at a glance.