Skip to content
[/craft]

pvp

booleanJava 26.2 & Bedrock 26.32

Controls whether players can damage other players. When false, direct player-to-player combat is disabled.

Enable pvp

Players can deal damage to each other normally.

Java/gamerule pvp true
Bedrock/gamerule pvp true

Disable pvp

Players cannot damage other players directly. Indirect damage (lava, fall, etc.) may still apply.

Java/gamerule pvp false
Bedrock/gamerule pvp false

Default: true. Restore with /gamerule pvp true

What pvp does

Controls whether players can damage other players. When false, direct player-to-player combat is disabled.

Frequently asked questions

Does pvp false prevent all player damage?
It prevents direct player-to-player combat. Indirect sources like lava or void can still kill players, but they cannot directly attack each other.
Can players still use tridents or bows?
The projectile won't deal damage to players when pvp is false.

Related gamerules

All Gamerule commandsJava vs Bedrock guide