WorldJavaBedrock

/difficulty

Changes the world difficulty between peaceful, easy, normal, and hard. Peaceful stops hostile mob spawns and regenerates health; harder levels increase mob damage, hunger effects, and (on hard) zombie door-breaking and reinforcement. Run with no argument to print the current difficulty.

What is /difficulty used for?

What /difficulty is for

Sets the world difficulty — peaceful, easy, normal, or hard — or prints the current one when run with no argument.

When to use /difficulty

Drop to peaceful to clear hostile mobs and auto-regenerate health, or crank to hard for tougher combat, faster hunger, and zombie door-breaking.

Tips for /difficulty

Peaceful is the fastest way to turn mobs off — existing hostiles despawn and none spawn. Hardcore worlds are locked to hard and can't be changed this way.

Syntax

Parameters

leveloptional
literal
peaceful, easy, normal, or hard. Omit to query.

Command builder

Fill in the options below to generate a ready-to-paste /difficulty command.

optional

peaceful, easy, normal, or hard. Omit to query.

Examples

  • Switch to Peaceful — hostile mobs despawn and health regenerates.

  • Set Hard difficulty for maximum challenge.

  • Print the world's current difficulty.

Common questions

How do I turn off mobs in Minecraft?

Run /difficulty peaceful. Hostile mobs stop spawning and existing ones despawn. Combine with /kill @e[type=#minecraft:undead] to clear any already loaded.

Permission level

/difficulty requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.