Keep Inventory
Dying in Minecraft hurts. You lose your enchanted sword, your hard-earned armor, and every level you stacked up over hours of grinding. The vanilla keepInventory game rule solves this by keeping absolutely everything, but that can make death feel weightless. Keep Inventory takes a smarter middle path: your gear stays with you, while the rest of your loot drops where you fell. You keep what matters and still get that tense run back to your death spot.
What Keep Inventory Actually Does
This is a data pack, not a mod, and it is built for Minecraft Java Edition 26.3. When you die, your combat and utility gear stays in your inventory. Everything else, including blocks, ores, food, potions, books, and ender pearls, drops at the exact spot where you died. Your experience levels stay too, so you never lose that hard-won progress toward the next enchantment.
Items That Stay With You
- Swords, axes, pickaxes, shovels, and hoes
- All armor pieces, plus the mace and trident
- Bow, crossbow, and shield
- Elytra and totem of undying
- Fishing rod, shears, flint and steel, and brush
- Spyglass, compass, recovery compass, and clock
- Carrot on a stick and warped fungus on a stick
Enchantments and durability carry over exactly as they were. Nothing gets repaired, nothing gets reset. Your gear comes back the way you left it.
What Drops at Your Death Spot
Every other item drops in the dimension where you died, keeping its enchantments and custom names. The pack has been tested in both the Overworld and the Nether. If you die far away or in another dimension and that chunk is not loaded when you respawn, the pack briefly loads the area so your items land where they should. If it cannot load in time, the items drop at your respawn point instead of vanishing.
Customizing Your Keep List
The whole keep list lives in a single item tag: keep_inventory:keep, found in the file data/keep_inventory/tags/item/keep.json. Want to keep your food or building blocks too? Add item IDs or tags to that file. Want to keep less? Override the tag with your own data pack. It is one of the most flexible ways to tune death penalties without touching a single command.
If you would rather skip the manual file juggling, the foxygame.net launcher offers a one-click install for Keep Inventory, dropping the pack straight into your world's datapacks folder with no unzipping required. The launcher's add-on catalog also tracks version compatibility, so you always grab a build that matches your Java Edition release.
How to Install Keep Inventory for Minecraft
Installation is quick whether you play alone or run a server. Here is how to install it step by step.
- Singleplayer, new world: download Keep Inventory, do not unzip it, then open More, go to Data Packs, and add the file during world creation.
- Singleplayer, existing world: place the file in saves/<your world>/datapacks.
- Servers: put the file in <world>/datapacks, then run /reload or restart the server.
- Verify: run /datapack list and confirm Keep Inventory is enabled.
When the pack loads, it switches the keep_inventory game rule on automatically. Note that disabling the pack later does not flip the rule back, so run /gamerule keep_inventory false if you want vanilla death drops again.
Compatibility and Common Questions
Keep Inventory works in singleplayer and on servers with no mods required. It only uses vanilla commands and one item tag, so it plays nicely alongside other data packs. Modded items are not on the keep list by default, so they drop unless you add them to the tag yourself.
Is this the same as the keepInventory game rule? No. The game rule keeps everything, while this pack keeps only your gear and drops the rest. Do you keep your experience? Yes, your levels stay. Can you keep food or blocks? Yes, just add them to the keep_inventory:keep tag.
Final Thoughts
Keep Inventory hits a sweet spot between punishing vanilla deaths and the anything-goes game rule. You protect the gear that took the longest to earn, keep your levels, and still face a meaningful trip back to recover your stash. If you want a fairer survival experience without stripping away all the tension, download Keep Inventory, drop it into your datapacks folder, and get back to exploring.