/difficulty Command in Minecraft Java Edition

Check or Change the World Difficulty

Java EditionWorld & BlocksPermission: Level 2Bedrock version →

The /difficulty command lets you check or change the difficulty level of your Minecraft Java Edition world. You can choose between four modes: peaceful, easy, normal, and hard, or run the command by itself to see which mode is currently active.

Players and server operators use this command to make the game easier when building or harder when looking for a challenge. You must have permission level 2 (Operator status, or cheats turned on in single-player) to use it.

Syntax (Java 26.3, 5 forms)

  1. /difficulty
  2. /difficulty easy
  3. /difficulty hard
  4. /difficulty normal
  5. /difficulty peaceful

The forms you will use most

/difficulty
Displays the current difficulty level of the world in the chat without changing it.
/difficulty peaceful
Changes the world difficulty to peaceful.
/difficulty easy
Changes the world difficulty to easy.
/difficulty normal
Changes the world difficulty to normal.
/difficulty hard
Changes the world difficulty to hard.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition also includes the /difficulty command, using the syntax /difficulty <difficulty: Difficulty> or /difficulty <difficulty: int>, which means Bedrock allows an integer number as well as the difficulty name.

See /difficulty in Bedrock Edition →

FAQ

How do I check the current difficulty in Minecraft Java Edition?

Type /difficulty with no extra arguments and press Enter to see the current difficulty displayed in the chat.

Why can I not use the /difficulty command?

The /difficulty command requires permission level 2, meaning you need Operator status on a server or cheats turned on in a single-player world.

Can I use numbers with /difficulty in Java Edition?

No, in Java Edition (from 1.13 to 26.3) you must type out the full word (peaceful, easy, normal, or hard), whereas Bedrock Edition accepts an integer argument.

Related commands

/clone/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/setworldspawn/time/waypoint/weather/worldborder