一款轻量级的 Fabric 服务端模组,旨在使 PvP 更加公平并防止战斗断线(Combat-logging)。
道德采购,非转基因! 请考虑在 Modrinth 下载以支持本项目。

功能:
- 兼容 PvP 和 PvE
- 战斗断线惩罚
- 生命值减半(可配置为直接杀死)
- 减少吸收效果
- 中毒
- 处于战斗标记状态时
- 传送冷却时间(末影珍珠和紫颂果)
- 附魔金苹果冷却时间
- 默认情况下,仅在食用第一个附魔金苹果后开始计算冷却时间
- 禁用鞘翅
- 命令黑名单(例如 /home, /spawn, /tpa)
- 用户名显示为红色
- 显示剩余战斗标记时间的进度条
- 完全可配置
注意:
服务器意外关机 将被视为 断线(优雅地停止服务器则不会)。
默认情况下,禁用了 /teammsg 和 /team 命令
- 所有处于战斗中的玩家会被放入一个名为 "combat" 的队伍,以便区分用户名颜色
- 禁用用户名着色也会重新启用这些命令
配置选项
位于 ./config/CombatTag.json
| 键 (Key) |
类型 |
默认值 |
描述 |
| CombatDurationSec |
Float |
20.0 |
战斗标记持续的时间 |
| CombatTpCooldownSec |
Float |
10.0 |
战斗中末影珍珠和紫颂果的冷却时间 |
| CombatNotchAppleCooldownSec |
Float |
10.0 |
战斗中附魔金苹果的冷却时间 |
| HealthRemainingPunish |
Float |
1.0 |
战斗标记状态下重连后玩家应保留的生命值 |
| AbsorptionRemainingPunish |
Float |
0.0 |
战斗标记状态下重连后玩家应保留的吸收效果值 |
| PoisonDurationSec |
Float |
20.0 |
战斗标记状态下重连后玩家中毒的持续时间 |
| PoisonLevel |
Integer |
5 |
战斗标记状态下重连后中毒效果的强化等级 |
| OnlyTagWeapons |
Boolean |
false |
是否仅在受到武器/TNT/水晶伤害时才施加战斗标记(武器完整列表点击此处查看) |
| EnableTagOnAttack |
Boolean |
true |
是否在 PvP 中标记攻击者 |
| EnablePveTagOnDamage |
Boolean |
false |
是否在 PvE 中标记受到伤害的玩家 |
| EnablePveTagOnAttack |
Boolean |
false |
是否在 PvE 中标记发起攻击的玩家 |
| EnableHealthPunish |
Boolean |
true |
是否在战斗标记状态下重连时扣除玩家生命值 |
| EnableAbsorptionPunish |
Boolean |
true |
是否在战斗标记状态下重连时扣除玩家吸收效果 |
| EnablePoisonPunish |
Boolean |
true |
是否在战斗标记状态下重连时对玩家施加中毒效果 |
| EnableTpPunish |
Boolean |
true |
是否在战斗中启用传送冷却 |
| EnableInstantTpPunish |
Boolean |
true |
是否在进入战斗时立即激活传送冷却 |
| EnableNotchApplePunish |
Boolean |
true |
是否在战斗中启用附魔金苹果冷却 |
| EnableInstantNotchApplePunish |
Boolean |
false |
是否在进入战斗时立即激活附魔金苹果冷却 |
| EnableElytraPunish |
Boolean |
true |
是否在战斗中禁用鞘翅 |
| EnableCombatColour |
Boolean |
true |
是否将战斗中的玩家显示为红色(包括光谱箭、记分板、聊天中的用户名等) |
| DisableTeamMsgCommand* |
Boolean |
true |
是否禁止玩家使用 /teammsg 命令 |
| DisableTeamCommand* |
Boolean |
true |
是否禁止玩家使用 /team 命令 |
| CommandBlacklist |
String[] |
["tpa", "tpaccept", "home", "spawn", "back", "warp"] |
战斗期间被阻止的命令列表 |
| CommandBlacklistMessage |
String |
"You cannot use this command while in combat!" |
当黑名单命令被阻止时显示的消息 |
*警告:禁用这些选项可能允许战斗中的玩家互相发送消息或离开战斗队伍并失去颜色标识
要求
- Fabric 加载器 16.10 或更高版本 (1.21.4/5)
- Fabric 加载器 16.14 或更高版本 (1.21.6/7)
- Minecraft 1.21.4 或更高版本
- 可能在旧版本上工作(自行编译测试:更多信息点击此处)
- Java 21 或更高版本
A lightweight fabric server mod to make PvP fairer and prevent combat-logging.
Ethically sourced and GMO-free! Consider downloading on Modrinth to support this project.

Features:
- Compatible with PvP and PvE
- Combat disconnect punishing
- Reduced health to half a heart (can be configured to instantly kill)
- Reduced absorption
- Poison
- While combat tagged
- TP cooldown (ender pearls and chorus fruit)
- By default, the cooldown starts as soon as the player enters combat
- Enchanted golden apple cooldown
- By default, the cooldown only starts after eating the first enchanted golden apple
- Elytras disabled while combat tagged
- Command blacklist (e.g., /home, /spawn, /tpa)
- Red username
- Bar to indicate how long until the player's combat tag expires
- Fully configurable
Note:
An unexpected server shutdown will count as a disconnect (stopping the server gracefully will not).
By default, /teammsg and /team are disabled
- All players in combat are put on a "combat" team for the sake of username colouring
- Disabling username colouring also re-enables these commands
Configuration Options
Found in ./config/CombatTag.json
| Key |
Type |
Default |
Description |
| CombatDurationSec |
Float |
20.0 |
How long the combat tag should last for |
| CombatTpCooldownSec |
Float |
10.0 |
How long the cooldown for enderpearls and chorus fruits should be during combat |
| CombatNotchAppleCooldownSec |
Float |
10.0 |
How long the cooldown for enchanted golden apples should be during combat |
| HealthRemainingPunish |
Float |
1.0 |
How much health the player should have upon reconneccting while combat tagged |
| AbsorptionRemainingPunish |
Float |
0.0 |
How much absorption the player should have upon reconnecting while combat tagged |
| PoisonDurationSec |
Float |
20.0 |
How long the player should be poisoned for upon reconnecting while combat tagged |
| PoisonLevel |
Integer |
5 |
The amplification level of the poison effect upon reconnecting while combat tagged |
| OnlyTagWeapons |
Boolean |
false |
Whether combat tags should only apply when taking weapon/TNT/crystal damage (full list of weapons here) |
| EnableTagOnAttack |
Boolean |
true |
Whether the attacker should be tagged in PvP |
| EnablePveTagOnDamage |
Boolean |
false |
Whether the damaged player should be tagged in PvE |
| EnablePveTagOnAttack |
Boolean |
false |
Whether the attacking player should be tagged in PvE |
| EnableHealthPunish |
Boolean |
true |
Whether the player should lose health upon reconnecting while combat tagged |
| EnableAbsorptionPunish |
Boolean |
true |
Whether the player should lose absorption upon reconnecting while combat tagged |
| EnablePoisonPunish |
Boolean |
true |
Whether the player should be poisoned upon reconnecting while combat tagged |
| EnableTpPunish |
Boolean |
true |
Whether the teleport cooldown should be active during combat |
| EnableInstantTpPunish |
Boolean |
true |
Whether the teleport cooldown should be activated immediately upon entering combat |
| EnableNotchApplePunish |
Boolean |
true |
Whether the enchanted golden apple cooldown should be active during combat |
| EnableInstantNotchApplePunish |
Boolean |
false |
Whether the enchanted golden apple cooldown should be activated immediately upon entering combat |
| EnableElytraPunish |
Boolean |
true |
Whether elytra should be disabled during combat |
| EnableCombatColour |
Boolean |
true |
Whether players in combat should appear red (spectral arrows, scoreboard, username in chat, etc.) |
| DisableTeamMsgCommand* |
Boolean |
true |
Whether players should be allowed to use /teammsg |
| DisableTeamCommand* |
Boolean |
true |
Whether players should be allowed to use /team |
| CommandBlacklist |
String[] |
["tpa", "tpaccept", "home", "spawn", "back", "warp"] |
Commands that are blocked while in combat |
| CommandBlacklistMessage |
String |
"You cannot use this command while in combat!" |
Message shown when a blacklisted command is blocked |
*Warning: disabling these options may allow players in combat to message each other or leave the combat team and lose their colour
Requirements
- Fabric loader 16.10 or later (1.21.4/5)
- Fabric loader 16.14 or later (1.21.6/7)
- Minecraft 1.21.4 or later
- May work with older versions (build yourself to test: see here for more)
- Java 21 or later
评论 0
登录后参与评分
还没有评论,来抢沙发吧