pvp
booleanJava 26.2 & Bedrock 26.32Controls 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 trueBedrock
/gamerule pvp trueDisable pvp
Players cannot damage other players directly. Indirect damage (lava, fall, etc.) may still apply.
Java
/gamerule pvp falseBedrock
/gamerule pvp falseDefault: 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.