Commands/difficulty

Sets or queries the difficulty level (peaceful, easy, etc.).

Syntax

 * Java Edition


 * Bedrock Edition

Arguments

 * peaceful
 * and
 * Specifies the new difficulty level. Must be one of the following:
 * (can be abbreviated as  or  ) for peaceful difficulty
 * (can be abbreviated as  or  ) for easy difficulty
 * (can be abbreviated as  or  ) for normal difficulty
 * (can be abbreviated as  or  ) for hard difficulty
 * If unspecified, queries the current difficulty instead of changing it.

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:,  , or

History
Befehl/difficulty Comandos/difficulty Команды консоли/difficulty Команди консолі/difficulty コマンド/difficulty 命令/difficulty