0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin-Website.git synced 2025-02-14 13:38:12 +00:00
Alexander Medvedev 530524b739 init
2024-12-22 19:45:25 +01:00

69 lines
1.1 KiB
Markdown

# PVP
PVP is a core part of 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 againest 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 to match vanilla behavior.
:::code-group
```toml [features.toml]
[pvp]
enabled = true
hurt_animation = true
protect_creative = true
knockback = true
swing = true
```
:::