Manhunt
一名或多名速通者竞速击杀末影龙。一名或多名猎人手持追踪指南针,试图先一步击杀他们。
仅数据包——无需模组、插件或服务器软件。Minecraft Java Edition 26.2。 支持单人游戏、局域网和专用服务器。
安装
- 将
manhunt 文件夹放入世界的 datapacks/ 目录中。
- 退出世界并重新加载它。 不是
/reload ——设置和角色屏幕是对话框,而 Minecraft 仅在世界加载时构建这些对话框。使用 /reload 会导致所有屏幕显示异常,尽管数据包其余部分正常工作。
在开始比赛之前,你的世界中不会发生任何变化。
可选:配套资源包 manhunt-lang 将该模式翻译为 12 种语言。它并非必需——没有它,所有内容均以英文显示。
运行比赛
操作员所做的所有操作都包含在一个命令背后:
/function manhunt:admin/panel
| 按钮 |
功能 |
| Roles |
分配阵营。从这里开始——详见下文 |
| Start match |
除非至少有一名速通者和一名猎人在线,否则拒绝并开始(附带原因) |
| Settings |
游戏中的每个选项。支持 /reload 和重启后保留 |
| Status |
向聊天栏打印阶段、计时器和结果 |
| Force end |
结束比赛且无胜者,并将一切恢复原状 |
| Rematch reset |
清除比赛,保留队伍。点击一次即可再次游玩 |
| Full reset |
清除比赛和所有角色。保留设置 |
每个按钮也是 manhunt:admin/action/ 下的普通函数,因此命令方块或其他数据包可以驱动相同的功能。
选择谁进行速通
通常的流程是在 Roles 中进行两次点击:
- Everyone unassigned to hunter —— 将所有未分配阵营的玩家扫入猎人团队。
- Pick a random runner —— 随机选取一名猎人并将其变为速通者。
由于第 2 步是从猎人中抽取的,上一轮的速通者在重赛中仍会保持为速通者。若要重新随机抽取,请先按 Clear all roles,然后重复这两个步骤。
若要指定特定玩家,请跳过面板:
execute as <player> run function manhunt:roles/api/set_role {role:1}
0 未分配 · 1 速通者 · 2 猎人 · 3 观察者。支持任意数量的速通者和猎人;速通者方仅在所有玩家出局时才失败。
观察者是真实的一个阵营,而非客串:他们处于旁观模式,永远不会作为指南针的目标出现,且不计入任何胜利条件。这是用于摄像头账号的角色。
比赛的样子
Lobby —— 拥有角色的所有人被圈禁在一个小型世界边界内,处于创造模式和伤害免疫状态,同时房间自行整理完毕。将持续时间设置为 0 可跳过此阶段。
Head start —— 边界打开,速通者离开。猎人在原地冻结,他们的指南针锁定起始哨声时的位置,因此没有人能看着速通者远离并提前瞄准。
The hunt —— 追踪正式开始。当龙死亡时(速通者获胜)或最后一名速通者被淘汰时(猎人获胜),比赛结束。同一刻发生的龙击杀和速通者死亡始终判定为速通者获胜。
玩家做什么
除了一个例外,只有操作员需要输入命令。
Hunters 会自动获得指南针且永不丢失——掉落它、带着它死亡或填满背包,它都会在几秒钟内回归。要选择追捕对象:
/trigger mh.menu
这会在聊天栏中列出生存的速通者;点击名字以锁定目标,或点击 Nearest runner (auto) 以追踪最近的人并让系统自动重新定位。锁定的目标会一直保持,直到你更改它或该目标被淘汰。
通过指南针的名称来读取信息,而不仅仅是看指针:
- live —— 指针正指向速通者当前的实际位置。
- last seen —— 速通者在另一个维度。指针显示的是他们在你的维度中最后一次被看到的位置,通常是他们使用的传送门。跟随它,你会找到穿越点。
- no data —— 速通者从未进入过这个维度。指南针不指向任何方向,并明确说明这一点。
在原版游戏中,无论指南针 targeting 什么,其指针在下界和末地都会旋转。这就是为什么距离和方向也写在你的动作栏上——在这些维度中,文本是可靠的信息来源,而非指针。
Runners 会被告知有多少猎人在追踪他们,并且当有猎人靠近时会收到声音提示。
设置
所有内容都在面板上的 Settings 中,并且会持久保存。对游戏影响最大的设置如下:
|
|
| Lobby seconds, pen size |
等待阶段,或设置为 0 以跳过 |
| Head start seconds |
速通者独自行动的时间长度 |
| Runner lives / hunter lives |
0 表示猎人无限生命 |
| Track in the Nether / the End |
如果你希望龙战是一场公平的决斗,请关闭末地追踪 |
| Warning range |
速通者听到猎人接近前的距离 |
| Border after opening |
边界打开后的范围;0 恢复世界原有的边界 |
它不做的事情
- 未经请求更改任何游戏规则。
keepInventory 由你掌控;仅 instant respawn 会被触及,且仅在你开启时——它会被保存并恢复。
- 触碰你的物品。它唯一管理的物品是猎人的追踪指南针,通过其专属标签匹配,因此你合成的指南针永远不会被销毁。
- 强制加载单个区块,或创建单个实体。如果服务器在比赛期间崩溃,不会留下任何痕迹。
- 在比赛之间重新生成世界。重置恢复的是数据包状态,而非世界状态——你破坏的方块仍然破损。
- 阻止任何人通过 F3 查看坐标。Manhunt 一直基于信任机制。
粗糙之处
已知问题,值得你在为他人运行此内容前了解:
- 面板需要操作员权限。 玩家能够正常使用自己的控制面板,但比赛控制功能尚无法分配给受信任的非操作员。每个面板按钮都会在第二个屏幕上请求确认,这也是相同的原因。
- 在某些 GUI 缩放比例下,设置屏幕的高度超过了窗口高度;请滚动以找到应用。
- 自定义尺寸会被忽略——该资源包知晓主世界、下界和末地。
- 每个服务器仅限一场比赛。
- 目前尚未提供卸载功能。删除文件夹是安全的,不会留下任何正在运行的进程,但它创建的计分板目标和队伍会保留,直到你手动移除它们。
鸣谢
由 Rogal 创建。
原始的 1.21.1 manhunts 原型为本次构建带来了两项技术:按维度追踪最后已知位置,以及通过宏和 lodestone_tracker 组件写入动态指南针目标。这是一个全新的实现,并非移植版本。
Manhunt
One or more Speedrunners race to kill the Ender Dragon. One or more Hunters, armed with a tracking compass, try to kill them first.
Data pack only — no mod, no plugin, no server software. Minecraft Java Edition 26.2. Works in singleplayer, on LAN and on a dedicated server.
Install
- Drop the
manhunt folder into your world's datapacks/ directory.
- Exit the world and load it again. Not
/reload — the settings and role screens are dialogs, and Minecraft only builds those when a world loads. Using /reload instead makes every screen look broken while the rest of the pack works fine.
Nothing in your world changes until a match is started.
Optional: the companion manhunt-lang resource pack translates the mode into 12 languages. It is never required — without it everything reads in English.
Running a match
Everything an operator does lives behind one command:
/function manhunt:admin/panel
| Button |
What it does |
| Roles |
Assign sides. Start here — see below |
| Start match |
Refuses, with the reason, unless at least one runner and one hunter are online |
| Settings |
Every option, in game. Survives /reload and a restart |
| Status |
Prints phase, timers and outcome to chat |
| Force end |
Ends with no winner and puts everything back |
| Rematch reset |
Clears the match, keeps the teams. One click to play again |
| Full reset |
Clears the match and every role. Settings are kept |
Each button is also a plain function under manhunt:admin/action/, so a command block or another pack can drive the same thing.
Picking who runs
The usual flow is two clicks in Roles:
- Everyone unassigned to hunter — sweeps every player without a side into the hunter team.
- Pick a random runner — takes one hunter at random and makes them the runner.
Because step 2 draws from the hunters, the previous runner stays a runner across a rematch. For a clean redraw press Clear all roles first, then repeat both steps.
To set one specific player instead, skip the panel:
execute as <player> run function manhunt:roles/api/set_role {role:1}
0 unassigned · 1 runner · 2 hunter · 3 spectator. Any number of runners and hunters is supported; the runner side loses only when all of its players are out.
Spectators are a real side, not a courtesy: they are put in spectator mode, never appear as a compass target, and count toward neither win condition. That is the role for a camera account.
What a match looks like
Lobby — everyone with a role is penned inside a small world border, in adventure mode and immune to damage, while the room sorts itself out. Set the duration to 0 to skip it.
Head start — the border opens and the runner leaves. Hunters are frozen in place and their compasses hold the position from the starting whistle, so nobody can watch the runner move away and pre-aim.
The hunt — tracking goes live. The match ends when the dragon dies (runners win) or the last runner is eliminated (hunters win). A dragon kill and a runner death on the same tick always resolve as a runner win.
What players do
Nobody but the operator needs a command, with one exception.
Hunters get a compass automatically and never lose it — drop it, die with it, or fill your inventory and it comes back within a second. To choose whom to chase:
/trigger mh.menu
That prints a list of living runners in chat; click a name to lock onto them, or click Nearest runner (auto) to track whoever is closest and let it re-target itself. A locked target holds until you change it or they are eliminated.
Read the compass by its name, not just its needle:
- live — the needle is pointing at the runner's real position right now.
- last seen — the runner is in another dimension. The needle is showing where they were last seen in your dimension, which is normally the portal they used. Follow it and you will find the crossing.
- no data — the runner has never been in this dimension. The compass is not pointing anywhere and says so.
The compass needle spins in the Nether and the End in vanilla no matter what it is targeting. That is why the distance and direction are also written on your action bar — in those dimensions the text is the reliable channel, not the needle.
Runners are told how many hunters are tracking them, and get a sound cue when one gets close.
Settings
Everything is in Settings on the panel, and it persists. The ones that change the game most:
|
|
| Lobby seconds, pen size |
The holding phase, or 0 to skip it |
| Head start seconds |
How long the runner gets alone |
| Runner lives / hunter lives |
0 hunter lives means infinite |
| Track in the Nether / the End |
Turn End tracking off if you want the dragon fight to be a fair duel |
| Warning range |
How close a hunter gets before the runner hears it |
| Border after opening |
What the pen opens out to; 0 restores the world's own border |
What it does not do
- Change any gamerule without being asked.
keepInventory is yours; only instant respawn is touched, and only if you turn it on — it is saved and restored.
- Touch your items. The only item it manages is the hunters' tracking compass, matched by its own tag, so a compass you crafted is never destroyed.
- Force-load a single chunk, or create a single entity. There is nothing to leave behind if the server dies mid-match.
- Regenerate the world between matches. Reset restores pack state, not world state — blocks you broke stay broken.
- Prevent anyone from reading coordinates off F3. Manhunt has always been trust-based.
Rough edges
Known, and worth hearing before you run this for other people:
- The panel needs operator permission. Players reach their own controls fine, but match control cannot yet be handed to a trusted non-op. Every panel button also asks for confirmation on a second screen, which is the same cause.
- The settings screen is taller than the window at some GUI scales; scroll to reach Apply.
- Custom dimensions are ignored — the pack knows the Overworld, the Nether and the End.
- One match per server.
- There is no uninstall function yet. Deleting the folder is safe and leaves nothing running, but the scoreboard objectives and teams it created stay until you remove them by hand.
Credits
Created by Rogal.
The original 1.21.1 manhunts prototype informed two techniques carried into this build: per-dimension last-known-position tracking, and writing dynamic compass targets through a macro and the lodestone_tracker component. This is a new implementation, not a port.
评论 0
登录后参与评分
还没有评论,来抢沙发吧