/difficulty — Change Difficulty
minecraft — Cheat Codes
Set game difficulty without opening menu.
Syntax
/difficulty <peaceful|easy|normal|hard>
Example
/difficulty peaceful
💡 Notes
Peaceful removes hostile mobs and regenerates health. Hard increases mob damage and spawn rates.
👍 Pros
- Quick difficulty changes
- Survive tough situations
- Farm specific mobs
👎 Cons
- Affects all players on server
- May despawn hostile mobs holding items