Pumpkin-Docs/docs/en/config/pvp.md
Alexander Medvedev d219a313bc Better formatting
2025-08-11 22:42:58 +02:00

88 lines
1.2 KiB
Markdown

# PVP
PVP is a core part of the Vanilla mechanics, with even the smallest change affecting gameplay. Pumpkin allows you to fully configure PVP.
## Configuring PVP
#### `enabled`: Boolean
Whether PVP is enabled or not.
:::code-group
```toml [features.toml] {2}
[pvp]
enabled = true
```
:::
#### `hurt_animation`: Boolean
Whether to show red hurt animation and FOV bobbing or not.
:::code-group
```toml [features.toml] {2}
[pvp]
hurt_animation = true
```
:::
#### `protect_creative`: Boolean
Whether to protect players in creative against PVP or not.
:::code-group
```toml [features.toml] {2}
[pvp]
protect_creative = true
```
:::
#### `knockback`: Boolean
Whether attacks should have knockback or not.
:::code-group
```toml [features.toml] {2}
[pvp]
knockback = true
```
:::
#### `swing`: Boolean
Whether players should swing when attacking or not.
:::code-group
```toml [features.toml] {2}
[pvp]
swing = true
```
:::
## Default Config
By default, all PVP options are enabled in order to match vanilla behavior.
:::code-group
```toml [features.toml]
[pvp]
enabled = true
hurt_animation = true
protect_creative = true
knockback = true
swing = true
```
:::