Smart Keep Inventory
by flemmli97
Smart Keep Inventory lets server owners decide, through conditions, when a player keeps their inventory after dying, so that keep inventory applies only to chosen kills.
What it does
Keep inventory in vanilla is either on or off for every death. This mod adds a condition layer on top of that setting: conditions are written as data files under data smart keep inventory/condition and checked when a player dies, so a death can keep items for some sources and not for others. Configuration is done entirely through a datapack, and the condition files follow a documented syntax in which an EntityPredicate can be inverted to exclude matches.
The default configuration makes players keep their inventory and experience when they are killed by bosses, meaning mobs tagged c:bosses. Another example in the author notes allows keeping inventory only when a player is killed by a specific mob, such as a zombie. Support for inventories from mods like Curios and Accessories is included, and it respects the gamerule that is already set. Graves from Gravestone are supported too, which lets the player keep their inventory when a grave is generated.
Key features
Conditional keep inventory
Keep inventory is decided per death by the conditions in a datapack, not by one global switch.
Datapack configuration
Conditions live in data files, so the rules ship inside a world or pack without a config screen.
Killer-based rules
Deaths can be filtered by the entity that caused them, for example keeping items only against a given mob.
Curios and Gravestone support
Items in Curios and Accessories slots are handled, and Gravestone graves are supported alongside the gamerule.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Who it’s for: Server owners and pack makers who want keep inventory to depend on how the player died, rather than applying to every death.
How it compares
Keepsake is a client and server mod for Fabric and NeoForge across 1.21.1 – 26.2, under All rights reserved. Individual Keep Inventory (Updated) is server-side only, open source under the MIT License, and built for Fabric across 1.21.2 – 26.2. KIBNXP is a server-side only Fabric mod for 1.21.11 under the CC0 1.0 Universal license, and it is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Smart Keep Inventory | Fabric and NeoForge | 1.21.1 – 26.3 | Server-side only | 2026-09-18 |
| Keepsake | Fabric and NeoForge | 1.21.1 – 26.2 | Client and server | 2026-07-28 |
| Individual Keep Inventory (Updated) | Fabric | 1.21.2 – 26.2 | Server-side only | 2026-07-23 |
| KIBNXP | Fabric | 1.21.11 | Server-side only | 2026-08-07 |
Questions
Does Smart Keep Inventory need Fabric API?
Does a player need the mod installed to keep their inventory?
Are Curios items kept on death?
Which version should a server use?
In the catalog
Smart Keep Inventory is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 8,071 mods support Minecraft 26.3.
More from flemmli97
Similar mods
What the author says
In vanilla you can only either have keep inventory enabled all time or not. Smart Keep Inventory allows you to decide under which conditions the players inventory should be kept upon death. For example you can have it configured to only allow keep inventory if the player is killed by a specific mob.
Official listing
- Modrinth page
- modrinth.com/mod/smart-keep-inventory
- Owner
- flemmli97
- Published
- 2026-01-09
- Updated on Modrinth
- 2026-09-18
- Facts verified
- 2026-10-15
