Minecraft Interactive Experience
Do you like this video?
Sets the difficulty level (peaceful, easy, etc.).
- Java Edition
- Bedrock Edition
difficulty <difficulty: Difficulty>
difficulty <difficulty: int>
- Specifies the new difficulty level. Must be one of the following:
peaceful(can be abbreviated as
0[Bedrock Edition only]) for peaceful difficulty
easy(can be abbreviated as
1[Bedrock Edition only]) for easy difficulty
normal(can be abbreviated as
2[Bedrock Edition only]) for normal difficulty
hard(can be abbreviated as
3[Bedrock Edition only]) for hard difficulty
- If unspecified, queries the current difficulty instead of changing it.[Java Edition only]
|Command||Trigger||Java Edition||Bedrock Edition|
|any||the arguments are not specified correctly||Unparseable||Failed|
|the original difficulty is the same as the specified difficulty||Failed||Successful|
|On success||Changes or queries the game's difficulty|
|any||Java Edition||On fail||0||0||0|
|On success||1||1||the number id of current difficulty (peaceful = 0, easy = 1, normal = 2, hard = 3)|
|any||Bedrock Edition||On fail||0||N/A||N/A|
On a multiplayer server difficilty lasts only until the server is restarted — on restart, difficulty is reloaded from server.properties.
- To change the difficulty to hard:
difficulty h[Bedrock Edition only], or
difficulty 3[Bedrock Edition only]
/gamemode– changes a player's game mode (creative, survival, etc.)
This section needs expansion.
You can help by expanding it.
|1.0.5||alpha 220.127.116.11||Added |