All commands
๐Ÿ’€
AdminJava โœ“Bedrock โœ“

/difficulty

Decide how dangerous the world is, from peaceful to hard.

Overview

What is the /difficulty command?

The /difficulty command sets the world difficulty: Peaceful (no hostile mobs, health regenerates), Easy, Normal or Hard. It affects mob damage, hunger, and whether hostile mobs spawn at all.

Switching to Peaceful is the quickest way to clear hostile mobs and stop taking starvation damage; Hard is the choice for a tougher survival run.

When to use it: Use /difficulty to make the world easier or harder, or switch to Peaceful to remove hostile mobs.

At a glance

Syntax

Syntax
/difficulty <level>
commandtargetcoordsvaluerequiredoptional

See it

What it does

PeacefulEasyNormalHard
๐ŸงŸ
From peaceful to hard

Anatomy

Every part, explained

  1. 1
    /difficultyCommandRequired

    Sets the world's difficulty.

  2. 2
    <level>LevelRequired

    peaceful, easy, normal, or hard.

Your turn

Try it yourself

Playground
2 tokens ยท press Enter to run

Copy & paste

Examples

/difficulty peaceful

No hostile mobs, hunger refills.

/difficulty normal

The standard experience.

/difficulty hard

Tougher mobs, real starvation.

Avoid these

Common mistakes

โœ•/difficulty 3
โœ“/difficulty hard

Use the name - numeric ids are deprecated.

โœ•/difficulty easymode
โœ“/difficulty easy

The level is just 'easy'.

Good to know

Frequently asked questions

How do you change difficulty with a command?
Run /difficulty <level>, for example /difficulty peaceful or /difficulty hard.
How do you turn off hostile mobs?
Set /difficulty peaceful โ€” hostile mobs stop spawning and existing ones despawn, and your health regenerates.
Does difficulty affect hunger?
Yes. On Peaceful hunger doesn't drain to harm you; on Hard you can starve to death, while Easy and Normal sit in between.

Keep going

Related commands