KeepBedInventory
by Tfarcenim
KeepBedInventory changes what a player keeps after dying, so items and experience can survive death without the keepInventory game rule.
What it does
Items are kept on death only when they carry the timestamp of the player's last saved state, so anything gained after that moment drops normally. The last spawn point set through a bed or a respawn anchor is the one the player returns to, and experience is kept up to the lower of the level saved and the level held at death. A saved state is replaced each time the player saves again, so the kept set always reflects the most recent save.
The mod runs on the server alone and needs Fabric API. It is published for Fabric and NeoForge for 1.21.1 only, and players join without installing anything. The code is open source under the MIT License, and public links exist for the source code and the issue tracker. The latest Fabric file is fabric-1.21.1-2, released 2024-12-11, and the latest NeoForge file is 0, released 2024-10-17.
Key features
Timestamped item keeping
Only items matching the timestamp of the last save are kept, while everything gained since then drops as usual.
Experience levels kept
The player keeps experience up to the lower of the saved level and the level at death, so spending levels after a save lowers what is kept.
Spawn point preserved
The spawn point set via a bed or respawn anchor is kept, and when it becomes invalid, items drop normally.
Keep-inventory rule unchanged
With the keepInventory game rule active, the mod leaves the behavior as it is.
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
Survival with checkpoints
Players who save at a base can return to that state after a death without losing the whole inventory gained since.
Server play
Server owners can give players partial protection on death without enabling the keepInventory rule for everyone.
Who it’s for: Players and server owners on 1.21.1 who want partial protection on death tied to a save point, rather than full inventory retention.
How it compares
Pick Your Bed is a Fabric and NeoForge mod for 1.21.1 under a custom license that is not open source, and it needs both client and server. Keep my tools! supports Fabric, Forge and NeoForge for 1.20.1 – 1.21.10 under the MIT License and is also not open source, while KeepBedInventory is server-side only and open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| KeepBedInventory | Fabric and NeoForge | 1.21.1 | Server-side only | 2024-12-11 |
| Pick Your Bed | Fabric and NeoForge | 1.21.1 | Client and server | 2026-05-10 |
| Keep my tools! | Fabric, Forge and NeoForge | 1.20.1 – 1.21.10 | Client and server | 2026-02-28 |
Questions
Does KeepBedInventory need Fabric API?
Does the server need the mod, and do players?
What happens to items picked up after a save?
Which versions are supported?
In the catalog
KeepBedInventory is one of 17,631 Equipment mods on ModsFinder, and one of 8,894 Equipment mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from Tfarcenim
Similar mods
What the author says
This mod reworks how inventory saving on death is handled. It allows the player to keep some of their items and xp on death while not saving everything like the keepInventory gamerule does. When the player sets a spawnpoint, via bed, respawn anchor or other method, all items and experience levels on the player will…
Official listing
- Modrinth page
- modrinth.com/mod/keepbedinventory
- Owner
- Tfarcenim
- Published
- 2024-10-17
- Updated on Modrinth
- 2024-12-11
- Facts verified
- 2026-10-15
