Skip to content

PVP

PVP 是原版机制的核心部分,即使是最小的改动也会影响游戏玩法。Pumpkin 允许你完全配置 PVP。

配置 PVP

enabled: 布尔值

是否启用 PVP。

toml
[pvp]
enabled = true

hurt_animation: 布尔值

是否显示红色伤害动画和视野抖动。

toml
[pvp]
hurt_animation = true

protect_creative: 布尔值

是否保护创造模式下的玩家免受 PVP 伤害。

toml
[pvp]
protect_creative = true

knockback: 布尔值

是否攻击时带有击退效果。

toml
[pvp]
knockback = true

swing: 布尔值

是否玩家在攻击时挥动武器。

toml
[pvp]
swing = true

默认配置

默认情况下,所有 PVP 选项都启用以匹配原版行为。

toml
[pvp]
enabled = true
hurt_animation = true
protect_creative = true
knockback = true
swing = true

Released under the MIT License.