Check or Change the World Difficulty
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.
/difficulty/difficulty easy/difficulty hard/difficulty normal/difficulty peaceful/difficulty/difficulty peaceful/difficulty easy/difficulty normal/difficulty hard/difficultyChecks which difficulty setting is currently active in your world.
/difficulty peacefulSwitches the game to peaceful mode so you can build without danger.
/difficulty easySets the world to easy mode for a lighter survival challenge.
/difficulty normalChanges the world to the standard normal difficulty setting.
/difficulty hardSets the game to hard mode for maximum survival difficulty.
Measured from the game files of every Java release from 1.13 to 26.3.
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.
Type /difficulty with no extra arguments and press Enter to see the current difficulty displayed in the chat.
The /difficulty command requires permission level 2, meaning you need Operator status on a server or cheats turned on in a single-player world.
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.
/clone/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/setworldspawn/time/waypoint/weather/worldborder