Minecraft

How to Change Your Minecraft Server Difficulty

Why /difficulty resets after a restart, where the permanent setting lives, and what each level actually changes for your players.

TheGameHosting Team 6 min read
Change Difficulty in Minecraft
Background: Minecraft © Mojang Studios

To change difficulty Minecraft server settings permanently, stop the server, set the difficulty line in server.properties to peaceful, easy, normal or hard, and start it again. For a quick change while people are playing, an operator can run /difficulty hard, but on a dedicated server that only lasts until the next restart.

That last detail is why so many admins think their change “didn’t save”. Below you have both methods, how they interact, what each level does, and what to check when the difficulty keeps going back.

Two ways to change the difficulty

MethodWhereTakes effectSurvives a restart?
difficulty= lineserver.propertiesNext startYes
/difficulty <level>Chat (as operator) or consoleImmediatelyNo, the file wins on restart

The Minecraft Wiki is clear about it: on a multiplayer server the difficulty set with the command lasts until the server restarts, and then it is read again from server.properties. Use the command to test, and the file to make it stick.

Change difficulty Minecraft server-wide in server.properties

  1. Stop the server with stop in the console, so it does not overwrite your edit when it shuts down.
  2. Open server.properties in the server’s main folder.
  3. Find the difficulty line and write one of the four names. The default is easy.
  4. Save the file without changing anything else on that line (no spaces, no capitals).
  5. Start the server and check the result with difficulty in the console. With no argument, it prints the current level.
Code
difficulty=hard
hardcore=false

Old guides use numbers (0 to 3). Current versions still accept them and convert them to the names, but writing the name avoids mistakes: peaceful = 0, easy = 1, normal = 2, hard = 3.

The /difficulty command

The command needs permission level 2, which every operator has. If you are not OP yet, see how to OP yourself on a Minecraft server. In game you type it with a slash; in the server console, without it.

Code
/difficulty            (shows the current difficulty)
/difficulty peaceful
/difficulty easy
/difficulty normal
/difficulty hard

The change applies to everyone at once, across the Overworld, the Nether and the End. It is handy for a quick test, or to drop to peaceful for a few minutes while friends finish a build, as long as you remember that a restart brings back whatever server.properties says.

What each difficulty level changes

LevelHostile mobsHungerGood for
peacefulMost hostile mobs do not spawnHunger does not drop and health regeneratesBuilding servers, young kids
easySpawn, deal less damageStarving stops at 5 heartsCasual groups, new players
normalStandard damageStarving stops at half a heartMost survival SMPs
hardMore damage; zombies can break wooden doorsStarving can kill youExperienced players, challenge runs

On hard, villagers killed by zombies always become zombie villagers, which matters if your players run a village trading hall. If you run a server for kids, peaceful or easy plus a few other settings make a big difference; our guide to a Minecraft server for kids covers them.

Difficulty is not the only thing that decides how punishing a death is. Many groups play on hard but turn on keep inventory so a creeper does not wipe hours of loot; see Minecraft server keep inventory.

Hardcore: the one difficulty you cannot change later

Hardcore is not a fifth value of difficulty. It is a separate line, hardcore=true, and it only applies to worlds created after you set it. A hardcore world is locked to hard, and when you die you can only spectate. On a hardcore world the /difficulty command does nothing, even if it reports success.

So you cannot switch an existing survival world to hardcore by editing one line: you need a new world. Our hardcore Minecraft server guide has the full setup, and how to reset a Minecraft server world shows how to start that new world while keeping the old one in a backup.

Difficulty keeps going back? Check this

  • You only used the command. After a restart the server reads server.properties again. Change the file too.
  • You edited the file while the server was running. Stop it first, edit, then start it.
  • A typo in the value. Hard, hard with a space, or difficult=hard will not work. Copy the line from above.
  • You edited the wrong file. Some people upload a server.properties from their PC into a subfolder. The one that counts is next to the server jar.
  • The world is hardcore. It stays on hard no matter what you set.
  • It is a Bedrock server. The idea is the same but the details differ; see Bedrock server difficulty.

Change the difficulty on TheGameHosting

  1. Open your server in the panel and type stop in Console.
  2. Go to Files → server.properties, set difficulty=normal (or the level you want) and save.
  3. Start the server and type difficulty in Console to confirm the level.
  4. For a temporary change, type difficulty peaceful in Console without stopping anything.

You never need to open ports or keep your PC on: the console and the file editor are in the browser, and if a co-admin handles the settings you can give them panel access in Users instead of sharing your account. On a Minecraft server from TheGameHosting your world runs 24/7 on AMD 9950X/7950X3D with DDR5 and NVMe in Dallas or Amsterdam, with DDoS protection. Compare plans on the plans and pricing page and use code FULL2026 for 15% off for life.

FAQ

How do I change the difficulty on my Minecraft server permanently?

Stop the server, set difficulty= in server.properties to peaceful, easy, normal or hard, and start it again. The /difficulty command alone is reset on the next restart.

Why does my Minecraft server difficulty keep resetting to easy?

Because easy is the default in server.properties, and the server reads that file every time it starts. Change the difficulty line in the file, not just the command.

Can I change a Minecraft server from hardcore to normal?

Not by editing difficulty: a hardcore world stays on hard and the command has no effect there. Set hardcore=false and generate a new world, keeping the old one in a backup.

Who can use /difficulty on a server?

Operators, since it needs permission level 2. It also works from the server console, typed without the slash.

Hosting for these games

Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.

All posts