Minecraft /difficulty command

Java EditionBedrock EditionSince Java 1.4.2 (12w32a) / Pocket 1.0.5

Quick answer: Sets or queries the world's difficulty level. Syntax: difficulty [peaceful|easy|normal|hard]

/difficulty switches between peaceful, easy, normal and hard. On peaceful, hostile mobs stop spawning and players regenerate health; on hard, zombies can break wooden doors and starvation can kill. Run it with no argument to see the current difficulty. On a multiplayer server the change lasts until restart, when the difficulty in server.properties is reloaded.

Syntax

EditionSyntax
Javadifficulty [peaceful|easy|normal|hard]
Bedrockdifficulty <difficulty: Difficulty> OR difficulty <difficulty: int>

Targets / arguments: The whole world or server. Requires: Cheats enabled / operator level 2 (Java), 1 (Bedrock).

Examples

/difficulty hard

Switch the world to hard difficulty

/difficulty peaceful

Remove hostile mobs and stop hunger damage

/difficulty

Check the current difficulty

Tips

Related commands

/gamemode/defaultgamemode/gamerule