/difficulty
Decide how dangerous the world is, from peaceful to hard.
Overview
What is the /difficulty command?
The /difficulty command sets the world difficulty: Peaceful (no hostile mobs, health regenerates), Easy, Normal or Hard. It affects mob damage, hunger, and whether hostile mobs spawn at all.
Switching to Peaceful is the quickest way to clear hostile mobs and stop taking starvation damage; Hard is the choice for a tougher survival run.
When to use it: Use /difficulty to make the world easier or harder, or switch to Peaceful to remove hostile mobs.
At a glance
Syntax
/difficulty <level>See it
What it does
Anatomy
Every part, explained
- 1
CommandRequired/difficultySets the world's difficulty.
- 2
LevelRequired<level>peaceful, easy, normal, or hard.
Your turn
Try it yourself
Copy & paste
Examples
/difficulty peacefulNo hostile mobs, hunger refills.
/difficulty normalThe standard experience.
/difficulty hardTougher mobs, real starvation.
Avoid these
Common mistakes
/difficulty 3/difficulty hardUse the name - numeric ids are deprecated.
/difficulty easymode/difficulty easyThe level is just 'easy'.
Good to know
Frequently asked questions
- How do you change difficulty with a command?
- Run /difficulty <level>, for example /difficulty peaceful or /difficulty hard.
- How do you turn off hostile mobs?
- Set /difficulty peaceful โ hostile mobs stop spawning and existing ones despawn, and your health regenerates.
- Does difficulty affect hunger?
- Yes. On Peaceful hunger doesn't drain to harm you; on Hard you can starve to death, while Easy and Normal sit in between.
Keep going