Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/difficulty

Command

/difficulty

Shows the world's difficulty or changes it.

Syntax

/difficulty [(easy|hard|normal|peaceful)]

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it.
ResultWithout an argument it reports "The difficulty is" followed by the current difficulty, and the number /execute store saves is 0 for Peaceful, 1 for Easy, 2 for Normal, and 3 for Hard. With an argument it reports "The difficulty has been set to" and the number /execute store saves is 0.
No argumentShows the current difficulty without changing anything.
Same difficultyFails with "The difficulty did not change" if the world is already set to the chosen difficulty.
Locked difficultyThe command changes the difficulty even if it has been locked in the world's options.
HardcoreA Hardcore world always stays on Hard, whatever difficulty is chosen.

Examples

/difficulty

Shows the current difficulty.

/difficulty peaceful

Sets the difficulty to Peaceful.

/difficulty easy

Sets the difficulty to Easy.

/difficulty hard

Sets the difficulty to Hard.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)