/difficulty

/difficulty
Permission level
required
  • 2 ‌
  • 1 ‌
Restrictions

Cheat only‌

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

Usage

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.‌

Syntax

  • Java Edition
difficulty [peaceful|easy|normal|hard]
  • Bedrock Edition
difficulty <difficulty: Difficulty>
difficulty <difficulty: int>

Arguments

JE: peaceful|easy|normal|hard
BE: difficulty: Difficulty: enum and difficulty: int: int

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

CommandTriggerJava EditionBedrock Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable Unparseable
The original difficulty is the same as the specified difficulty. Failed Successful
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
AnyJava EditionOn fail000
/difficulty ...On success110
/difficultyOn success11the number id of current difficulty (peaceful = 0, easy = 1, normal = 2, hard = 3)
AnyBedrock EditionOn fail0N/AN/A
On success1N/AN/A

Examples

  • To change the difficulty to hard: difficulty hard, difficulty h‌, or difficulty 3

History

This section needs expansion.
 
You can help by expanding it.
Java Edition
1.4.212w32aAdded /difficulty.
1.1317w45a/difficulty [<value>] now only accepts string IDs, not shorthand or numeric.
/difficulty 2 is now /difficulty normal.
/difficulty p is now /difficulty peaceful.
The player can now query for the current difficulty by using /difficulty without any arguments.
Pocket Edition
1.0.5alpha 1.0.5.0Added /difficulty.

See also

  • /gamemode – changes a player's game mode (creative, survival, etc.)

Navigation