指南针坐标 —— 一个轻量级的 Paper/Spigot 插件,仅在你手持指南针时显示你的坐标。它通过操作栏(action bar)渲染坐标,并利用 ProtocolLib 模拟 reducedDebugInfo 来切换 F3 调试界面的坐标可见性。当手中没有指南针时,所有位置(包括 F3 界面)的坐标都会隐藏。
功能
- 手持指南针时(任意手)在操作栏显示坐标。
- 通过 ProtocolLib 开关 F3 坐标显示,无需修改服务器配置文件。
- 完全可自定义消息格式、颜色、更新间隔以及方向标签。
要求
- Java 17+
- 与你的 Minecraft 版本匹配的 Paper 或 Spigot
- 服务器上安装 ProtocolLib
安装步骤
- 将插件的
.jar文件放入服务器的plugins文件夹中。 - 确保已安装并兼容 ProtocolLib。
- 启动或重启服务器。
- 根据需要编辑
plugins/CompassCoords/config.yml,然后重启服务器。 - 执行命令:
/gamerule reducedDebugInfo
行为说明:
- 仅在手握指南针时显示坐标。
- 当未手持指南针时,插件会通过 ProtocolLib 在操作栏和 F3 界面中隐藏坐标。
配置文件
# 此文件解释了每个选项。请将键复制到 `plugins/CompassCoords/config.yml` 中。
#
# `text` 值中可用的占位符:
# %x, %y, %z - 玩家坐标(整数)
# %dx, %dy, %dz - 保留一位小数的玩家坐标
# %world - 世界名称
# %yaw, %pitch - 玩家旋转角度(整数)
# %dyaw, %dpitch - 保留一位小数的玩家旋转角度
# %dir - 基于偏航角推导出的基本方向(使用下方的 `directions` 映射)
#
# 颜色代码:
# 使用 `&` 代码(例如 &6, &r)。它们将在运行时转换为 § 代码。
# 如果你愿意,也可以直接编写 § 代码。
# 是否启用该插件。
enabled: true
# 操作栏更新的频率(以刻为单位)。20 刻 = 1 秒。
# 数值越低,更新越频繁,但可能会产生更多视觉干扰。
delay: 5
# 手持指南针时显示的操作栏消息格式。
# 组合上述任何占位符。颜色:使用 & 代码或 § 代码。
# 整数坐标示例:
# "&6%dir&r | &6X:&r %x &6Y:&r %y &6Z:&r %z"
# 一位小数坐标示例:
# "§6%dir§r | §6X:§r %dx §6Y:§r %dy §6Z:§r %dz"
text: "§6%dir§r | §6X:§r %x §6Y:§r %y §6Z:§r %z"
# %dir 使用的 8 个罗盘方向的标签。
# 如果需要,可以根据你的语言或风格进行自定义。
directions:
north: "N"
northeast: "NE"
east: "E"
southeast: "SE"
south: "S"
southwest: "SW"
west: "W"
northwest: "NW"
Compass Coordinates — a lightweight Paper/Spigot plugin that shows your coordinates only while you are holding a compass. It renders coordinates in the action bar and toggles F3 coordinates visibility via a “fake” reduceDebugInfo using ProtocolLib. When no compass is in hand, coordinates are hidden everywhere (including F3).
Features
- Action bar coordinates while holding a compass (either hand).
- F3 coordinates on/off via ProtocolLib without touching server configs.
- Fully customizable message format, colors, update interval, and direction labels.
Requirements
- Java 17+
- Paper or Spigot matching your Minecraft version
- ProtocolLib on the server
Installation
- Put the plugin .jar into your server’s plugins folder.
- Ensure ProtocolLib is installed and compatible.
- Start or restart the server.
- Edit plugins/CompassCoords/config.yml if needed and restart.
- Run the command:
/gamerule reducedDebugInfo
Behavior:
- Coordinates appear only while a compass is held.
- When no compass is held, the plugin hides coordinates in both Action Bar and F3 via ProtocolLib.
Config file
# This file explains every option. Copy the keys to `plugins/CompassCoords/config.yml`.
#
# Placeholders available in the `text` value:
# %x, %y, %z - player coordinates (integers)
# %dx, %dy, %dz - player coordinates with one decimal
# %world - world name
# %yaw, %pitch - player rotation (integers)
# %dyaw, %dpitch - player rotation with one decimal
# %dir - cardinal direction derived from yaw (uses `directions` mapping below)
#
# Color codes:
# Use `&`-codes (e.g. &6, &r). They will be converted to §-codes at runtime.
# You can also write §-codes directly if you prefer.
# Whether the plugin is enabled at all.
enabled: true
# How often to update the Action Bar (in ticks). 20 ticks = 1 second.
# Lower values update more frequently but may be noisier.
delay: 5
# The Action Bar message format shown while holding a compass.
# Combine any placeholders listed above. Colors: use &-codes or §-codes.
# Example with integer coords:
# "&6%dir&r | &6X:&r %x &6Y:&r %y &6Z:&r %z"
# Example with one-decimal coords:
# "§6%dir§r | §6X:§r %dx §6Y:§r %dy §6Z:§r %dz"
text: "§6%dir§r | §6X:§r %x §6Y:§r %y §6Z:§r %z"
# Labels for the 8 compass directions used by %dir.
# Customize them to your language or style if you want.
directions:
north: "N"
northeast: "NE"
east: "E"
southeast: "SE"
south: "S"
southwest: "SW"
west: "W"
northwest: "NW"
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
下载 Compass Сoordinates
需要 ProtocolLib 5.3.0 或更高版本
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧