Guide · Configuration

How to change difficulty, gamemode and hardcore mode

Difficulty and gamemode can be changed both in server.properties and with commands. The difference matters: one changes the default for new players, the other changes things right now.

Difficulty

In server.properties set difficulty to peaceful, easy, normal or hard, and restart. To change it immediately without a restart, run difficulty hard in the console. Also update the file, so the setting you want is the one the server starts with.

Default gamemode

gamemode in server.properties sets the mode for players joining for the first time. It does not change players who have already joined. To change one player, use gamemode creative <name>. To change the default and existing players together, set force-gamemode=true, which puts every player into the default mode each time they join.

  • gamemode=survival: default for new players
  • force-gamemode=true: reset everyone to the default on join
  • defaultgamemode adventure: change the default with a command

Hardcore

hardcore=true locks the difficulty to hard and puts players into spectator mode when they die. It is best set before the world is created, because the world remembers hardcore in its level data. For a hardcore SMP where players should be able to come back later, use a plugin or a scheduled reset rather than vanilla hardcore, which has no built-in way to revive players apart from an operator changing their gamemode.

Per-world settings

Vanilla has one difficulty for every dimension. Plugins such as Multiverse-Core let different worlds on the same server have their own gamemode and difficulty, which is how hubs, creative plots and survival worlds share one server.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why does my difficulty keep going back to easy?
The value in server.properties is still easy. Change it in the file, with the server stopped, as well as with the command.
Can I turn hardcore off on an existing world?
Set hardcore=false and restart. Players already in spectator mode need their gamemode changed back manually with the gamemode command.
How do I make everyone survival when they join?
Set gamemode=survival and force-gamemode=true in server.properties, then restart the server.