How to keep your items when you die in Minecraft
⚡ The short answer
You don't need a mod. Minecraft has a game rule that lets you keep your inventory and your experience when you die. On current versions you turn it on like this:/gamerule keep_inventory trueOn Minecraft 1.21.10 and older it is the same rule, spelled
keepInventory. If you want death to still matter, just without your gear vanishing, what you are after is a grave mod or plugin: the options for Fabric, Forge, NeoForge and Paper are further down.⌨️ The command for your version
In Java Edition 1.21.11 (December 2025) every game rule was renamed, from camel case to lowercase with underscores. The releases after it, which are now numbered 26.1, 26.2, 26.3 and so on, use the new name.| Edition and version | Command |
|---|---|
| Java 1.21.11 and 26.x | /gamerule keep_inventory true |
| Java 1.21.10 and older | /gamerule keepInventory true |
| Bedrock | /gamerule keepinventory true |
false.In a single-player world you need cheats enabled; you can also tick the rule in the game rules menu when you create the world.
🖥️ On a server
The rule is saved with the world: set it once and it is still there after a restart. There are two ways to set it:- From the server console, without the slash:
gamerule keep_inventory true. - In game, with the slash, if you are an operator.
execute in minecraft:the_nether run gamerule keep_inventory trueexecute in minecraft:the_end run gamerule keep_inventory trueOn ZentexNode the console is in the panel, in your browser, so you don't have to join the game to type it. If your server lets Java and Bedrock players in together through Geyser (Minecraft on phone and PC on the same server), the server itself is Java, so use the Java command.
🪦 If you would rather have a grave
With the rule on, dying costs nothing. A grave mod is the middle ground: when you die, your items are stored in a grave at the spot where you fell instead of lying on the ground, where they despawn after five minutes. You still have to walk back for them.- Fabric: Universal Graves. It is installed on the server only; players don't need to add anything. It has builds for Minecraft 26.x.
- Fabric and NeoForge: You're in Grave Danger, with versions up to 1.21.1. It goes on the server and in every player's game.
- Forge and NeoForge: GraveStone Mod and Corail Tombstone. Both also go on the server and on every client.
There is no need to combine the two: with
keep_inventory on, you no longer drop anything when you die.🔌 On Paper and Purpur: plugins
Paper and Purpur don't load mods, but there are plugins that do the same job. AxGraves is one: it leaves a death chest holding your items, runs on Spigot, Paper, Purpur and Folia, and has builds for Minecraft 26.x. Drop it into theplugins folder, as described in how to install plugins on Paper and Purpur; players don't have to install anything.✨ What about experience?
Without the rule, your level resets to zero when you die: part of your experience drops as orbs (100 points at most) and the rest is gone. Withkeep_inventory you keep all of your experience as well. Potion effects are lost either way. With grave mods and plugins, what happens to experience depends on the one you pick and how you configure it.Looking for Minecraft server hosting?
Minecraft hosting with automatic setup, our own control panel, Anti-DDoS and no contract. If you’d rather not set it up yourself, there’s an optional assisted setup service.
See Minecraft plans from €2/mo →