Skip to content
/craftcmd

Set Difficulty to Peaceful

Switch to Peaceful mode so hostile mobs don't spawn

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Sets the world to Peaceful difficulty — hostile mobs despawn immediately and won't spawn again, and your health regenerates passively. Passive mobs (cows, sheep, etc.) continue spawning and behaving normally. Switch back with /difficulty normal, hard, or easy.

/difficulty peaceful
20 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. Peaceful mode is active; no hostile mobs spawn.
  4. Run /difficulty normal to restore hostile mob spawning.

Related commands

Add Experience Levels
Add Experience Levels Awaiting in-game verification
Both

Give yourself or a player XP levels

/xp add @s 10L
Start a Thunder Storm
Start a Thunder Storm Awaiting in-game verification
Both

Trigger a thunderstorm with lightning

/weather thunder 600
Set Time to Night
Set Time to Night Awaiting in-game verification
Both

Make it nighttime immediately

/time set night
Display World Seed
Display World Seed Awaiting in-game verification
Java

See the world seed for reproducibility or map info

/seed

Become nearly invincible

/effect give @p resistance 999999 255 true

Switch yourself into Creative mode

/gamemode creative