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 hardThe change takes effect immediately — no restart needed.
Open server.properties
Click Files in the sidebar and open server.properties.
Set difficulty
difficulty=normalDifficulty Levels
| Level | Hostile Mobs | Hunger | Special |
|---|---|---|---|
peaceful | None spawn — existing despawn | No hunger drain | Health regenerates constantly |
easy | Spawn with low damage | Drains slowly | Can't starve below 5 hearts |
normal | Spawn with standard damage | Standard drain | Can starve to half a heart |
hard | Spawn with maximum damage | Fast drain | Can 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=hardIn single-player worlds, players can override server difficulty. On dedicated servers, the server's setting always wins.
Related Guides
How is this guide?

Minecraft Server Types Explained (Vanilla, Paper, Forge, Fabric)
Compare all Minecraft server types — Vanilla, CraftBukkit, Spigot, Paper, Purpur, Forge, Fabric, and more.
How to Change Gamemode on Your Minecraft Server
Set the default gamemode (Survival, Creative, Adventure, Spectator) on your Minecraft Java server, and force gamemode on join.