Minecraft:Commands/difficulty
More actions
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 Minecraft: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 aspor0Template:Only) for Minecraft:Peaceful difficultyeasy(can be abbreviated aseor1Template:Only) for Minecraft:Easy difficultynormal(can be abbreviated asnor2Template:Only) for Minecraft:Normal difficultyhard(can be abbreviated ashor3Template:Only) for Minecraft: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
- To change the difficulty to hard:
difficulty hard,difficulty hTemplate:Only, ordifficulty 3Template:Only
History
Java Edition
Bedrock Edition
See also
- Template:Cmd – changes a player's game mode (Creative, Survival, etc.)
External links
Minecraft:de:Befehl/difficulty Minecraft:es:Comandos/difficulty Minecraft:ja:コマンド/difficulty Minecraft:ko:명령어/difficulty Minecraft:pt:Comandos/difficulty Minecraft:ru:Команды консоли/difficulty Minecraft:uk:Команди консолі/difficulty Minecraft:zh:命令/difficulty