From Minecraft Wiki
Jump to: navigation, search

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

  • Java Edition
difficulty [<difficulty>]
  • Bedrock Edition
difficulty <difficulty: Difficulty>
difficulty <difficulty: int>
difficulty (BE: difficulty: Difficulty or difficulty: int) (optional‌[Java Edition only])
Specifies the new difficulty level. Must be one of the following:
Fails if the arguments are not specified correctly.
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 In Hardcore mode, the difficulty doesn't change even when successful. ‌[Java Edition only]
To change the difficulty to hard: difficulty hard, difficulty h,‌[Bedrock Edition only] or difficulty 3[Bedrock Edition only]
See also
/gamemode – changes a player's game mode (creative, survival, etc.)


Java Edition
1.4.212w32aAdded /difficulty.
Pocket Edition
1.0.5alpha /difficulty.