Player Tracker Compass 模组
描述
Player Tracker Compass 是一个 Minecraft Fabric 模组,它添加了一种特殊的指南针物品,允许玩家追踪最多两名指定目标玩家的位置。该模组专为服务器管理员设计,为在多人游戏环境中追踪玩家移动提供了强大的工具。主要功能包括:
- 自定义追踪指南针物品,指向最近的被追踪玩家
- 支持同时追踪最多两名玩家
- 每 10 秒自动更新指南针方向
- 防止被追踪的玩家获得指南针
- 基于命令的管理系统
- 通过指南针命名和颜色提供视觉反馈
- 维度感知追踪(仅追踪同一维度内的玩家)
追踪指南针具有魔法闪烁效果且防火,使其成为一种耐用的追踪工具。使用该模组的追踪命令需要操作者权限(等级 4),以确保对追踪功能的访问受到控制。
用法
安装
- 确保你的 Minecraft 服务器上已安装 Fabric Loader 和 Fabric API
- 将模组 JAR 文件放入服务器的
mods 文件夹中
- 启动服务器以加载模组
功能与命令
追踪指南针物品
- 所有未被追踪的玩家在加入或重生时会自动获得一个追踪指南针
- 指南针会出现在玩家的物品栏中,并带有魔法闪烁效果
- 被追踪的玩家不会收到追踪指南针
- 指南针每 10 秒自动更新一次,指向最近的目标玩家
- 右键点击指南针可将其追踪目标更新为最近的合法目标玩家
命令
所有命令都需要操作者权限等级 4 才能执行。
- 开始追踪玩家
/trackercompass <player>
- 将指定玩家添加到追踪列表(最多 2 名玩家)
- 从被追踪玩家的物品栏中移除任何追踪指南针
- 更新其他所有玩家的指南针以追踪最近的目标
- 显示反馈信息,表明当前正在追踪的玩家数量(例如:“现在追踪玩家:PlayerName (1/2 个目标)”)
- 如果尝试追踪超过 2 名玩家,则失败
- 停止追踪
/trackercompass stop
- 清除所有追踪目标
- 将所有追踪指南针重置为其默认状态
- 移除所有玩家的追踪数据
- 显示“已停止追踪”的反馈信息
指南针行为
- 指向同一维度内最近的被追踪玩家
- 当追踪玩家时,物品名称显示为“Tracking: PlayerName”
- 如果没有被追踪的玩家在同一维度内,则显示“No valid targets”
- 每 10 秒自动更新
- 可以通过右键点击手动更新
- 在以下情况显示相应消息:
- 未设置目标时(“请先使用 /trackercompass 设置目标”)
- 当前维度没有有效目标时(“你的维度中没有有效目标”)
注意事项
- 被追踪的玩家无法通过任何方式(加入、重生或手动给予)获得追踪指南针
- 指南针仅追踪持有者所在维度的玩家
- 该模组使用服务器端处理,兼容原版客户端
- 停止追踪时会清除所有追踪数据
- 该模组使用彩色消息以提高可见性:
- 红色用于错误和停止追踪提示
- 黄色用于信息提示
- 浅红色用于追踪确认
- 白色交替用于指南针名称
技术细节
- 模组 ID:
playertrackercompass
- 物品 ID:
playertrackercompass:tracking_compass
- 使用 Polymer API 进行物品渲染
- 实现服务器端刻度事件以进行更新
- 处理玩家加入和重生事件
- 使用 Minecraft 的命令系统进行控制
此模组非常适合运行类似“猫鼠游戏”风格的服务器管理员,或者需要在保持游戏平衡的同时监控特定玩家移动的服务器管理员,通过权限控制和追踪限制来实现这一点。
来自赞助商的信息
使用 valksystems 托管服务。你可以获得 10GB 免费服务器,享有 7x24 小时不间断运行,他们的支持团队随时准备在任何问题出现时协助你。

Player Tracker Compass Mod
Description
The Player Tracker Compass Mod is a Minecraft Fabric mod that adds a special compass item that allows players to track the location of up to two designated target players. The mod is designed for server administrators and provides a powerful tool for tracking player movements in multiplayer environments. Key features include:
- Custom tracking compass item that points to the nearest tracked player
- Support for tracking up to two players simultaneously
- Automatic compass updates every 10 seconds
- Prevention of tracked players receiving compasses
- Command-based system for managing tracking
- Visual feedback through compass naming and colors
- Dimension-aware tracking (only tracks players in the same dimension)
The tracking compass has a magical glint effect and is fireproof, making it a durable tracking tool. The mod requires operator permissions (level 4) to use tracking commands, ensuring controlled access to tracking features.
Usage
Installation
- Ensure you have Fabric Loader and Fabric API installed on your Minecraft server
- Place the mod JAR file in your server's
mods folder
- Start the server to load the mod
Features and Commands
Tracking Compass Item
- All non-tracked players automatically receive a tracking compass upon joining or respawning
- The compass appears in the player's inventory with a magical glint effect
- Tracked players are prevented from receiving tracking compasses
- The compass automatically updates every 10 seconds to point to the nearest tracked player
- Right-clicking the compass updates its tracking target to the nearest valid tracked player
Commands
All commands require operator permission level 4 to execute.
- Start Tracking a Player
/trackercompass <player>
- Adds the specified player to the tracking list (maximum 2 players)
- Removes any tracking compasses from the tracked player's inventory
- Updates all other players' compasses to track the nearest target
- Displays feedback showing the number of currently tracked players (e.g., "Now tracking player: PlayerName (1/2 targets)")
- Fails if trying to track more than 2 players
- Stop Tracking
/trackercompass stop
- Clears all tracking targets
- Resets all tracking compasses to their default state
- Removes tracking data from all players
- Displays "Stopped tracking" feedback
Compass Behavior
- Points to the nearest tracked player in the same dimension
- Shows "Tracking: PlayerName" in the item name when tracking a player
- Displays "No valid targets" if no tracked players are in the same dimension
- Updates automatically every 10 seconds
- Can be manually updated by right-clicking
- Shows appropriate messages when:
- No targets are set ("Use /trackercompass to set a target first")
- No valid targets in current dimension ("No valid targets in your dimension")
Notes
- Tracked players cannot receive tracking compasses through any means (joining, respawning, or manual giving)
- The compass only tracks players in the same dimension as the holder
- The mod uses server-side processing and is compatible with vanilla clients
- All tracking data is cleared when tracking is stopped
- The mod uses color-coded messages for better visibility:
- Red for errors and stopping tracking
- Yellow for information messages
- Light red for tracking confirmation
- Alternate white for compass names
Technical Details
- Mod ID:
playertrackercompass
- Item ID:
playertrackercompass:tracking_compass
- Uses Polymer API for item rendering
- Implements server-side tick events for updates
- Handles player join and respawn events
- Uses Minecraft's command system for control
This mod is ideal for server administrators running manhunt-style games or needing to monitor specific player movements while maintaining game balance through permission controls and tracking limitations.
A Message From Our sponsor
Use valksystems hosting services. You can get 10GB Servers Free with 24/7 uptime, and their support team is always available to assist you no matter the problem.

评论 0
登录后参与评分
还没有评论,来抢沙发吧