Commands/difficulty

From Minecraft Wiki
Jump to: navigation, search
difficulty
Restrictions

Operator

First introduced

Java Edition 1.4.2 (12w32a)
PE 1.0.5 (Pocket Edition alpha 1.0.5.0)

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

Syntax[edit]

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

Arguments[edit]

easy|hard|normal|peaceful (BE: difficulty: Difficulty or difficulty: int)

Specifies the new difficulty level. Must be one of the following:

Result[edit]

Fails if the arguments are not specified correctly, or if the original difficulty is the same as the specified difficulty‌[Java Edition only].

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.‌[Java Edition only]
If the argument is empty, querys current difficulty rather than changes it.‌[Java Edition only]

Examples[edit]

See also[edit]

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

History[edit]

This section is a stub, meaning that it lacks some important information. You can help by expanding it with further information relating to the topic.
Java Edition
1.4.212w32aAdded /difficulty.
Pocket Edition
1.0.5alpha 1.0.5.0Added /difficulty.