Tracker Compass
一个 Minecraft 数据包,添加了指向最近玩家的指南针。主要用于 Minecraft 猫鼠游戏(Manhunts)。
功能
- 追踪多名玩家:指南针将指向最近的被追踪者。
- 记住上次追踪的位置,即使目标进入不同的维度也会生效。在猎手死亡时也有效(但指南针不会记住猎手死亡前最后使用的维度)。
- 猎手无法丢失或掉落他们的指南针。
- 跑者无法拾取或使用追踪指南针。
安装
数据包版本:
- 下载 最新版本
- 找到你的世界的数据包文件夹 (
.minecraft/saves/[your_world_name]/datapacks)
- 将数据包放入该文件夹
- 使用
/datapack list 确保数据包已启用。如果未启用,请使用 /datapack enable "file/tracker-compass_(版本号).zip" 启用它
模组版本:
- 从 Modrinth 下载最新版本
- 将模组放入
mods 文件夹 (.minecraft/mods)
使用方法
要设置猎手,请使用:
/team join Hunters player_name
要设置跑者,请使用:
/team join Runners player_name
要开始游戏并给猎手们指南针,请使用:
/function tracker:start
这还将清空所有人的物品栏,将每个队伍设置为生存模式,并将他们的生命值和饱食度加满。
猎手可以通过右键点击来刷新指南针。
设置
此数据包在加载时会自动禁用定位栏,以防止跑者得知猎手的位置,但可以通过 locator_bar 游戏规则切换:
/gamerule locator_bar (true|false)
可以设置追踪器显示被追踪玩家的 Y 坐标(默认关闭):
/scoreboard players set y_mode TrackerSettings (0|1) (0 表示关闭,1 表示开启)
猎手默认重生时会携带指南针,但可以禁用此功能:
/scoreboard players set respawn TrackerSettings (0|1) (0 表示关闭,1 表示开启)
命令
| 命令 |
描述 |
/team join Hunters player_name |
将用户 player_name 添加到猎手队伍中。 |
/team join Runners player_name |
将用户 player_name 添加到跑者队伍中(将被指南针追踪)。 |
/function tracker:start |
清空物品栏,治愈所有人,并给所有猎手追踪指南针。 |
/function tracker:get_compass |
给执行者一个追踪指南针。 |
/function tracker:setup/install |
初始化数据包。在数据包加载时自动调用。 |
/function tracker:setup/uninstall |
从记分板中移除数据包使用的所有变量。 |
/scoreboard players set y_mode TrackerSettings (0|1) |
切换指南针是否显示目标的 Y 坐标。 |
/scoreboard players set respawn TrackerSettings (0|1) |
切换猎手重生时是否携带指南针。 |
Tracker Compass
A Minecraft datapack that adds a compass which tracks the nearest player. Primarily intended for Minecraft Manhunts.
Features
- Track multiple players - the compass will point to the nearest target.
- Remembers the last position tracked, even if the runner enters a different dimension. Also works if the hunter dies (but the compass will not remember the dimension it was last used in before the hunter's death).
- Hunters are not able to lose or drop their compass.
- Runners are not able to pick up or use tracker compasses.
Installation
Datapack version:
- Download latest release
- Locate your world's datapack folder (
.minecraft/saves/[your_world_name]/datapacks)
- Place the datapack into the datapack folder
- Make sure the datapack is enabled by using
/datapack list. If it isn't, enable it with /datapack enable "file/tracker-compass_(version_number).zip"
Mod version:
- Download latest version from Modrinth
- Place mod into mods folder (
.minecraft/mods)
How to Use
To set the hunters, use:
/team join Hunters player_name
To set the speedrunners, use:
/team join Runners player_name
To start the game and give the hunters their compasses, use:
/function tracker:start
This will also clear everybody's inventories, set each team to survival mode and max out their health and food levels.
Hunters can refresh their compass by right-clicking them.
Settings
This datapack automatically disables the locator bar upon loading to prevent runners from knowing the hunters' whereabouts, but this can be toggled with the locator_bar gamerule:
/gamerule locator_bar (true|false)
The tracker can be set to show the tracked player's y-coordinate (off by default):
/scoreboard players set y_mode TrackerSettings (0|1) (0 for off, 1 for on)
Hunters respawn with compasses by default, but this can be disabled:
/scoreboard players set respawn TrackerSettings (0|1) (0 for off, 1 for on)
Commands
| Command |
Description |
/team join Hunters player_name |
Adds the user player_name to the Hunters team. |
/team join Runners player_name |
Adds the user player_name to the Runners team (will be tracked by compasses). |
/function tracker:start |
Clears inventories, heals all and gives all hunters tracker compasses. |
/function tracker:get_compass |
Gives the executor a tracker compass. |
/function tracker:setup/install |
Initialises the datapack. Automatically called upon datapack load. |
/function tracker:setup/uninstall |
Removes all variables used by the datapack from the scoreboard. |
/scoreboard players set y_mode TrackerSettings (0|1) |
Toggles whether compasses will show the target's y-coordinate. |
/scoreboard players set respawn TrackerSettings (0|1) |
Toggles whether hunters will respawn with their compass. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧