Minecraft:Commands/difficulty: Difference between revisions
More actions
imported>LauraFii |
Remove broken links to missing pages |
||
| Line 4: | Line 4: | ||
* 2 {{only|java|short=1}} | * 2 {{only|java|short=1}} | ||
* 1 {{only|bedrock|short=1}} | * 1 {{only|bedrock|short=1}} | ||
|others= | |others=Cheat only{{only|bedrock|short=1}} | ||
}} | }} | ||
| Line 12: | Line 12: | ||
On a multiplayer server difficulty lasts only until the server is restarted — on restart, difficulty is reloaded from [[Minecraft:server.properties]]. | On a multiplayer server difficulty lasts only until the server is restarted — on restart, difficulty is reloaded from [[Minecraft:server.properties]]. | ||
In | In Hardcore mode, the difficulty doesn't change even when successful.{{only|java}} | ||
== Syntax == | == Syntax == | ||
| Line 26: | Line 26: | ||
{{el|be|short=1}}: {{argument|be=1|difficulty: Difficulty|enum}} and {{argument|be=1|difficulty: int|int}} | {{el|be|short=1}}: {{argument|be=1|difficulty: Difficulty|enum}} and {{argument|be=1|difficulty: int|int}} | ||
: Specifies the new difficulty level. Must be one of the following: | : Specifies the new difficulty level. Must be one of the following: | ||
:* <code>peaceful</code> (can be abbreviated as <code>p</code> or <code>0</code>{{only|bedrock}}) for | :* <code>peaceful</code> (can be abbreviated as <code>p</code> or <code>0</code>{{only|bedrock}}) for Peaceful difficulty | ||
:* <code>easy</code> (can be abbreviated as <code>e</code> or <code>1</code>{{only|bedrock}}) for | :* <code>easy</code> (can be abbreviated as <code>e</code> or <code>1</code>{{only|bedrock}}) for Easy difficulty | ||
:* <code>normal</code> (can be abbreviated as <code>n</code> or <code>2</code>{{only|bedrock}}) for | :* <code>normal</code> (can be abbreviated as <code>n</code> or <code>2</code>{{only|bedrock}}) for Normal difficulty | ||
:* <code>hard</code> (can be abbreviated as <code>h</code> or <code>3</code>{{only|bedrock}}) for | :* <code>hard</code> (can be abbreviated as <code>h</code> or <code>3</code>{{only|bedrock}}) for Hard difficulty | ||
: If unspecified, queries the current difficulty instead of changing it.{{only|java}} | : If unspecified, queries the current difficulty instead of changing it.{{only|java}} | ||
| Line 76: | Line 76: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/difficulty | |||
es:Comandos/difficulty | |||
ja:コマンド/difficulty | |||
ko:명령어/difficulty | |||
pt:Comandos/difficulty | |||
ru:Команды консоли/difficulty | |||
uk:Команди консолі/difficulty | |||
zh:命令/difficulty | |||
Latest revision as of 15:43, 9 April 2026
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 aspor0Template:Only) for Peaceful difficultyeasy(can be abbreviated aseor1Template:Only) for Easy difficultynormal(can be abbreviated asnor2Template:Only) for Normal difficultyhard(can be abbreviated ashor3Template: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
- 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
de:Befehl/difficulty es:Comandos/difficulty ja:コマンド/difficulty ko:명령어/difficulty pt:Comandos/difficulty ru:Команды консоли/difficulty uk:Команди консолі/difficulty zh:命令/difficulty