Minecraft Java
/difficulty
Set or check the difficulty of your Minecraft world.
Difficulty editor
Change world difficulty
Select Set and a difficulty level. Chat commands start with a slash; console and command-block output omit it. Choose Check current to query the world difficulty.
What changes in survival
On Peaceful, hunger does not drain and most hostile mobs disappear. Starvation hurts on Easy and Normal but cannot kill the player. On Hard, starvation can be fatal. Switching to Peaceful can remove hostile mobs from farms.
Prepare and start a map
Set Peaceful for building without hostile mobs. Before launching the map, choose Normal and query the current value. If hostile mobs are already placed, check the difficulty without switching to Peaceful.
/difficulty peaceful/difficulty normal/difficulty
FAQ Frequently asked questions 30 questions
Essential questions 5
What does /difficulty do?
It reads or changes the Minecraft world difficulty. This affects damage, hunger and certain mob behavior mechanics.
Which difficulty levels are available?
Four modes are available: peaceful, easy, normal and hard. They have different gameplay conditions and survival restrictions.
How do I check the current difficulty?
Enter /difficulty without additional arguments. Minecraft Java Edition reports the current difficulty setting.
How do I enable Peaceful difficulty?
Use /difficulty peaceful. Most hostile monsters cannot remain under ordinary Peaceful difficulty conditions.
How do I enable Hard difficulty?
Enter /difficulty hard. This increases survival difficulty but does not turn an ordinary world into Hardcore mode.
Syntax and arguments 5
What is the full command syntax?
Java Edition uses /difficulty [peaceful|easy|normal|hard]. The argument is optional; omitting it displays the current difficulty.
Can I use numbers instead of names?
Minecraft Java Edition uses named difficulty modes. Numeric values from Bedrock tutorials are not valid in this syntax.
Does the difficulty need a minecraft: prefix?
No. The difficulty mode is a fixed command argument rather than an item or entity registry identifier.
Can I specify multiple difficulties at once?
No. Each execution selects a single difficulty. Run another command if you need to change the setting again.
How do I run it from a server console?
Game chat uses /difficulty, while a dedicated server console normally accepts difficulty without the leading slash.
Practical examples 5
How do I switch a world to Easy?
Run /difficulty easy. The setting applies to the world rather than only the player executing the command.
How do I select Normal difficulty?
Enter /difficulty normal. This selects normal difficulty without enabling the additional Hardcore rules.
How can I use Hard for a temporary event?
Record the original setting, run /difficulty hard before the event, then restore the previous difficulty afterward.
How do I return from Peaceful to Normal?
Run /difficulty normal. Hostile entities removed during Peaceful difficulty will not necessarily reappear automatically.
How can I verify the difficulty changed?
Run /difficulty again without arguments. Minecraft reports the difficulty currently applied after your change.
Advanced usage 5
Does difficulty affect other players?
Yes. Standard world difficulty is a shared setting, so changing it affects gameplay for other participants.
How does difficulty differ from /gamemode?
/difficulty changes survival conditions, while /gamemode controls player modes such as Survival, Creative, Adventure and Spectator.
How is Hard different from Hardcore?
Hard is a difficulty level. Hardcore also applies special world rules, so these settings are not equivalent.
Does difficulty affect mob mechanics?
Yes. Some mechanics, including certain conversion probabilities and damage behavior, depend on the selected difficulty.
Can difficulty change after a server restart?
Yes. On a dedicated server, the difficulty setting in server.properties can determine the value on the next startup.
Troubleshooting 4
Why does Minecraft report Unknown command?
Insufficient permissions or a misspelled command can cause this message. Check your access rights and the exact spelling.
Why does difficulty refuse to change?
Check permissions, Hardcore restrictions and whether the requested setting is already active. Some worlds prevent ordinary changes.
Why does the server return to Normal?
Inspect the difficulty property in server.properties. The server configuration can apply this setting on each startup.
Why do mobs still fail to spawn?
Check lighting, spawn conditions, gamerules and server restrictions. Difficulty is not the only factor controlling spawning.
Minecraft versions 3
Is the syntax identical in Java and Bedrock?
Mode names are similar, but Bedrock accepts additional argument forms. This FAQ specifically targets Java Edition.
Why does an older guide use the number 3?
Numerical difficulty notation can refer to Bedrock Edition. Modern Java syntax uses the named hard argument.
Can this command turn a normal world into Hardcore?
No. /difficulty changes the difficulty level but does not configure the complete set of Hardcore mode rules.
Permissions and safety 3
What permission level is required?
Java Edition normally requires permission level 2. Only trusted users should control a public server's global difficulty.
Can Peaceful disrupt farms or custom maps?
Yes. Switching can remove hostile mobs required by special mechanisms, farms and custom adventure maps.
How should I change server difficulty safely?
Record the original setting, notify players and check the consequences for farms and custom gameplay mechanisms beforehand.
Rate this tool
Did this tool work for you? Tell us what went well or what could improve.
Sign in to leave a review