Modern Manhunt (数据包)
一款 Minecraft Java 版数据包,重现了经典的 Manhunt(追捕)游戏模式,并使用定位栏取代指南针进行追踪,同时简化了游戏的起始流程。
本数据包诞生于一次追捕游戏中,我们意识到体验可以比现有方案更加流畅和直观。
支持版本
- Minecraft Java 1.20 → 1.21.11(已在 1.21.11 测试,应兼容其他受支持的版本)
- 完全原版且对服务器友好 (注意:此数据包会影响服务器上的所有玩家,即使是不参与队伍的玩家也会受到一定程度的影响)
数据包功能
-
添加简单的追捕设置:追捕者 vs 逃跑者
-
使用定位栏取代追踪用指南针
-
包含以下功能:
- 30秒 PvP 安全期及倒计时
- PvP 自动开关
- 胜利与失败检测
- 干净的停止/重置命令
核心游戏规则
队伍
-
追捕者 (Hunters)
- 名字显示为蓝色
- 无法传输航点(逃跑者无法追踪追捕者)
-
逃跑者 (Runner)
胜利条件
- 逃跑者以某种方式死亡 → 追捕者获胜
- 末影龙死亡 → 逃跑者获胜
指令
加入队伍
/team join Hunters <player>
/team join Runner <player>
(如果未指定玩家,执行该指令的玩家将被分配至对应队伍)
开始游戏
/function manhunt:start
这将执行以下操作:
- 禁用 PvP
- 将时间设为白天
- 冻结所有玩家 (这会导致 FOV(视野)变形。请在“辅助功能”中禁用“FOV 效果”以修复此问题。此举旨在防止有人利用禁用的 PvP 逃离战场)
- 清空所有物品栏
- 移除掉落物
- 将所有玩家的饥饿值与饱和度完全填满
- 禁用追捕者的航点传输功能
- 开始30秒倒计时
- 倒计时结束后启用 PvP
- 将世界出生点与个人重生点设置为执行该指令玩家的坐标
- 将世界边界直径设为 12000,中心位于 0, 0
停止游戏
/function manhunt:stop
这将执行以下操作:
- 取消追捕游戏
- 移除Boss栏与计时器
- 恢复被修改的属性
- 显示灰色标题 “Manhunt Stopped”(追捕已停止)
安装方法
-
下载数据包
-
将其放入以下目录:
.minecraft/saves/<world>/datapacks/
-
重载世界或运行:
/reload
-
验证是否加载成功:
/datapack list
到此为止。如果之后仍无法正常工作,则属于我们需要修复的 Bug。请在我们上面的 GitHub 仓库中报告这些问题。
航点的使用方式
此数据包使用了 Minecraft 1.21.6 引入的定位栏功能。
使用的属性
minecraft:waypoint_transmit_range
作用说明
- 追捕者的传输范围被设置为
0.0
- 这防止了他们向逃跑者广播自己的位置
- 逃跑者不受影响
精确指令语法
/attribute @a[team=Hunters] minecraft:waypoint_transmit_range base set 0.0
当游戏停止时,此属性将恢复为默认值。
注意:此数据包并非 Lprogrammer 的 Manhunt 数据包的分支(Fork),但受到了它的启发。它由我们完全编写,未复用 Lprogrammer 数据包中的任何代码。
如果你想查看他们的数据包,请点击 这里
Modern Manhunt (Datapack)
A Minecraft Java datapack that recreates the classic Manhunt game mode, modernized to use the locator bar instead of a compass and an easier start of the game.
This pack was born during a Manhunt session where we realized the experience could be far smoother and more intuitive than what was available.
Supported Versions
- Minecraft Java 1.20 → 1.21.11 (Tested on 1.21.11, should be compatible with other supported versions)
- Fully vanilla & server-friendly (Note that this pack will affect all players on a server, even ones without a team, to some extent)
What This Datapack Does
Core Gameplay Rules
Teams
-
Hunters
- Blue names
- Cannot transmit waypoints (runner cannot track hunters)
-
Runner
- Red name
- Objective: survive and kill the Ender Dragon
Win Conditions
- Runner dies somehow → Hunters win
- Ender Dragon dies → Runner wins
Commands
Join Teams
/team join Hunters <player>
/team join Runner <player>
(If no player is specified, player who executed team command will be assigned)
Start the Game
/function manhunt:start
This will:
- Disable PvP
- Sets time to day
- Freeze all players (This distorts FOV. Disable "FOV Effects" in Accessibility to fix this. This has been implemented to stop anyone from running away with PVP disabled)
- Clear all inventories
- Remove dropped items
- Fill Health & Saturation for everyone completely
- Disable waypoint transmission for Hunters
- Start a 30-second countdown
- Enable PvP after the countdown
- Set Worldspawn & Spawnpoint of everyone at coordinates of the player who executed the command.
- Set the Worldborder diameter to 12000 with center 0, 0.
Stop the Game
/function manhunt:stop
This will:
- Cancel the manhunt
- Remove bossbars & timers
- Restore altered attributes
- Show a gray “Manhunt Stopped” title
Installation
-
Download the datapack
-
Place it in:
.minecraft/saves/<world>/datapacks/
-
Reload the world or run:
/reload
-
Verify it loaded:
/datapack list
That’s it. If it doesn’t work after this, its a bug we need to fix. Please report these on our github repository. (Linked Above)
How Waypoints Are Used
This datapack uses Minecraft’s locator bar introduced in 1.21.6.
Attribute Used
minecraft:waypoint_transmit_range
What It Does
- Hunters have their transmit range set to
0.0
- This prevents them from broadcasting their position to the runner
- The Runner remains unaffected
Exact Command Syntax
/attribute @a[team=Hunters] minecraft:waypoint_transmit_range base set 0.0
When the game stops, this attribute is restored to its default value.
Note: This datapack is NOT a fork of Lprogrammer's Manhunt datapack, but it was inspired by it. It was fully coded by us, and no code was reused from Lprogrammer's pack.
If you want to check their pack out, click here
评论 0
登录后参与评分
还没有评论,来抢沙发吧