Better Compass Enhancer 模组
概述
本模组通过在游戏内物品栏中悬停时显示额外的有用信息,来增强磁石指南针的功能。它提供了一种更简洁且信息更丰富的方式来了解指南针的指向,无需在游戏中放置或跟随指南针即可掌握其目标位置。
功能
磁石数据检测
模组通过读取 NBT 数据自动识别物品是否为磁石指南针。如果指南针已链接到磁石,它将提取存储的坐标和维度信息。
坐标显示
当悬停在指南针上时,工具提示会显示磁石的精确存储坐标:
距离计算
模组使用三维欧几里得距离计算玩家与磁石之间的实时距离。
维度信息
工具提示还会显示磁石所在的维度:
- 主世界(Overworld)
- 下界(Nether)
- 末地(End)
如果玩家所处的维度与磁石不同,模组会在工具提示中以警告形式高亮显示此情况。
工具提示显示模式
模组包含多种显示模式,用于控制显示信息的详细程度:
- 仅显示坐标
- 坐标 + 距离
- 完整信息(坐标 + 距离 + 维度)
玩家可以通过按键绑定在这些模式之间切换。
可配置的按键绑定
- 可在游戏内控制设置菜单中更改按键绑定
- 默认按键:H
- 按下该键可循环切换可用的显示模式
行为特性
- 仅在客户端生效
- 无需任何服务端更改
- 不干扰原版游戏玩法机制
- 仅修改具有有效 NBT 数据的磁石指南针的工具提示
- 安全处理缺失或无效的数据,不会报错
用户体验
本模组在保留原版风格的同时,添加了微妙但强大的信息辅助功能。它设计为轻量级、无侵入性且直观易用,帮助玩家更高效地追踪磁石,并一目了然地了解指南针的目标位置。
Better Compass Enhancer Mod
Overview
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:
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧