Commands/difficulty

Sets or queries the difficulty level (peaceful, easy, etc.).
== Syntax ==
* Java Edition
: difficulty [peaceful|easy|normal|hard]
* Bedrock Edition
: difficulty <difficulty: Difficulty>
: difficulty <difficulty: int>
== Arguments ==
: 
: and 
: Specifies the new difficulty level. Must be one of the following:
:* peaceful (can be abbreviated as p or 0) for peaceful difficulty
:* easy (can be abbreviated as e or 1) for easy difficulty
:* normal (can be abbreviated as n or 2) for normal difficulty
:* hard (can be abbreviated as h or 3) for hard difficulty
: If unspecified, queries the current difficulty instead of changing it.
== Result ==
== Output ==
== Note ==
On a multiplayer server difficulty lasts only until the server is restarted — on restart, difficulty is reloaded from server.properties. 
In hardcore mode, the difficulty doesn't change even when successful.
== Examples ==
* To change the difficulty to hard: difficulty hard, difficulty h, or difficulty 3
== See also ==
* – changes a player's game mode (creative, survival, etc.)
== History ==
de:Befehl/difficulty
es:Comandos/difficulty
pt:Comandos/difficulty
ru:Команды консоли/difficulty
uk:Команди консолі/difficulty
ja:コマンド/difficulty
zh:命令/difficulty