Offer Why us? How it works?
Guide

How to Change the Difficulty on a Minecraft Server (and What Each Level Does)

The difficulty decides how hard mobs hit, whether hunger can kill you and whether zombies can break into your base. On a server it works differently from singleplayer: the button in the game menu does nothing, and a command without a change in the file is gone after the next restart. This guide shows how to change the difficulty for good, what each level actually changes and why mobs around your base get tougher over time.

Updated: 7 min read
Table of contents
  1. How do you change the difficulty on a Minecraft server?
  2. Changing the difficulty in the Spot.gg panel
  3. The /difficulty command
  4. What's the difference between the difficulty levels?
  5. Which difficulty should your server use?
  6. Hardcore and difficulty
  7. What is local (regional) difficulty?
  8. Does changing the difficulty affect the world?
  9. FAQ
  10. Why does the difficulty reset after a server restart?
  11. What is the default difficulty of a Minecraft server?
  12. How do I change the difficulty in game on a server?
  13. Can the Nether or the End have a different difficulty?
  14. Can you change the difficulty on a hardcore server?
  15. Can I write difficulty=3 instead of hard?

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:

  1. Change difficulty in server.properties – so the setting survives restarts.
  2. Type e.g. difficulty normal in 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.

  1. In the server menu, go to "Configuration" and open the "server.properties" tab. Type difficulty in the option search to jump straight to it.
  2. Choose peaceful, easy, normal or hard from the list.
  3. Click "Save changes" at the bottom. The panel reminds you that the change takes effect after the server restarts.
  4. 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. In server.properties numbers 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 hard even 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.

Other guides

How to OP Someone in Minecraft: /op, ops.json and Permission Levels How to op someone on a Minecraft Java server: the op and deop commands, granting OP in the panel, the ops.json file, op-permission-level 1–4 and why OP disappears on offline-mode servers. 9 min read Minecraft Mob Spawn Range and Rate: mob-spawn-range, spawn-limits and ticks-per How to change the mob spawn range and spawn rate on a Minecraft server: mob-spawn-range in spigot.yml, spawn-limits and ticks-per in bukkit.yml, and Paper's per-player-mob-spawns. 8 min read Minecraft Gamerules: Keep Inventory and the Full List Minecraft Java gamerules: the keep inventory command, the full list with defaults, the new 1.21.11+ names vs the old ones, and how to set them on a server. 7 min read Better MC 6 (BMC6) Guide: Mods, Versions, RAM and BMC6 Server BMC6 is Better MC on Minecraft 26.1.2 with NeoForge and Java 25: 279 mods, quests, BMC6 vs BMC5, update pace, RAM and how to make a BMC6 server. 9 min read How to Install Paper or Spigot on a Minecraft Server Switch your Minecraft server to Paper, Purpur or Spigot without losing the world: Change engine, where plugins go, Spigot via BuildTools and specific Paper builds. 9 min read Latest Minecraft Version: Java 26.3 and the Next Update (26.4) The latest Minecraft Java version is 26.3 Wilderness Bound. The new 26.x numbering, recent release dates, what 26.4 brings and how to update a server. 7 min read