Commands/difficulty

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

Syntax

 * Java Edition


 * Bedrock Edition

Arguments
(BE:  or  )
 * 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

Result
Fails if the arguments are not specified correctly, or if the original difficulty is the same as the specified difficulty.

If successful and applied, changes the game's difficulty. On a multiplayer server 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.
 * If the argument is empty, querys current difficulty rather than changes it).

Examples

 * To change the difficulty to hard:,  , or

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