How to Change Difficulty on Your Minecraft Server

Switch between Peaceful, Easy, Normal, and Hard on your Minecraft Java server via console or server.properties.

Minecraft has four difficulty levels that affect mob behavior, hunger, and damage taken.

Change Difficulty

Open the Console

In the XGamingServer Panel, click Console in the sidebar.

Run the difficulty command

difficulty peaceful
difficulty easy
difficulty normal
difficulty hard

The change takes effect immediately — no restart needed.

Open server.properties

Click Files in the sidebar and open server.properties.

Set difficulty

difficulty=normal

Difficulty Levels

LevelHostile MobsHungerSpecial
peacefulNone spawn — existing despawnNo hunger drainHealth regenerates constantly
easySpawn with low damageDrains slowlyCan't starve below 5 hearts
normalSpawn with standard damageStandard drainCan starve to half a heart
hardSpawn with maximum damageFast drainCan starve to death. Zombies break wooden doors

Hardcore Mode

For permadeath gameplay, enable Hardcore mode in addition to setting difficulty to hard. See Hardcore Mode.

Lock the Difficulty

To prevent players from changing difficulty in their own world settings, set:

difficulty=hard

In single-player worlds, players can override server difficulty. On dedicated servers, the server's setting always wins.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page