How do you change the difficulty on a Minecraft server?
Set difficulty in server.properties to peaceful, easy, normal or hard and restart the server. That's the only change that sticks. The /difficulty command works instantly, but the server reads the value from server.properties again every time it starts, so without changing the file the old difficulty comes back after a restart.
The easiest way is to do both at once:
- Change
difficultyinserver.properties– so the setting survives restarts. - Type e.g.
difficulty normalin the server console – so it applies right away, without kicking everyone with a restart.
A new server starts on easy. The difficulty button in the game's options only works in singleplayer (or a world opened to LAN) – on a dedicated server, the server decides.
Changing the difficulty in the Spot.gg panel
Open "Configuration" → the "server.properties" tab, pick a value in the difficulty field (in the "Most commonly used" section) and click "Save changes". No need to edit the file by hand.
- In the server menu, go to "Configuration" and open the "server.properties" tab. Type
difficultyin the option search to jump straight to it. - Choose
peaceful,easy,normalorhardfrom the list. - Click "Save changes" at the bottom. The panel reminds you that the change takes effect after the server restarts.
- To skip the restart, open the "Console" tab and type the same value, without the leading slash:
difficulty hard
The console confirms the new difficulty and players feel it immediately. On the next restart the server loads hard from server.properties, so nothing gets reverted.
You can also open the file in the built-in editor in the "Files" tab – stop the server first, because a running server can overwrite manual edits. The rest of the file is explained in our server.properties guide.
The /difficulty command
/difficulty <level> changes the difficulty for the whole server instantly; without an argument it shows the current level. It needs operator rights (permission level 2), and in the server console you type it without the slash.
| Command | What it does |
|---|---|
/difficulty |
Shows the current difficulty |
/difficulty peaceful |
Peaceful |
/difficulty easy |
Easy |
/difficulty normal |
Normal |
/difficulty hard |
Hard |
Good to know:
- Use the level's name. Numbers (
0–3) and shortcuts (p,e,n,h) haven't worked in Java Edition since 1.13. Inserver.propertiesnumbers are still accepted (0= peaceful,3= hard), and the server converts them to names. - Setting the level that's already active returns an error message – that's normal, nothing is broken.
- In game you need OP. See how to OP someone in Minecraft.
- On a hardcore server the command changes nothing – the world stays on
hardeven if the command reports success.
What's the difference between the difficulty levels?
Peaceful removes hostile mobs and hunger, easy softens damage and hunger, normal is the standard game, and hard raises damage by about half and lets hunger kill you. The details (Minecraft Java):
| What | Peaceful | Easy | Normal | Hard |
|---|---|---|---|---|
| Hostile mobs | Almost never spawn, summoned ones vanish | Yes | Yes | Yes |
| Mob damage | – | Lower (zombie: 2.5 HP) | Standard (zombie: 3 HP) | About 1.5× (zombie: 4.5 HP) |
| Hunger | The bar doesn't drop | Drains health to 5 hearts at most | Drains health down to half a heart | Can kill |
| Zombies break doors | No | No | No | Yes (wooden and copper doors) |
| Villager killed by a zombie | – | Dies | 50% chance to become a zombie villager | Always becomes a zombie villager |
| Cave spider poison | – | None | 7 s | 15 s |
| Raids | Can't start | 3 waves | 5 waves | 7 waves |
On hard, skeletons also shoot faster, mobs wear armor more often and spiders can spawn with effects such as Speed or Invisibility. On peaceful, health regenerates fast, but you can still die – from a fall or lava, for example. The full breakdown is on the Minecraft Wiki.
Careful with peaceful on a survival server: switching to it removes every hostile mob, so mob farms stop working and raids won't start. If all you want is no monsters, in Minecraft 1.21.9 and newer you can keep your difficulty and turn off the spawn_monsters game rule instead – see Minecraft gamerules.
Which difficulty should your server use?
For most servers with friends, normal is the right choice – the game plays the way it was designed, and hunger won't kill anyone. The other levels fit specific situations:
| Server | Level | Why |
|---|---|---|
| Building, creative projects, new players | peaceful |
No monsters, no hunger, nothing in the way |
| Relaxed survival, younger players | easy |
Mobs are there but forgive mistakes |
| Regular survival with friends | normal |
The standard rules of the game |
| A challenge for an experienced group | hard |
More damage, zombies get into houses |
| One life only | hardcore | Always hard, spectator mode after death |
On modpack servers the difficulty works the same way, but some mods add their own difficulty settings (mob scaling, for example) in their config files in the config folder.
Hardcore and difficulty
With hardcore=true the server ignores the difficulty option and always runs on hard. Neither a command nor server.properties gets around that. In the Spot.gg panel, hardcore is under "Configuration" → "server.properties" → the "Advanced" section.
Hardcore is a setting for newly created worlds, so it usually goes together with a fresh world. How to set it up and what happens when a player dies is covered in our Minecraft hardcore server guide.
What is local (regional) difficulty?
Local difficulty is a second layer: it rises with the time players spend in a chunk, with the age of the world and during a full moon. That's why mobs around a base you've played at for weeks wear armor and enchanted gear more often than mobs at a fresh spawn.
- You can see it on the debug screen (F3) as Local Difficulty.
- Time spent in a chunk counts up to 50 hours; world age counts from in-game day 3 to day 63.
- The range depends on the regular level: easy 0.75–1.5, normal 1.5–4.0, hard 2.25–6.75. Always 0 on peaceful.
- It affects, among other things, the chance of armored mobs, how many phantoms spawn and the size of pillager patrols.
On a server this means the same normal level feels noticeably harder around the base after a few weeks. If players complain, going down one level lowers the local difficulty too.
Does changing the difficulty affect the world?
A different difficulty doesn't change terrain or builds, and you can switch back at any time. The only lasting effects are things that happen in game: mobs removed on peaceful (named monsters in farms, for example) don't come back on their own, and villagers turned into zombies on hard stay zombies until you cure them.
Before switching a big survival server to peaceful, make a backup of the world in the "Backup" tab with "Create backup".
Paid Minecraft servers on Spot.gg start from $3.90 per month.
FAQ
Why does the difficulty reset after a server restart?
The /difficulty command only lasts until the next restart. On startup the server loads difficulty from server.properties. Change it there (on Spot.gg: "Configuration" → "server.properties") and save.
What is the default difficulty of a Minecraft server?
easy. That's what a newly generated server.properties contains.
How do I change the difficulty in game on a server?
Type /difficulty normal (or another level) in chat. You need operator rights. The button in the game's options doesn't work on a server.
Can the Nether or the End have a different difficulty?
Not in vanilla Minecraft – difficulty from server.properties applies to the whole server.
Can you change the difficulty on a hardcore server?
No. With hardcore=true the world is always on hard, and /difficulty changes nothing.
Can I write difficulty=3 instead of hard?
In server.properties, yes – numbers 0 to 3 are accepted and converted to names. The /difficulty command needs the name.