How to Use the Difficulty Command in Minecraft (2025)

This Minecraft tutorial explains how to use the /difficulty command with screenshots and step-by-step instructions.

You can switch between four difficulty levels in the game using the /difficulty command in Minecraft. Let's explore how to use this cheat (game command).

Supported Platforms

The /difficulty command is available in the following versions of Minecraft:

PlatformSupported (Version*)
How to Use the Difficulty Command in Minecraft (1)Java Edition (PC/Mac)Yes (1.4.2)
How to Use the Difficulty Command in Minecraft (2)Pocket Edition (PE)Yes (1.0.5)
How to Use the Difficulty Command in Minecraft (3)Xbox 360No
How to Use the Difficulty Command in Minecraft (4)Xbox OneYes (1.2)
How to Use the Difficulty Command in Minecraft (5)PS3No
How to Use the Difficulty Command in Minecraft (6)PS4Yes (1.14.0)
How to Use the Difficulty Command in Minecraft (7)Wii UNo
How to Use the Difficulty Command in Minecraft (8)Nintendo SwitchYes (1.5.0)
How to Use the Difficulty Command in Minecraft (9)Windows 10 EditionYes (1.0.5)
How to Use the Difficulty Command in Minecraft (10)Education EditionYes (1.0.18)

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

Difficulty Command

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Difficulty Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac), the syntax to change the game difficulty is:

/difficulty <level>

Definitions

  • level is the difficulty level to set the game to. It can be one of the following:

    levelDescription
    peaceful
    (also the abbreviations p or 0 in Java Edition 1.12 and older)
    Peaceful mode
    easy
    (also the abbreviations e or 1 in Java Edition 1.12 and older)
    Easy mode
    normal
    (also the abbreviations n or 2 in Java Edition 1.12 and older)
    Normal mode
    hard
    (also the abbreviations h or 3 in Java Edition 1.12 and older)
    Hard mode

    TIP: You can no longer use the abbreviations starting in Java Edition 1.13.

Difficulty Command in Minecraft Pocket Edition (PE)

In Minecraft Pocket Edition (PE), the syntax to change the game difficulty is:

/difficulty <difficultyName>
/difficulty <difficultyID>

Definitions

  • difficultyName is the name of the difficulty level to set the game to. It can be one of the following:

    difficultyNameDescription
    peaceful (or abbreviated as p)Peaceful mode
    easy (or abbreviated as e)Easy mode
    normal (or abbreviated as n)Normal mode
    hard (or abbreviated as h)Hard mode
  • difficultyID is the ID of the difficulty level to set the game to. It can be one of the following:

    difficultyIDDescription
    0Peaceful mode
    1Easy mode
    2Normal mode
    3Hard mode

Difficulty Command in Minecraft Xbox One Edition

In Minecraft Xbox One Edition, the syntax to change the game difficulty is:

/difficulty <difficultyName>
/difficulty <difficultyID>

Definitions

  • difficultyName is the name of the difficulty level to set the game to. It can be one of the following:

    difficultyNameDescription
    peaceful (or abbreviated as p)Peaceful mode
    easy (or abbreviated as e)Easy mode
    normal (or abbreviated as n)Normal mode
    hard (or abbreviated as h)Hard mode
  • difficultyID is the ID of the difficulty level to set the game to. It can be one of the following:

    difficultyIDDescription
    0Peaceful mode
    1Easy mode
    2Normal mode
    3Hard mode

Difficulty Command in Minecraft PS4 Edition

In Minecraft PS4 Edition, the syntax to change the game difficulty is:

/difficulty <difficultyName>
/difficulty <difficultyID>

Definitions

  • difficultyName is the name of the difficulty level to set the game to. It can be one of the following:

    difficultyNameDescription
    peaceful (or abbreviated as p)Peaceful mode
    easy (or abbreviated as e)Easy mode
    normal (or abbreviated as n)Normal mode
    hard (or abbreviated as h)Hard mode
  • difficultyID is the ID of the difficulty level to set the game to. It can be one of the following:

    difficultyIDDescription
    0Peaceful mode
    1Easy mode
    2Normal mode
    3Hard mode

Difficulty Command in Minecraft Nintendo Switch Edition

In Minecraft Nintendo Switch Edition, the syntax to change the game difficulty is:

/difficulty <difficultyName>
/difficulty <difficultyID>

Definitions

  • difficultyName is the name of the difficulty level to set the game to. It can be one of the following:

    difficultyNameDescription
    peaceful (or abbreviated as p)Peaceful mode
    easy (or abbreviated as e)Easy mode
    normal (or abbreviated as n)Normal mode
    hard (or abbreviated as h)Hard mode
  • difficultyID is the ID of the difficulty level to set the game to. It can be one of the following:

    difficultyIDDescription
    0Peaceful mode
    1Easy mode
    2Normal mode
    3Hard mode

Difficulty Command in Minecraft Windows 10 Edition

In Minecraft Windows 10 Edition, the syntax to change the game difficulty is:

/difficulty <difficultyName>
/difficulty <difficultyID>

Definitions

  • difficultyName is the name of the difficulty level to set the game to. It can be one of the following:

    difficultyNameDescription
    peaceful (or abbreviated as p)Peaceful mode
    easy (or abbreviated as e)Easy mode
    normal (or abbreviated as n)Normal mode
    hard (or abbreviated as h)Hard mode
  • difficultyID is the ID of the difficulty level to set the game to. It can be one of the following:

    difficultyIDDescription
    0Peaceful mode
    1Easy mode
    2Normal mode
    3Hard mode

Difficulty Command in Minecraft Education Edition

In Minecraft Education Edition, the syntax to change the game difficulty is:

/difficulty <difficultyName>
/difficulty <difficultyID>

Definitions

  • difficultyName is the name of the difficulty level to set the game to. It can be one of the following:

    difficultyNameDescription
    peaceful (or abbreviated as p)Peaceful mode
    easy (or abbreviated as e)Easy mode
    normal (or abbreviated as n)Normal mode
    hard (or abbreviated as h)Hard mode
  • difficultyID is the ID of the difficulty level to set the game to. It can be one of the following:

    difficultyIDDescription
    0Peaceful mode
    1Easy mode
    2Normal mode
    3Hard mode

Examples

  • Java
  • PE
  • Xbox
  • PS
  • Nintendo
  • Win10
  • Edu

Example in Java Edition (PC/Mac) 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20

To change to Peaceful mode in Minecraft 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20:

/difficulty peaceful

To change to Easy mode:

/difficulty easy

To change to Normal mode:

/difficulty normal

To change to Hard mode:

/difficulty hard

Example in Java Edition (PC/Mac) 1.11 and 1.12

To change to Peaceful mode in Minecraft 1.11 and 1.12:

/difficulty p

To change to Easy mode:

/difficulty e

To change to Normal mode:

/difficulty n

To change to Hard mode:

/difficulty h

Example in Pocket Edition (PE)

To change to Peaceful mode in Minecraft PE:

/difficulty peaceful

To change to Peaceful mode:

/difficulty 0

To change to Peaceful mode:

/difficulty p

To change to Easy mode:

/difficulty e

To change to Normal mode:

/difficulty n

To change to Hard mode:

/difficulty h

Example in Xbox One Edition

To change to Peaceful mode in Minecraft Xbox One Edition:

/difficulty peaceful

To change to Peaceful mode:

/difficulty p

To change to Peaceful mode:

/difficulty 0

To change to Easy mode:

/difficulty 1

To change to Normal mode:

/difficulty 2

To change to Hard mode:

/difficulty 3

Example in PS4 Edition

To change to Peaceful mode in Minecraft PS4 Edition:

/difficulty peaceful

To change to Peaceful mode:

/difficulty 0

To change to Peaceful mode:

/difficulty p

To change to Easy mode:

/difficulty e

To change to Normal mode:

/difficulty n

To change to Hard mode:

/difficulty h

Example in Nintendo Switch Edition

To change to Peaceful mode in Minecraft Nintendo Switch Edition:

/difficulty peaceful

To change to Peaceful mode:

/difficulty 0

To change to Peaceful mode:

/difficulty p

To change to Easy mode:

/difficulty e

To change to Normal mode:

/difficulty n

To change to Hard mode:

/difficulty h

Example in Windows 10 Edition

To change to Peaceful mode in Minecraft Windows 10 Edition:

/difficulty peaceful

To change to Peaceful mode:

/difficulty p

To change to Peaceful mode:

/difficulty 0

To change to Easy mode:

/difficulty 1

To change to Normal mode:

/difficulty 2

To change to Hard mode:

/difficulty 3

Example in Minecraft Education Edition

To change to Peaceful mode in Minecraft Education Edition:

/difficulty peaceful

To change to Peaceful mode:

/difficulty p

To change to Peaceful mode:

/difficulty 0

To change to Easy mode:

/difficulty e

To change to Normal mode:

/difficulty n

To change to Hard mode:

/difficulty h

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.
  • For Pocket Edition (PE), tap on the chat button How to Use the Difficulty Command in Minecraft (11) at the top of the screen.
  • For Xbox One, press the D-Pad (right) How to Use the Difficulty Command in Minecraft (12) on the controller.
  • For PS4, press the D-Pad (right) How to Use the Difficulty Command in Minecraft (13) on the controller.
  • For Nintendo Switch, press the right arrow button How to Use the Difficulty Command in Minecraft (14) on the controller.
  • For Windows 10 Edition, press the T key to open the chat window.
  • For Education Edition, press the T key to open the chat window.

2. Type the Command

In this example, we will set the difficulty level to Easy with the following command:

/difficulty easy

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

How to Use the Difficulty Command in Minecraft (15)

Once the cheat has been entered, the difficulty mode of the game should be changed. In this example, we've entered the command to change the difficulty level to Easy mode.

How to Use the Difficulty Command in Minecraft (16)

You will see the message "Set game difficulty to xxx" appear in the lower left corner of the game window to indicate that the difficulty has changed. The value xxx is the difficulty level that you selected.

Congratulations, you just learned how to use the /difficulty command in Minecraft!

How to Use the Difficulty Command in Minecraft (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 6376

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.