Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/difficulty

From SAS Gaming Wiki
Revision as of 15:43, 9 April 2026 by SyncBot (talk | contribs) (Remove broken links to missing pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Infobox command

Sets or queries the difficulty level (peaceful, easy, etc.).

Usage

On a multiplayer server difficulty lasts only until the server is restarted — on restart, difficulty is reloaded from Minecraft:server.properties.

In Hardcore mode, the difficulty doesn't change even when successful.Template:Only

Syntax

  • Java Edition
difficulty [peaceful|easy|normal|hard]
  • Bedrock Edition
difficulty <difficulty: Difficulty>
difficulty <difficulty: int>

Arguments

Template:El: Template:Code
Template:El: Template:Argument and Template:Argument

Specifies the new difficulty level. Must be one of the following:
  • peaceful (can be abbreviated as p or 0Template:Only) for Peaceful difficulty
  • easy (can be abbreviated as e or 1Template:Only) for Easy difficulty
  • normal (can be abbreviated as n or 2Template:Only) for Normal difficulty
  • hard (can be abbreviated as h or 3Template:Only) for Hard difficulty
If unspecified, queries the current difficulty instead of changing it.Template:Only

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

Examples

History

Template:Expand section

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

  • Template:Cmd – changes a player's game mode (Creative, Survival, etc.)

External links

Navigation

Template:Navbox commands

de:Befehl/difficulty es:Comandos/difficulty ja:コマンド/difficulty ko:명령어/difficulty pt:Comandos/difficulty ru:Команды консоли/difficulty uk:Команди консолі/difficulty zh:命令/difficulty