Minecraft Server KeepInventory Guide
Enable keepInventory globally, per world or per region on your Minecraft server, vanilla, Multiverse and WorldGuard methods.
"Should I keep KeepInventory on?" is one of the most contentious questions in Minecraft server design. This guide doesn't take a side , it shows you how to enable it globally, per-world, or per-region, so you can run different rules in different places.
Vanilla way (whole server, all worlds)
/gamerule keepInventory true
Run from the console. Affects only the world you're currently in. To do every world, run it once per world.
With Multiverse (per world)
Using Multiverse-Core:
/mvgamerule keepInventory true survival
/mvgamerule keepInventory false pvp
Players keep their inventory in survival but lose it in PvP. Cleanest setup for a typical network.
With WorldGuard (per region)
WorldGuard has a flag for this:
/region flag spawn keep-inventory allow
/region flag arena keep-inventory deny
Apply to __global__ for whole-world, or to a specific region for partial coverage.
Keep XP too
Inventory and XP are separate gamerules:
/gamerule keepInventory true
/gamerule keepXP true
WorldGuard equivalent: exp-drops deny on the region.
The arguments for and against
For:
- Lowers barrier to PvP , people will fight if they don't lose netherite armour.
- Keeps event mode (KOTH, raids) accessible to new players.
- Removes the toxicity of corpse-camping.
Against:
- Death has no consequence , bossfights become trivial.
- The economy loses one of its sinks (gear replacement).
- It changes the genre , many players want vanilla loss.
The middle ground
Run per-world:
- Spawn / shop / lobby: keep on (no accidental drops).
- Survival: vanilla off.
- Arena / PvP / events: keep on.
- Boss fights: keep off (real consequence) OR run a token system where you pay to enter and lose nothing on death.
Common pitfalls
- Setting it globally and forgetting that PvP world also keeps inventory , test before opening.
- Not setting
keepXPtoo , inventory survives, XP doesn't, players complain. - Per-region but the dying player isn't actually inside the region (deaths fire from where the kill happens, not where the body lands).
Want to see all this in action? Astroworld MC runs a custom-built economy survival server with custom bosses, eternal enchants, crates and an auction house. Join at astroworldmc.com , IP play.astroworldmc.com, Java + Bedrock crossplay.