Minecraft Server Configuration Guide: server.properties, Gamerules and Worlds
A complete guide to configuring a Minecraft Java server: the server.properties keys that matter, the MOTD, icon and server list, resource packs, gamerules for SMPs, /tick, transfers and server links, the world folder layout, custom world generation, corruption and backups.
ChunkPod Team · · 40 min read
A Minecraft Java server is configured in three places. server.properties holds the server-wide settings: who can join, how far players see, how the server talks to clients and what it shows in the multiplayer list. Gamerules live inside the world and change how the game itself behaves: whether you keep your items on death, whether creepers break blocks, how many players need to sleep. And the world folder holds everything the game remembers, from the seed to every player's inventory.
This guide covers all three. It starts with the server.properties keys that actually change how a server plays, moves through the multiplayer list and resource packs, then covers the gamerules SMPs argue about, a few newer vanilla features that are easy to miss, and finally the world folder: what is in it, how custom terrain changes it, how it gets corrupted and what a backup really protects.
Versions matter here, because Mojang has moved several things around recently. Where a setting was added, renamed or moved, the version is given. Two changes affect large parts of this guide:
- Java Edition 1.21.11 renamed every gamerule to snake_case (
keepInventorybecamekeep_inventory), and renamed or replaced a few entirely. - Java Edition 26.1 (released March 2026) reorganized the world folder and moved gamerules and the seed out of
level.dat.
server.properties: the settings that matter
server.properties is a plain text file of key=value lines that sits in the server's main folder. The server creates it with defaults on first start and reads it on every start, so changes take effect after a restart. It has around 60 keys. Most are set once and forgotten. A smaller group decides how much work the server does per player, and those are where most of the tuning happens.
Performance and distance
These keys control how much of the world the server keeps loaded and active for each player, and how much it sends over the network.
view-distance (default 10) is the radius, in chunks, that the server sends to each player. A value of 10 means a 21 by 21 area of chunks around every player: 10 in each direction plus the chunk they stand in. Chunk count grows with the square of the radius, so going from 6 to 12 roughly quadruples the chunks held per player. This one setting drives most of a server's memory and network cost. Community servers commonly run 6 to 8, and large networks go lower.
simulation-distance (default 10) was split out from view-distance in 1.18. It sets how far from each player the world is actually simulated: mob AI and spawning, crop growth, redstone, hoppers, water flow and block updates. view-distance decides what a player sees. simulation-distance decides what runs. Terrain beyond simulation-distance but inside view-distance is visible but frozen: mobs stand still, farms stop and redstone waits. Dropping it to 6 or 8 often saves a lot of tick time on a server with farms, because the mob cap and entity count scale with the simulated area. Setting it higher than view-distance is allowed but pointless, since you pay for chunks nobody can see.
If you are unsure where to start, the View Distance Calculator suggests both values from your memory, player count and target TPS.
entity-broadcast-range-percentage (default 100, range 10 to 1000) scales how far away the server tells clients about entities: mobs, dropped items, arrows and other players. Lowering it to 50 or 75 means distant entities pop into view later, but it cuts entity update packets. That helps servers with big farms, lots of item drops or heavy PvP. If a server feels laggy specifically around mobs and items, this is worth trying before cutting view-distance.
network-compression-threshold (default 256) is the packet size, in bytes, above which the server compresses packets. It trades CPU for bandwidth. -1 turns compression off, which can make sense on a LAN where bandwidth is not the bottleneck. Behind a Velocity or BungeeCord proxy, the usual pattern is -1 on each backend server and letting the proxy handle compression once at its edge.
max-tick-time (default 60000) is how many milliseconds a single tick may take before the vanilla watchdog decides the server is hung and shuts it down. -1 disables it. Spigot and Paper run their own watchdog, configured with timeout-time in spigot.yml.
sync-chunk-writes (default true) makes chunk saves wait for the write to finish. false is faster, true is safer on storage you do not trust.
pause-when-empty-seconds (default 60, added in 1.21.2) pauses the server's tick loop once nobody has been online for that many seconds. Farms and redstone stop while the server is empty. Set it to 0 or a negative value if you want the world to keep running with nobody on.
Access and security
| Key | Default | What it does |
|---|---|---|
online-mode | true | Checks every login against Mojang's session servers. Keep it true on any public server. Set it to false only on a backend behind a proxy that authenticates players itself, with player info forwarding set up. |
white-list | false | Only players in whitelist.json can join. |
enforce-whitelist | false | Kicks online players who are not on the whitelist when it is reloaded. |
max-players | 20 | The player cap. Raising it does not add capacity, it only lets more people share the same tick budget. |
spawn-protection | 16 | Radius around world spawn where non-operators cannot break or place blocks. |
op-permission-level | 4 | Default permission level for new operators. |
enforce-secure-profile | true | Requires players to have a Mojang-signed chat key (added in 1.19.1). |
player-idle-timeout | 0 | Minutes before idle players are kicked. 0 disables it. |
enable-command-block | false | Allows command blocks to run. Before 1.21.9 only; since then it is a gamerule. |
server-port | 25565 | The port the server listens on. |
enable-rcon | false | Turns on remote console access, with rcon.port and rcon.password. |
Two of these trip up new admins:
- spawn-protection quietly stops friends from placing a torch or opening a door near spawn, and operators bypass it, so you might not notice until a non-op complains. On a private SMP of trusted friends,
0is often right. On a public server, either keep it or set it to0and let a land-claim plugin own the rules. The protection only applies when at least one operator exists inops.json. - online-mode decides player UUIDs. Online mode uses each account's Mojang UUID. Offline mode builds a UUID from the username. Switching between them, or running a proxy backend without forwarding configured, gives everyone a new UUID, which looks like every inventory has been wiped. More on that in the world folder section below.
If RCON is enabled, use a long random password, and do not expose the RCON port to the internet.
World and gameplay
| Key | Default | What it does |
|---|---|---|
level-name | world | The name of the world folder. |
level-seed | empty | The seed for a new world. Empty means random. Only used when the world is first created. |
level-type | minecraft:normal | World type for a new world, such as minecraft:flat, minecraft:large_biomes or minecraft:amplified. |
generate-structures | true | Whether villages, temples and other structures generate. |
gamemode | survival | Default game mode for new players. |
force-gamemode | false | Puts players back in the default game mode every time they join. |
difficulty | easy | Peaceful, easy, normal or hard. |
hardcore | false | Hardcore mode: death puts players in spectator. |
max-world-size | 29999984 | Maximum world border radius in blocks. |
allow-flight | false | When false, players who fly in survival get kicked. Turn it on if you run mods or plugins that let players fly, or the server kicks them for it. |
level-seed and level-type only matter when the world is generated. Changing them on an existing world does nothing to land that already exists, and new chunks generated with a different seed will not line up with old ones.
PvP is missing from that table on purpose. Until 1.21.9 it was the pvp key in server.properties. Since 1.21.9 it is a gamerule called pvp, stored with the world. On older versions it still lives in server.properties.
Changing settings without guessing
Change one setting at a time. If you drop view-distance, simulation-distance and entity-broadcast-range-percentage in the same restart, you will not know which one helped. Then measure: Paper's /tps and /mspt commands or the spark profiler tell you what is actually happening, which a server that "feels smoother" does not.
Some problems do not live in this file at all. A server dropping to 5 TPS with two players online is not going to be fixed by a view-distance change. That is usually a plugin, a broken farm, a memory problem or chunk generation. The server lag guide covers how to track those down, and the server software you choose matters too. Paper vs Spigot vs Fabric vs Forge covers what each one changes.
For a starting file, the server.properties Generator builds one from presets such as a small SMP, a large network or a creative server, and explains each line.
What players see in the multiplayer list
Every saved server in the multiplayer list gets one row: an icon, a name, two lines of text, a player count and ping bars. For a lot of players it is the only thing they look at before clicking Join, and almost all of it comes from your server.
How the server list gets its data
The multiplayer screen does not log in. When a player opens it or presses Refresh, the client runs a short status check against each server:
- The client connects and sends a handshake saying it only wants the status.
- The client requests the status.
- The server replies with a small JSON message: version name and protocol number, online and max player counts, a sample of player names, the MOTD and the icon.
- The client sends a ping packet and the server sends it straight back.
- The client times that round trip and turns it into ping bars.
None of this loads a chunk, so you can change everything in this section without touching gameplay. The one part of the row you cannot set is the bold name at the top. The player types that when they add the server, and it defaults to "Minecraft Server".
The MOTD
The motd key (default A Minecraft Server) is the text under the server name. The client shows up to two lines, and anything wider than the row is cut off.
- Second line: write
\nin the value. - Colors and formatting: use the section sign
§followed by a code.§ais green,§6is gold,§lis bold,§ois italic and§rresets. Pasting§into server.properties can turn into junk characters depending on the file's encoding, so many admins write it as the escape§instead. - & codes: plugins and proxies usually accept
&aand convert it. Vanilla server.properties does not. - Hex colors and gradients: server.properties is limited to the 16 legacy colors. Hex needs the MOTD to be sent as a JSON text component, which in practice means a plugin or a proxy. Velocity's
motdsetting in velocity.toml takes MiniMessage tags, so<gradient:#5e4fa2:#f79459>works there directly.
A layout that works: what the server is on the first line, how to get in or what is happening on the second. Put the important words on the left, since the end of a long line gets cut. The list background is dark, so avoid dark blue, dark gray and black text.
motd=§6§lOakridge SMP §7- §fSurvival 1.21\n§aWhitelisted, apply on our Discord
A second line reading "Welcome to our server" says nothing a player can use. If you run a whitelist, say so in the MOTD. Otherwise new players click Join, get "You are not whitelisted on this server!" and have no idea how to apply.
The MOTD Generator previews both lines with color codes, hex and gradients. When moving a MOTD between formats, for example from BungeeCord & codes to Velocity MiniMessage, the Color Code Translator converts between them.
The server icon
The icon is a file called server-icon.png in the server's main folder, next to server.properties. It must be a PNG and exactly 64 by 64 pixels, or the server will not load it. It is read at startup, so a new icon appears after a restart. At that size fine detail disappears, so a bold simple shape, a block, a mob face or one or two letters reads better than a shrunken logo. Without one, the client shows a generic placeholder, which makes a server look unmaintained next to ones with real icons.
Player count, hover list and enable-status
The count on the right shows online players out of max-players. Hovering shows a sample of up to 12 names. Two things change that list:
- hide-online-players (default
false, added in 1.18) stops the server sending names. The count still shows. - Players who turn off Allow Server Listings in their own Online settings appear as "Anonymous Player".
Showing names helps a public server, since people click when they recognize someone. Hiding them suits private servers and staff who do not want their online times visible to anyone with the address. Some plugins can fake the count. A player who joins a server showing hundreds online and finds three people usually does not come back, while a real 3/20 is normal for an SMP.
enable-status (default true) decides whether the server answers status checks at all. With false, the server shows as offline in the list but players with the address can still join. It also gives less away to scanners that look for Minecraft servers using the same status check. It is not access control: pair it with a whitelist if you want to keep people out. The Whitelist.json Generator turns a list of usernames into that file with each UUID looked up.
Ping bars and the version tag
Ping bars measure the network round trip during the status check, not server performance. A server at 12 TPS can show five bars to someone nearby. Vanilla maps ping to bars like this:
| Ping | Bars |
|---|---|
| Under 150 ms | 5 |
| 150 to 299 ms | 4 |
| 300 to 599 ms | 3 |
| 600 to 999 ms | 2 |
| 1000 ms or more | 1 |
The status reply also carries a protocol number. If it does not match the client's, the player count is replaced by the server's version name in red, and joining fails with a message naming the server's version. A red version tag is one of the strongest reasons players skip a server. ViaVersion lets newer clients join an older server, and ViaBackwards added alongside it lets older clients join a newer one.
Server resource packs
A server resource pack is a zip that the server tells each client to download when they join. It can change textures, sounds and fonts and give custom items their own models. It is configured with five keys:
resource-pack=
resource-pack-sha1=
resource-pack-id=
require-resource-pack=false
resource-pack-prompt=
- resource-pack: the URL of the zip. It must be a direct download link that returns the file, not a page with a download button. The server does not host the pack. It only passes the link to the client.
- resource-pack-sha1: the SHA-1 hash of the zip, 40 lowercase hex characters.
- resource-pack-id: a UUID for the pack, added in 1.20.3 alongside support for sending more than one pack. Leave it empty and the server derives one.
- require-resource-pack: whether declining is allowed. Added in 1.17.
- resource-pack-prompt: a custom message, as a JSON text component, on the screen that asks the player to accept. Added in 1.17.
Always set the hash
The hash is technically optional, but it does two jobs. It lets the client check that the download is the right file and not a truncated download or an error page. And it lets the client reuse a cached copy instead of downloading again, which makes joins faster.
It is also where most resource pack bugs come from. If you upload a new zip to the same URL and leave the old hash, the file and hash no longer match, and players get an error or a stale copy. Every change to the zip needs a new hash. On Linux, sha1sum pack.zip gives it. On Windows, certutil -hashfile pack.zip SHA1.
Optional or required
Players can set Server Resource Packs to Prompt, Enabled or Disabled per server in the multiplayer list. What happens when they decline depends on require-resource-pack:
- Optional (
false): they join with vanilla resources. Anything that relied on the pack falls back to what the base game shows. - Required (
true): declining disconnects them. A player with the server set to Disabled is kicked on every join until they change it. A failed download also counts, so if your file host goes down, nobody can join. The pack URL becomes something the whole server depends on.
The deciding question is whether anything stops working without the pack. If the pack is cosmetic, optional is usually better: players keep their own packs, weaker computers can skip it, joins are faster, and a dead link is an annoyance instead of an outage.
Plugins such as ItemsAdder, Oraxen, Nexo and ModelEngine are the case where a required pack is almost always right. They add custom items, furniture, menus and mob models without client mods by sending normal vanilla items with extra data, such as custom model data. The pack tells the client to draw that iron sword as something else. Without it, players see sticks, paper and odd blocks, and custom menus built from font tricks become rows of strange characters. Most of these plugins generate the pack from their configs, and several can host it and set the URL and hash for you. If two plugins each want their own pack, merge them or send them as separate packs on 1.20.3 and later. Clashing packs are a common cause of items showing the wrong model.
Keep packs small
Every player downloads the pack before entering the world, then waits while the client reloads its resources. Every hash change means everyone downloads the whole pack again on their next join, and right after a restart your file host serves it to everyone at once. Sounds are usually the largest part of a heavy pack, followed by high resolution textures. Trimming unused files, compressing audio and not shipping textures larger than needed keeps joins quick.
Gamerules for SMPs
Gamerules are vanilla switches that change how the world behaves. Unlike server.properties, they are stored with the world: in level.dat before 26.1, and in data/minecraft/game_rules.dat from 26.1 on. They move with the world folder when you change hosts or restore a backup.
You set them in-game or from the console:
/gamerule keep_inventory true
/gamerule players_sleeping_percentage 50
Running /gamerule <name> with no value shows the current value. On versions before 1.21.11, use the old camelCase names, such as /gamerule keepInventory true. On Paper and other Bukkit-based servers, each world has its own gamerules, so a rule set in the Overworld does not automatically apply to the Nether or End. Set it in each world, or use the plugin or config option your server software provides.
Quick reference
| Current name (1.21.11+) | Old name | Default | What it controls |
|---|---|---|---|
keep_inventory | keepInventory | false | Keep items and XP on death |
players_sleeping_percentage | playersSleepingPercentage | 100 | Share of Overworld players who must sleep to skip the night |
spawn_phantoms | doInsomnia | true | Phantoms spawn for players who have not slept |
mob_griefing | mobGriefing | true | Mobs changing blocks and picking up items |
fire_spread_radius_around_player | replaces doFireTick | 128 | How far from a player fire can spread. 0 disables spread |
random_tick_speed | randomTickSpeed | 3 | Random ticks per chunk section per game tick |
raids | disableRaids (inverted) | true | Whether Bad Omen starts raids |
spawn_patrols | doPatrolSpawning | true | Pillager patrols |
spawn_wandering_traders | doTraderSpawning | true | Wandering trader spawns |
pvp | server.properties pvp before 1.21.9 | true | Players damaging each other |
spawner_blocks_work | spawnerBlocksEnabled | true | Monster and trial spawners |
show_death_messages | showDeathMessages | true | Death messages in chat |
show_advancement_messages | announceAdvancements | true | Advancement announcements in chat |
immediate_respawn | doImmediateRespawn | false | Skip the death screen |
natural_health_regeneration | naturalRegeneration | true | Health regenerating from a full hunger bar |
keep_inventory
With it off, dying drops your inventory and most of your XP, and you have a few minutes to get back before items despawn. With it on, you keep everything. No rule starts more arguments.
The case for turning it on: deaths from lag or a bad connection stop being a disaster, players with an hour after work do not lose a week to one creeper, people explore more, and nobody accuses anyone of looting a death pile. The case for leaving it off: danger is part of survival, armor and totems matter more, recovering a death pile with a friend is a memorable moment, and on trading servers lost gear keeps demand for materials going.
The middle ground is a graves datapack or plugin, which stores your items in a grave only you can open. Vanilla Tweaks has a graves datapack, and there are graves plugins for Paper and Spigot. As a rough pattern, casual friend-group SMPs turn keep_inventory on and challenge or PvP servers leave it off.
players_sleeping_percentage and spawn_phantoms
players_sleeping_percentage was added in 1.17 and replaced what used to be one of the most installed plugins on SMPs. Only players in the Overworld count, so someone in the Nether does not block the skip. At 100, everyone must sleep, which works for two or three friends and fails as soon as someone is AFK at a farm. 50 is a common compromise. A low value means one player in bed is enough, and is where most busier servers end up.
The catch is that skipping the night skips it for everyone, including players who wanted to hunt mobs for XP or spider string. It also interacts with phantoms. Phantoms spawn at night above players who have not slept for three or more in-game days, and with a low sleep percentage one player can skip every night while everyone else keeps building up time without sleep.
Turning spawn_phantoms off removes phantoms entirely, which is popular on build-focused servers full of elytra flyers. The cost is phantom membranes, which are needed to repair elytra and brew slow falling potions. With phantoms off, players have no way to get them unless you add one.
mob_griefing
mob_griefing is known as the creeper switch, but turning it off stops much more:
- Creeper, ghast fireball, wither and ender dragon block damage (creepers still explode and hurt players)
- Endermen picking up blocks
- Zombies breaking doors
- Villagers harvesting and planting crops
- Mobs picking up items, including piglins picking up gold
- Sheep eating grass, and snow golems leaving snow
That is why it gets messy. Villager crop farms, piglin bartering farms, sheep wool farms and snow farms all stop working with it off, and some servers want the wither breaking blocks for specific builds. Because the vanilla rule is all or nothing, many Paper and Spigot servers leave it on and use a plugin that blocks only creeper and enderman damage. Datapacks that do the same exist for vanilla and Fabric. On pure vanilla, you have to pick a side.
Fire spread
Before 1.21.11, doFireTick controlled fire spread. With it off, fire does not spread to flammable blocks, lava does not light nearby wood, and lightning does not burn forests. The side effect is that fire also never burns out, so a lit fire stays until someone puts it out. 1.21.11 removed doFireTick and added fire_spread_radius_around_player, which limits spread to a radius around players. It defaults to 128 blocks, and 0 turns spread off. Servers with many wooden builds commonly disable spread.
random_tick_speed
Random ticks drive crop and sapling growth, leaf decay, grass spread, ice melting and other slow processes. The default is 3. Raising it speeds up farms, but it changes the farming balance, adds server load, and makes shared farm designs and timings wrong. Most SMPs leave it at 3, and when it changes it is usually a small bump.
Raids, patrols, PvP and the rest
- raids: set to
falseand Bad Omen no longer starts raids. Some servers do this to stop accidental raids in shared villages. Others need raids on for raid farms, a major source of emeralds and totems. Before 1.21.11 this wasdisableRaidsand worked the other way round: defaultfalse, settrueto turn raids off. - spawn_patrols and spawn_wandering_traders: turning patrols off cuts surprise raids but removes a common source of Bad Omen. Some servers disable wandering traders because they and their llamas get stuck in builds.
- pvp: friend-group SMPs often turn it off to stop accidental hits and grief fights. Since it became a gamerule in 1.21.9, it travels with the world folder.
- spawner_blocks_work: turning it off shuts down every spawner-based XP farm, so most survival SMPs leave it on.
- show_death_messages and show_advancement_messages: small sources of community moments on a small SMP, or chat spam on a busy one. PvP servers sometimes hide death messages so players cannot use them to track each other.
- natural_health_regeneration: off is mainly for UHC-style and challenge servers.
Picking a set
A casual SMP for friends often ends up with keep_inventory on, a low players_sleeping_percentage and phantoms off. A survival-difficulty server keeps keep_inventory off and leaves mob behavior alone. Servers with many shared builds tend to turn fire spread off and add creeper protection, then decide whether villager and piglin farms are worth keeping mob_griefing on.
Decide before the world starts and write the rules down in your server rules or Discord. Changing keep_inventory or mob_griefing halfway through a season feels unfair to players who built their plans and farms around the old setting.
Vanilla features admins often miss
Three server-facing features arrived in recent versions without much attention. None replace a good plugin or proxy, but each covers a job that used to need extra software.
The /tick command (1.20.3)
A tick is one step of the simulation, and vanilla targets 20 per second. /tick gives operators direct control over that loop:
/tick query: target rate and actual tick times, including average and percentiles./tick rate <rate>: change the target rate. Lower slows the world, higher speeds it up./tick freezeand/tick unfreeze: stop and restart world ticking. Mobs, redstone and crops stop, but players can still move./tick step <time>: advance a frozen world by a number of ticks./tick step stopcancels./tick sprint <time>: run that many ticks as fast as possible, then return to normal./tick sprint stopends it early.
/tick query tells you how long ticks take, not what is using the time, so it does not replace spark. The useful parts are freeze and step. Watching redstone one tick at a time used to need Carpet on Fabric. Now a vanilla server can do it, which helps debug farms and clocks, test builds without mobs wandering in, or pause the world while staff set up an event. Changing the rate affects everyone, and a rate above 20 just adds work to a server that may already be struggling, so keep it to test worlds and planned events.
Transfer packets (1.20.5)
The transfer packet tells a connected client to go and join a different server. Vanilla exposes it as:
/transfer <hostname> [port] [players]
The port defaults to 25565, and without a player target it transfers whoever ran the command. The receiving server must have accepts-transfers=true in server.properties. It is false by default, and a transferred player arriving at a server that does not accept transfers is disconnected. The same update added cookies, small pieces of data a server can store on the client and another server can read later. The client does not protect them, so a server should not trust a cookie unless it can verify it, for example with a signature.
Transfers do not make Velocity or BungeeCord obsolete. With a proxy, the player connects once and the proxy swaps backends behind that connection, backend servers stay hidden, and chat or player lists can be shared. With a transfer, the client really disconnects and connects somewhere new: a loading screen, a fresh login, a public address for every server and nothing shared unless you build it. Transfers suit servers run by different people sending players to each other, servers in different regions, or a small survival server with a creative server next to it where a proxy feels like overkill. Plugins on Paper can trigger transfers too.
Server links (1.21)
Since 1.21, a server can send the client a list of links. A Server Links button then appears in the pause menu. Links can use built-in labels that the game translates, such as Report Bug, Community Guidelines, Support, Status, Feedback, Community, Website, Forums, News and Announcements, or custom labels.
The bug report link is also shown on the disconnect screen, which is exactly where a player kicked by an error needs it. Vanilla lets you set it with the bug-report-link key in server.properties. The other link types need server software or a plugin, such as through Paper's API. For a small SMP, putting the Discord invite and rules page behind Escape answers a question new players ask constantly. Keep the links to pages you control, since players trust your server when they click.
Inside the world folder
The world is a folder named after level-name. Everything the game remembers about it is inside: terrain, mobs, every player's inventory, stats and the seed. Most admins only open it after something has gone wrong, but knowing what each part holds is what makes moves, restores and repairs go right.
Layout before and after 26.1
| Data | Before 26.1 | 26.1 and later |
|---|---|---|
| World settings | level.dat, level.dat_old | level.dat, level.dat_old (smaller) |
| Seed and worldgen settings | level.dat | data/minecraft/world_gen_settings.dat |
| Gamerules | level.dat | data/minecraft/game_rules.dat |
| Overworld terrain | region/ | dimensions/minecraft/overworld/region/ |
| Overworld entities and POI | entities/, poi/ | dimensions/minecraft/overworld/entities/, .../poi/ |
| Nether | DIM-1/ | dimensions/minecraft/the_nether/ |
| End | DIM1/ | dimensions/minecraft/the_end/ |
| Player inventories | playerdata/ | players/data/ |
| Stats | stats/ | players/stats/ |
| Advancements | advancements/ | players/advancements/ |
| Maps | data/map_<n>.dat, data/idcounts.dat | data/minecraft/maps/<n>.dat, last_id.dat |
| Scoreboard | data/scoreboard.dat | data/minecraft/scoreboard.dat |
| Data packs | datapacks/ | datapacks/ |
Some folders only appear once the game has something to write into them. session.lock marks the world as open and holds no data. In 26.1, weather, custom boss bars and wandering trader data also moved out of level.dat into data/minecraft/, ender dragon fight data moved into the End's own data folder, and the world resource pack resources.zip moved into resourcepacks/. What each part does has not changed, only where it lives.
level.dat and the seed
level.dat is a small gzip-compressed NBT file that makes a world that particular world. Before 26.1 it holds the seed and worldgen settings, spawn point, gamerules, time and weather, difficulty and default game mode, the world border and the data version that last saved it. level.dat_old is the previous copy, kept in case the main file is damaged mid-write.
The seed is the part people forget. Copy only the region folders to a new server and let it create a fresh level.dat, and explored land survives but every new chunk comes from a different seed, with hard seams where old meets new. On 26.1, copying level.dat alone no longer carries the seed. You need data/minecraft/world_gen_settings.dat too.
Region, entities and poi
The world is split into chunks of 16 by 16 blocks, and chunks are grouped into regions of 32 by 32 chunks, so each region file covers 512 by 512 blocks. Files are named by region coordinates, such as r.0.0.mca or r.-1.2.mca, in the Anvil format Minecraft has used since 1.2. Each chunk stores blocks, biomes, light and block entities such as chests, furnaces, hoppers and signs. Chest contents live in the region file, not in player data. A chunk too large for its region file is written to a separate .mcc file alongside.
Since 1.17, entities such as mobs, dropped items, item frames, armor stands and minecarts are saved in entities/ using the same file naming. Copy region/ without entities/ and the terrain arrives without villagers, pets, item frames or anything they held. poi/ (since 1.14) tracks points of interest such as workstations, beds, bells, bee nests and Nether portals, which villagers and portal linking rely on.
Player data
playerdata/ (players/data/ on 26.1) holds one NBT file per player, named by UUID, such as 069a79f4-44e9-4726-a5be-fca90e38aaf5.dat. It stores inventory, armor, offhand, ender chest, position and dimension, health, hunger, XP, effects, respawn point and game mode. stats/ and advancements/ hold one plain JSON file per UUID, readable in any text editor. They hold no items, so losing them only costs playtime counters and advancement progress.
When a player reports a missing inventory, two causes come up repeatedly:
- The UUID changed. Switching
online-mode, or running a proxy backend without player info forwarding, gives players new UUIDs. The server finds no file, creates an empty one, and the old files sit unused. The Player UUID Lookup shows which online-mode UUID belongs to which account, which helps match files to players. - The file was saved over. The server writes player files on autosave and when a player leaves. Restore an old file while that player is online, and the server's next save overwrites it with their current state.
data and datapacks
data/ holds world-wide state that belongs to no single chunk or player: map contents, scoreboards, raids and command storage. Maps are the easy one to miss. A filled map in an item frame only points to a map number, and the picture lives in data/, so a world moved without it ends up with blank maps everywhere. datapacks/ holds the world's data packs, which a world needs if it depends on them for recipes, loot or terrain.
The Nether and End on Paper
Before 26.1, vanilla keeps the Nether in world/DIM-1/ and the End in world/DIM1/. Paper, like Spigot and Bukkit, splits them into separate folders: world/ for the Overworld, world_nether/DIM-1/ and world_the_end/DIM1/. Each gets its own level.dat, plus a uid.dat, while player data stays in world/. The names follow level-name, so a world called smp becomes smp, smp_nether and smp_the_end.
This catches people in two ways. Backing up only world/ on Paper leaves both other dimensions out. And when Paper first opens a vanilla world it moves the Nether and End out on its own, but nothing moves them back. Put a Paper world on a vanilla, Fabric or Forge server as-is and it generates a brand new Nether and End while the old ones sit unused in world_nether and world_the_end. Paper 26.1 dropped the separate folders and uses the same world/dimensions/ layout as vanilla.
What grows
Region, entities and poi grow by far the most. Every generated chunk is saved and Minecraft never deletes chunks on its own, so the world grows wherever players go. Elytra flights and high view distances add chunks quickly, and the End's outer islands get explored hard once players have elytra. data/ creeps up on map art servers, since every map ever made is a file. Player files grow with the number of different players who have ever joined. level.dat stays small.
Custom world generation
Vanilla overworld terrain has kept the same basic shape since 1.18, and plenty of SMPs want something new. Custom generators deliver it, at a cost in CPU time, memory and setup.
Datapack, mod or plugin
The format decides who has to install what:
- Datapacks change biomes, noise, features and structures through the game's own data files. They work on vanilla, Paper and most other server software. If they only use vanilla blocks, players join with an unmodded client.
- Mods run on Fabric, Forge or NeoForge. Some are datapacks packaged as mods and need nothing on the client. Others add blocks, trees or mobs, and then every player needs the mod.
- Plugins run on Paper and other Bukkit-based software and generate terrain server-side, so players install nothing.
The Server Software Comparator lays out which software runs what and what players need to install.
Common projects
| Project | What it changes | Format | Runs on | Players install anything? |
|---|---|---|---|---|
| Terralith | New and reworked overworld and cave biomes, vanilla blocks only | Datapack or mod | Vanilla, Paper, Fabric, Forge, NeoForge | No |
| Tectonic | Land shape: bigger mountains, continents, deeper oceans, rivers | Datapack or mod | Vanilla, Paper, Fabric, Forge, NeoForge | No |
| Iris | Full replacement generator built from dimension packs | Plugin | Paper and other Bukkit-based software | No |
| Terra | Full replacement generator built from config packs | Plugin or mod | Paper, Fabric | No |
| Biomes O' Plenty | New biomes with new blocks, wood and plants (uses TerraBlender) | Mod | Fabric, Forge, NeoForge | Yes |
Terralith (Stardust Labs) and Tectonic are designed to work together, and running both is a popular combination: Tectonic shapes the land and Terralith decides what grows on it. Iris and Terra give far more control and produce terrain that looks nothing like vanilla, but they hook in through the server's world generator settings rather than a datapack folder, and Iris's own documentation recommends pregenerating, with its own pregeneration command for that. Content mods like Biomes O' Plenty make sense for a group already playing a modpack. For more on that route, see the best Minecraft mods and multiplayer modpacks.
Why it costs more
Generating chunks is one of the most expensive things a server does: terrain noise, biomes, caves, ores, trees, features and structures. Custom generators make this heavier with more layered noise, more features per chunk, taller terrain with more blocks to light, save and send, and in the case of Iris and Terra, a separate engine entirely.
Walking around in land that already exists costs about the same as vanilla. Flying with elytra into new chunks is where TPS drops, because the server is generating as fast as players arrive. Memory use rises during generation too. The RAM Calculator gives a rough estimate, but leave headroom for heavy worldgen. On Fabric, C2ME spreads chunk generation across CPU cores and Lithium optimizes general game logic.
Pregenerate and set a border
Pregeneration builds the world before players get there. Chunky is the usual tool, available as a Paper plugin and as a mod for Fabric, Forge and NeoForge. It does not make generation cheaper. It moves the cost to a time when nobody is online. Expect it to take much longer with custom terrain than with vanilla, and expect bigger region files on disk. Pair it with a world border at the edge of the pregenerated area so players never trigger new generation. For Iris, use the pregeneration its docs recommend.
Switching generators on an existing world
Worldgen only applies to chunks that do not exist yet. Add Terralith or Tectonic to a world that has run for months and old land stays vanilla, new land uses the new generator, and where they meet you get hard seams: cliffs, cut-off rivers, half a mountain beside a plain. Tectonic changes terrain height a lot, so its seams are especially visible. Some admins accept this and tell players where the new terrain starts. Others start a fresh world or open a new one alongside the old.
Before switching mid-world:
- Back up, then test the generator on a copy and fly to the edge of explored land to see the seams.
- Treat it as one-way. Custom biomes are saved into generated chunks, and removing the pack later is not a clean undo.
- Wait for the pack to support a new Minecraft version before updating the server.
- Pregenerate ahead of the rush, because players go exploring all at once after a switch.
- Test the full combination you will run, including structure packs and land-claim plugins.
World corruption and backups
Most corrupted worlds are not broken by a game bug. They break because a file was partway through being written when something stopped it.
Common causes
- A crash during a save. The server saves chunks and players on a schedule, not only at shutdown. A crash from running out of memory, a bad plugin or a power loss can leave files half written. Usually that means a few chunks or one player file, but a crash while
level.datis being saved can stop the whole world loading. A damaged region file can bring chunks back as freshly generated terrain, which is how players find a square hole where their base was. - Killing the process.
stopsaves everything and exits cleanly. Force-closing the window,kill -9, a panel that gives up waiting, or a machine restart does not. Many corruption reports come down to someone killing a server that looked frozen but was busy writing a large save. - A full disk. Writes fail partway while the server keeps running and looks normal. A 0-byte
level.datis a classic sign. Logs, crash reports, old backups on the same disk and pregenerated worlds are the usual culprits. - Removing mods. The world stores modded blocks and items by ID. Remove a mod and Forge warns about missing registry entries. Continue, and that mod's blocks usually become air and its items vanish. Plugins mostly keep data in the
pluginsfolder, so removing one rarely breaks a world, but can leave orphaned items or claims. - Downgrading versions. Opening a world in a newer version converts its data, and there is no converter going back. Rolling a server jar back after a bad update can break chunks and wipe items that did not exist in the older version. Once a world is saved in the newer version, the only clean way back is a backup from before the upgrade.
Back up the whole server
Partial backups fail in predictable ways:
- Other dimensions:
world_netherandworld_the_endon Paper and Spigot before 26.1. - entities/: older scripts that copy only
regionandlevel.datrestore terrain without mobs, item frames or armor stands. - Player data: without it, everyone respawns empty-handed.
- plugins/: economy balances, claims, permissions, homes and warps usually live here.
- mods/ and config/: a modded world is only useful with the same mods at the same versions.
- Server files:
server.properties,whitelist.json,ops.jsonandbanned-players.json.
The safest habit is backing up the whole server directory and excluding only what you know you do not need, such as logs and the server jar.
Use save-off and save-all flush
Copying files while the server is writing can produce a backup that is already broken: half a region file from before a save and half from after, or a player file and region file from different moments so items exist twice or not at all. You usually find out only when you restore.
The vanilla commands for this:
save-offstops automatic saving.save-all flushwrites everything in memory to disk and waits until the writes finish.- Copy the files.
save-onturns automatic saving back on.
Forgetting step 4 leaves the server running with saving off, and a later crash loses everything since the backup. Most backup plugins and panels run some version of this sequence, and it is worth checking that yours does. Before big changes, such as a version upgrade, swapping server software, removing a mod or switching generators, stop the server completely and copy the files.
How often, and where
How often depends on how much progress your players would accept losing. A busy SMP where people build every evening loses a lot to one bad day. A server online twice a week does not. Whatever the schedule:
- Keep several backups. Corruption is not always obvious, and a broken chunk far from spawn can go unnoticed until every recent backup contains it.
- Back up before risky changes, separately from the regular schedule.
- Test a restore on a test server or in single player. A backup you have never opened is a guess.
- Keep a copy off the machine. A backup on the same disk protects against corrupted files and mistakes, but not a failed disk, a lost machine or a compromised account, and it eats the same disk space. The usual rule is three copies, on two kinds of storage, with one off-site. For a small server, one regular copy to another machine covers most disasters.
A backup rolls everyone back to one moment, including legitimate progress since. For a single griefed base, a block logging plugin such as CoreProtect can undo one player's changes in one area instead. The best Minecraft plugins list covers it and other admin tools. And a backup does not fix the cause. If a plugin keeps crashing the server mid-save or the disk keeps filling, check the logs and fix that first, or the restore puts you back in the same place.
Putting it together
A sensible order for a new server: pick server software, set server.properties (distances, access, spawn protection, MOTD), add an icon, decide on a resource pack, choose worldgen and pregenerate inside a world border, set gamerules and write them down for players, then set up backups that cover the whole server directory and leave the machine. Each of those is a small job, and doing them before players arrive saves a lot of rollbacks and arguments later.
If you would rather not manage the server files yourself, ChunkPod is a Minecraft hosting service in early access, and you can join the waitlist to hear when hosting opens.