OmniGame logoOmniGame

/difficulty Command

Sets the world difficulty. Omitting the argument in Java Edition queries the current difficulty. Difficulty affects mob damage, spawning rates, hunger depletion, and other survival mechanics.

Syntax
/difficulty [peaceful|easy|normal|hard]
Permission: 2Edition: Both

Examples

/difficulty peaceful/difficulty hard/difficulty normal/difficulty easy

Notes

Numeric shortcuts (0–3) were removed in Java Edition 1.13; only keyword names are accepted. On a dedicated server, difficulty can also be set in server.properties, but /difficulty overrides it at runtime. Bedrock accepts the same keywords.

More commands