PvP Chunk Manager
为 Fabric 服务器提供按区块的 PvP 控制。标记那些反转原版 pvp 游戏规则的区块,标记处于战斗中的玩家,并通过阻止其逃跑、使用末影珍珠或登出来逃避战斗,强制他们留在战斗中。
模组功能
豁免区块
使用 PvP 区块工具(名为 "PvP Chunk Tool" 的钻石锄头)来切换 PvP 规则被反转的区块:
- 当原版
pvp游戏规则为 开启 时,如果攻击者 或 目标站在豁免区块内,将阻止 PvP 伤害。 - 当原版
pvp游戏规则为 关闭 时,仅当两名玩家都站在豁免区块内时,才允许 PvP 伤害(在支持的情况下尊重队伍和友军伤害规则)。
战斗标记
击中另一名玩家会将攻击者和目标都标记为处于战斗状态,持续时间可配置(combat_tag_duration)。每次新的命中都会刷新标记时间。
边界执行
在被标记期间,玩家不能离开其锚点(最后站立过的豁免区块,或未使用豁免区块时战斗开始所在的区块)超过 pvp_border_distance 个区块的距离。每tick检查一次,如果超出允许半径,则触发配置的逃脱动作,直到玩家重新回到允许范围内:
INVISIBLE_WALL(默认):将玩家推回边界,类似于围绕锚点的隐形墙。TELEPORT_BACK:将玩家传送至锚点区块的中心。KILL:杀死玩家。
传送会通过高度图查找安全的地面位置,因此玩家永远不会被放置在方块内部或下方。
末影珍珠拦截
在战斗期间投掷且落点超出允许半径的末影珍珠会被丢弃,从而防止玩家利用珍珠逃跑。
防登出
在战斗标记状态下断开连接会导致玩家的整个物品栏在地面掉落,并清除所有战斗状态。为了躲避死亡而登出将导致玩家损失物品。
死亡重置
因任何原因死亡会清除所有战斗追踪数据(锚点位置、战斗标记、攻击者记录),重生后边界执行将重置。
管理员选项 (26.3 构建版)
可以通过可配置的操作权限级别(tool_requires_op, reload_requires_op, op_permission_level)将区块工具命令、重载命令以及物理工具的使用限制为只有操作员才能执行。
安装方法
- 为你的 Minecraft 版本安装 Fabric Loader 和 Fabric API。
- 下载与你的 Minecraft 版本匹配的文件(1.21.x, 26.1.x, 26.2 或 26.3),并将其放入
mods文件夹。 - 启动服务器一次以生成
config/pvp_chunks.json。 - 使用
/pvpzone hoe标记区域,调整设置,然后运行/pvpzone reload。
设置 PvP 区域
- 通过原版
pvp游戏规则确定基础行为。 - 运行
/pvpzone hoe获取区块工具。 - 在你想要豁免的每个区块内的任意方块上右键点击。更改会立即保存到配置文件中,并在聊天中发送确认消息。
- 如有需要,编辑
config/pvp_chunks.json中的pvp_border_distance、combat_tag_duration和action_on_escape,然后运行/pvpzone reload应用更改。
命令
| 命令 | 描述 |
|---|---|
/pvpzone hoe |
给予钻石锄头区块工具。右键点击方块以切换其区块的豁免状态。 |
/pvpzone reload |
从磁盘重新加载 config/pvp_chunks.json。 |
所有命令名称均可通过配置文件中的 commands 部分进行自定义。
配置 (config/pvp_chunks.json)
如果文件缺失,将在首次启动时自动创建。示例如下:
{
"commands": {
"base_pvp_command": "pvpzone",
"sub_get_tool": "hoe",
"sub_reload": "reload"
},
"settings": {
"pvp_border_distance": 2,
"combat_tag_duration": 20,
"action_on_escape": "INVISIBLE_WALL",
"tool_requires_op": true,
"reload_requires_op": true,
"op_permission_level": 2
},
"exemptChunks": []
}
| 设置项 | 默认值 | 描述 |
|---|---|---|
pvp_border_distance |
2 |
被标记的玩家在触发逃脱动作前可以离开锚点多少个区块。 |
combat_tag_duration |
20 |
战斗标记在最后一次命中后持续的秒数。 |
action_on_escape |
INVISIBLE_WALL |
当被标记的玩家离开允许半径时会发生什么:INVISIBLE_WALL、TELEPORT_BACK 或 KILL。 |
tool_requires_op |
true |
只有操作员才能获得区块工具并切换区块状态(26.3 构建版)。 |
reload_requires_op |
true |
只有操作员才能重载配置文件(26.3 构建版)。 |
op_permission_level |
2 |
上述受限操作所需的权限级别(26.3 构建版)。 |
base_pvp_command |
pvpzone |
基础命令名称。 |
sub_get_tool |
hoe |
给予区块工具的子命令。 |
sub_reload |
reload |
重载配置文件的子命令。 |
exemptChunks |
[] |
通过区块工具管理的区块坐标列表。 |
支持的版本
| 文件 | Minecraft 版本 |
|---|---|
| 1.21.x 构建版 | 1.21 至 1.21.11 |
| 26.1.x 构建版 | 26.1 至 26.1.2 |
| 26.2 构建版 | 26.2 |
| 26.3 构建版 | 26.3(包含管理员权限选项) |
每个版本都需要 Fabric Loader 和 Fabric API。仅限服务端。
PvP Chunk Manager
Per-chunk PvP control for Fabric servers. Mark chunks where the vanilla PvP gamerule is inverted, tag players in combat, and stop them from escaping the fight by running away, pearling out, or logging out.
What the mod does
Exempt chunks
Use the PvP Chunk Tool (a Diamond Hoe named "PvP Chunk Tool") to toggle chunks where PvP rules are inverted:
- When the vanilla
pvpgamerule is on, PvP damage is blocked if the attacker or the target stands in an exempt chunk. - When the vanilla
pvpgamerule is off, PvP damage is allowed only when both players stand in exempt chunks (team and friendly-fire rules are respected where supported).
Combat tag
Hitting another player tags both the attacker and the target for a configurable duration (combat_tag_duration). Every new hit refreshes the tag.
Border enforcement
While tagged, a player may not move more than pvp_border_distance chunks away from their anchor (the last exempt chunk they stood in, or the chunk where combat started when no exempt chunks are used). Leaving the allowed radius triggers the configured escape action on every tick until the player is back inside:
INVISIBLE_WALL(default): pushes the player back to the border, acting like an invisible wall around the anchor.TELEPORT_BACK: teleports the player to the center of the anchor chunk.KILL: kills the player.
Teleports resolve a safe surface position via heightmap lookup, so players are never placed inside or under blocks.
Ender pearl block
Ender pearls thrown during combat that would land outside the allowed radius are discarded, so pearls cannot be used to escape.
Anti-logout
Disconnecting while combat-tagged drops the player's entire inventory on the ground at their position and clears all combat state. Logging out to avoid death costs the player their items.
Death reset
Dying from any cause clears all combat tracking (anchor position, combat tag, attacker record), so border enforcement resets on respawn.
Admin options (26.3 build)
The chunk-tool command, the reload command, and physical tool use can be restricted to operators with a configurable permission level (tool_requires_op, reload_requires_op, op_permission_level).
Installation
- Install Fabric Loader and Fabric API for your Minecraft version.
- Download the file matching your Minecraft version (1.21.x, 26.1.x, 26.2 or 26.3) and place it in the
modsfolder. - Start the server once to generate
config/pvp_chunks.json. - Mark your zones with
/pvpzone hoe, tune the settings, then run/pvpzone reload.
Setting up a PvP zone
- Decide the base behaviour with the vanilla
pvpgamerule. - Run
/pvpzone hoeto receive the chunk tool. - Right-click a block in each chunk you want to exempt. The change is saved to the config file immediately and a chat message confirms it.
- Edit
pvp_border_distance,combat_tag_durationandaction_on_escapeinconfig/pvp_chunks.jsonif needed, then run/pvpzone reloadto apply.
Commands
| Command | Description |
|---|---|
/pvpzone hoe |
Gives the Diamond Hoe chunk tool. Right-click a block to toggle its chunk's exempt status. |
/pvpzone reload |
Reloads config/pvp_chunks.json from disk. |
All command names are configurable via the commands section of the config file.
Configuration (config/pvp_chunks.json)
The file is created automatically on first launch if missing. Example:
{
"commands": {
"base_pvp_command": "pvpzone",
"sub_get_tool": "hoe",
"sub_reload": "reload"
},
"settings": {
"pvp_border_distance": 2,
"combat_tag_duration": 20,
"action_on_escape": "INVISIBLE_WALL",
"tool_requires_op": true,
"reload_requires_op": true,
"op_permission_level": 2
},
"exemptChunks": []
}
| Setting | Default | Description |
|---|---|---|
pvp_border_distance |
2 |
How many chunks a tagged player may move away from their anchor before the escape action triggers. |
combat_tag_duration |
20 |
How long, in seconds, the combat tag lasts after the last hit. |
action_on_escape |
INVISIBLE_WALL |
What happens when a tagged player leaves the allowed radius: INVISIBLE_WALL, TELEPORT_BACK or KILL. |
tool_requires_op |
true |
Only operators may receive the chunk tool and toggle chunks (26.3 build). |
reload_requires_op |
true |
Only operators may reload the config (26.3 build). |
op_permission_level |
2 |
Permission level required for the restricted actions above (26.3 build). |
base_pvp_command |
pvpzone |
Base command name. |
sub_get_tool |
hoe |
Sub-command that gives the chunk tool. |
sub_reload |
reload |
Sub-command that reloads the config. |
exemptChunks |
[] |
List of chunk coordinates managed through the chunk tool. |
Supported versions
| File | Minecraft versions |
|---|---|
| 1.21.x build | 1.21 through 1.21.11 |
| 26.1.x build | 26.1 through 26.1.2 |
| 26.2 build | 26.2 |
| 26.3 build | 26.3 (includes admin permission options) |
Requires Fabric Loader and Fabric API on every version. Server-side only.
下载 PvP Chunk manager
下载 PvP Chunk manager
下载 PvP Chunk manager
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PvP Chunk manager
下载 PvP Chunk manager
下载 PvP Chunk manager
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PvP Chunk manager
下载 PvP Chunk manager
新增对 26.2 的支持
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧