Only show guides for your app
Set the default game mode and difficulty, run a true hardcore server (and know what really happens on death), and bend the rules with /gamerule — all from the Properties page and console.
Three things decide how your server actually plays: the game mode (can players build freely or must they survive?), the difficulty (how dangerous is it?), and the game rules (all the little switches like "keep your items when you die"). You set the first two from the Properties page and adjust everything live from the console. This guide covers all three, plus the truth about hardcore mode that the wiki paragraphs gloss over.
| At a glance | |
|---|---|
| You need | A Minecraft Java server with access to its Properties page and Console |
| Time | Ten minutes |
| Plan | Any |
| Mode | What players can do | Use it for |
|---|---|---|
| Survival | Gather, craft, take damage, die. The normal game. | The default for most servers. |
| Creative | Fly, infinite blocks, no damage, instant breaking. | Build servers and creative worlds. |
| Adventure | Interact and fight, but can't break/place blocks without the right tools. | Adventure maps and minigames where the world is fixed. |
| Spectator | Fly through blocks, see everything, touch nothing. | Watching, filming, or (as you'll see) being dead in hardcore. |
On the Properties page, the gamemode key is the mode new players start in. Save and restart to apply it. Two companions:
force-gamemode — when true, players are snapped back to the default mode every time they join, even if they were changed to another mode last session. Handy on a strict creative or adventure server./gamemode <mode> [player] in the Console or in-game (ops only) — changes one player's mode right now, no restart. /defaultgamemode <mode> changes the server default on the fly.The difficulty key takes peaceful, easy, normal, or hard. /difficulty <level> in the console changes it live. One thing worth knowing: peaceful removes all hostile mobs and continuously regenerates health — it's the "no danger" setting, not just an easy one.
Turn hardcore to true on the Properties page for the ultimate-stakes server. It does two things:
Here's the part people get wrong, because single-player and multiplayer differ:
🎯 Good to know: On a server, a player who dies in hardcore isn't kicked or banned — they're switched to spectator mode. They can fly around and watch the world, but can't interact or come back to life on their own. (In single-player, death instead locks the whole world to spectate-or-delete.)
So on your server, death is permanent for that player until an operator intervenes:
/gamemode survival <player> to revive them. Whether you ever do this is your server's call; a strict hardcore server never does.⚠️ Heads up: Switching
hardcoreon or off applies to the world going forward; it doesn't retroactively change a world's saved hardcore flag in every version cleanly. Set it before you start a hardcore run, and reset the world if you change your mind partway.
Game rules are per-world switches you change live with /gamerule <rule> [value] in the console — no restart, and they're saved inside the world (not in server.properties). Type /gamerule alone to list them. The ones people actually use:
| Rule | What it does |
|---|---|
keepInventory |
Keep your items and XP when you die (true/false). |
doDaylightCycle |
Whether time of day advances. false freezes it (eternal day/night). |
doWeatherCycle |
Whether weather changes on its own. |
mobGriefing |
Whether mobs can change blocks (creeper holes, endermen, etc.). |
doFireTick |
Whether fire spreads and burns out. false stops fire spreading. |
doInsomnia |
Whether phantoms spawn on players who haven't slept. |
doImmediateRespawn |
Skip the death screen and respawn instantly. |
showDeathMessages |
Whether "Player was slain by…" prints in chat. |
playersSleepingPercentage |
What fraction of players must sleep to skip the night (great for big servers). |
randomTickSpeed |
How fast crops grow, fire spreads, ice melts — higher is faster (and heavier). |
💡 Tip:
keepInventory trueis the single most-requested change on friendly survival servers — no more sprinting back to your death pile through the lava.
Change a mode or rule and confirm it in-game: switch gamemode and rejoin to spawn in the new mode; set /gamerule keepInventory true, die on purpose, and check you kept your stuff. For hardcore, the status is simply that a death drops you into spectator — test it on a throwaway world, not one you care about.
/gamerule change reverted — game rules save to the world. If you swapped worlds (changed level-name) or reset it, the new world has its own rules; set them again.hardcore isn't actually true. Set it on the Properties page, restart, and ideally start a fresh world so the flag takes from the beginning./gamemode survival then /tp them somewhere safe, or set spawn first.force-gamemode fighting your creative build sessions — turn it off, or use per-player /gamemode for the builders.