/difficulty

Cheats / op 2Java 26.3

Shows or changes the world difficulty. Its basic form is /difficulty; it has 5 syntax forms and 0 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
5
Arguments
0

/difficulty syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/difficulty
/difficulty easy
/difficulty hard
/difficulty normal
/difficulty peaceful

/difficulty examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/difficulty hard
Sets the world to Hard.
/difficulty peaceful
Sets the world to Peaceful (hostile mobs vanish).

Related commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Shows or changes the world difficulty. It has 5 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/difficulty FAQ (Java 26.3)

What does /difficulty do in Minecraft?

Shows or changes the world difficulty.

What is the syntax of /difficulty?

The basic form is /difficulty. All forms are listed above.

What is an example of /difficulty?

/difficulty hard — Sets the world to Hard.

Do you need cheats for /difficulty?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).