TrackerCompass
适用于 Fabric 的、功能丰富的追捕追踪指南针模组。
命令与权限
| 命令 | 权限 | 描述 |
|---|---|---|
| /trackercompass | trackercompass.tracker | 切换追踪指南针 |
| /trackercompass <player> | trackercompass.tracker | 追踪指定名称的玩家 |
| /trackercompass reload | trackercompass.reload (op 4) | 重新加载模组配置 |
| /tracker, /compass, /hunt | trackercompass.tracker | 用于切换或追踪的别名 |
配置
配置文件位于 config/trackercompass.json。
{
// 指南针方向更新的间隔刻数(10 = 0.5秒)
"compass_update_ticks": 10,
// 右键指南针以打开玩家选择 GUI
"enable_tracker_gui": true,
// 在快捷栏上方渲染动作栏追踪信息行
"action_bar_info": true,
// 仅在手持指南针时渲染动作栏信息
"hold_compass_for_action_bar": true,
// 显示到被追踪目标的距离(米)
"show_distance": true,
// 显示指向目标的定向箭头(↑, ↗, →, ↘, ↓, ↙, ←, ↖)
"show_direction_arrow": true,
// 当目标处于不同维度时,显示其所在维度
"show_dimension": true,
// 当观察者和目标处于同一维度时,也显示维度标签
"show_same_dimension": false,
// 玩家加入时自动给予追踪指南针
"give_compass_by_default": false,
// 在追踪选择 GUI 中显示离线玩家
"show_offline_players": true,
// 每个维度键的占位符颜色
"dimension_colors": {
"minecraft:overworld": "<green>",
"minecraft:the_nether": "<red>",
"minecraft:the_end": "<light_purple>"
},
// 优先级排序的目标解析规则。优先级最高的启用条件且匹配的玩家胜出,并选择同维度内最近的匹配项。条件通过 predicate-api 对每个候选者进行测试。
"tracker_conditions": [
{
// 特殊 ID:追踪通过 GUI 选定的玩家
"id": "selected_target",
// 恒真谓词;可替换为标签/游戏模式/权限等
"condition": { "type": "always_true" },
// 当此条件为活动状态时,在动作栏渲染的文本
"actionbar_format": "${player}<red>${offline} <gray>${distance}m <aqua>${arrow} ${dimension}",
// 平局时优先级更高者胜出
"priority": 100,
"enabled": true
}
],
// 追踪 GUI 顶部显示的标题
"gui_title": "Track Player",
// 追踪 GUI 中每个玩家条目的标题
"player_title": "<white>${player}",
// 每个玩家条目下方显示的描述行(每行一个字符串)
"player_lore_lines": [
"<red>${offline}",
"${dimension}",
"<gray>${distance}m",
"<yellow>Click to track"
]
}
占位符
可在 actionbar_format、player_title 和 player_lore_lines 中使用:
| 占位符 | 解析结果 |
|---|---|
${player} |
目标玩家的名称 |
${offline} |
当目标离线时为 Offline ,否则为空 |
${online} |
当目标在线时为 Online,否则为空 |
${dimension} |
目标的维度标签,若同维度且 showSameDimension 为关闭则为空白 |
${distance} |
观察者与目标之间的方块距离 |
${arrow} |
指向目标的定向箭头(↑, ↗, →, ↘, ↓, ↙, ←, ↖) |
TextPlaceholderAPI 占位符使用 %namespace:name% 语法(与上述 ${...} 占位符不同)。普通的 %player:...% 占位符针对手持指南针的观察者进行解析。每个 player:* 占位符都会镜像到一个 target:* 命名空间中,该命名空间针对被追踪的玩家进行解析,因此请使用 %target:name%、%target:health% 等来显示目标的数据。
格式字符串
actionbar_format、player_title 和 player_lore_lines 由 TextPlaceholderAPI 解析为文本格式字符串。支持其中记录的所有占位符和标签,包括:
- 默认占位符(例如
%player:name%、%player:displayname%,或被追踪玩家的%target:name%) - 模组注册的占位符(任何注册了占位符的模组)
- QuickText 标签(
<red>、<hover show_text 'x'>等) - 简化文本格式标签(相同的标签,采用冒号风格的参数)
TrackerCompass
Feature-rich Manhunt tracker compass mod for Fabric.
Commands and permissions
| Command | Permission | Description |
|---|---|---|
| /trackercompass | trackercompass.tracker | Toggles the tracker compass |
| /trackercompass <player> | trackercompass.tracker | Tracks the named player |
| /trackercompass reload | trackercompass.reload (op 4) | Reloads the mod config |
| /tracker, /compass, /hunt | trackercompass.tracker | Aliases that toggle or track |
Configuration
Config file is found at config/trackercompass.json.
{
// Ticks between compass direction updates (10 = 0.5s)
"compass_update_ticks": 10,
// Right-click the compass to open a player selection GUI
"enable_tracker_gui": true,
// Render the action bar tracking line above the hotbar
"action_bar_info": true,
// Only render the action bar while the player is holding the compass
"hold_compass_for_action_bar": true,
// Show distance in meters to the tracked target
"show_distance": true,
// Show a directional arrow (↑, ↗, →, ↘, ↓, ↙, ←, ↖) pointing to the target
"show_direction_arrow": true,
// Show the target's dimension when they are in a different dimension
"show_dimension": true,
// Also show the dimension label when target and observer share a dimension
"show_same_dimension": false,
// Give a tracker compass to players automatically when they join
"give_compass_by_default": false,
// Show offline players in the tracker selection GUI
"show_offline_players": true,
// Placeholder color for each dimension key
"dimension_colors": {
"minecraft:overworld": "<green>",
"minecraft:the_nether": "<red>",
"minecraft:the_end": "<light_purple>"
},
// Priority-ordered target resolution rules. The highest-priority enabled
// condition with a matching player wins, and nearest in-dimension match
// is chosen. Conditions are tested against each candidate via predicate-api.
"tracker_conditions": [
{
// Special id: tracks the player selected through the GUI
"id": "selected_target",
// Always-true predicate; swap for tags/gamemode/permissions etc.
"condition": { "type": "always_true" },
// Action bar text rendered while this condition is the active one
"actionbar_format": "${player}<red>${offline} <gray>${distance}m <aqua>${arrow} ${dimension}",
// Higher wins on tie
"priority": 100,
"enabled": true
}
],
// Title shown at the top of the tracker GUI
"gui_title": "Track Player",
// Title of each player entry in the tracker GUI
"player_title": "<white>${player}",
// Lore lines shown under each player entry (one string per line)
"player_lore_lines": [
"<red>${offline}",
"${dimension}",
"<gray>${distance}m",
"<yellow>Click to track"
]
}
Placeholders
Available in actionbar_format, player_title, and player_lore_lines:
| Placeholder | Resolves to |
|---|---|
${player} |
Target's player name |
${offline} |
Offline when the target is offline, empty otherwise |
${online} |
Online when the target is online, empty otherwise |
${dimension} |
Target's dimension label, blank when same dim and showSameDimension is off |
${distance} |
Distance in blocks between observer and target |
${arrow} |
Directional arrow (↑, ↗, →, ↘, ↓, ↙, ←, ↖) pointing to the target |
TextPlaceholderAPI placeholders use the %namespace:name% syntax (distinct from the ${...} placeholders above). Plain %player:...% placeholders resolve against the observer holding the compass. Every player:* placeholder is also mirrored into a target:* namespace that resolves against the tracked player, so use %target:name%, %target:health%, etc. to show the target's data.
Format strings
actionbar_format, player_title, and player_lore_lines are parsed as text-format strings by TextPlaceholderAPI. All placeholders and tags documented there are supported, including:
- Default placeholders (e.g.
%player:name%,%player:displayname%, or%target:name%for the tracked player) - Mod-registered placeholders (any mod that registers one)
- QuickText tags (
<red>,<hover show_text 'x'>, etc.) - Simplified Text Format tags (same tags, colon-style args)
下载 Tracker Compass
下载 Tracker Compass
下载 Tracker Compass
下载 Tracker Compass
下载 Tracker Compass
下载 Tracker Compass
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tracker Compass
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tracker Compass
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tracker Compass
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tracker Compass
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧