Skip to main content
Server Basics

Minecraft Server KeepInventory Guide

Enable keepInventory globally, per world or per region on your Minecraft server, vanilla, Multiverse and WorldGuard methods.

6 min read8 sectionsJava & Bedrock1.21

"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 keepXP too, 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.

Questions about Minecraft Server KeepInventory

Minecraft Server KeepInventory: what is the short version?

"Should I keep KeepInventory on?" is one of the most contentious questions in Minecraft server design.

Which command does Minecraft Server KeepInventory use?

Inventory and XP are separate gamerules: WorldGuard equivalent: exp-drops deny on the region. This guide uses /gamerule keepInventory true.

What goes wrong with Minecraft Server KeepInventory?

Using Multiverse-Core: Players keep their inventory in survival but lose it in PvP.

Minecraft Server KeepInventory: what does with multiverse (per world) mean here?

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.

Minecraft Server KeepInventory Guide: Enable keepInventory globally, per world or per region on your Minecraft server, vanilla, Multiverse and WorldGuard methods.
Minecraft Server KeepInventory Guide, from the Server Basics guides on Astroworld.

More guides on this site

More Server Basics Guides

Related Tools & Databases