ModsFinder

KeepBedInventory

by Tfarcenim

KeepBedInventory changes what a player keeps after dying, so items and experience can survive death without the keepInventory game rule.

FabricNeoForgeServer-side onlyMIT LicenseOpen source1.21.1

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

  1. Timestamped item keeping

    Only items matching the timestamp of the last save are kept, while everything gained since then drops as usual.

  2. 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.

  3. Spawn point preserved

    The spawn point set via a bed or respawn anchor is kept, and when it becomes invalid, items drop normally.

  4. 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.

1.21.1fabric-1.21.1-20
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
KeepBedInventoryFabric and NeoForge1.21.1Server-side only2024-12-11
Pick Your BedFabric and NeoForge1.21.1Client and server2026-05-10
Keep my tools!Fabric, Forge and NeoForge1.20.1 – 1.21.10Client and server2026-02-28

Questions

Does KeepBedInventory need Fabric API?

Yes. Fabric API is required on Fabric. The mod is also published for NeoForge, which does not use Fabric API.

Does the server need the mod, and do players?

Players join without it, since only the server has to run the mod.

What happens to items picked up after a save?

They carry a different timestamp than the saved one, so they are dropped on death like normal items.

Which versions are supported?

KeepBedInventory targets 1.21.1 only, with the latest Fabric file fabric-1.21.1-2 and the latest NeoForge file 0.

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

All projects

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…
Tfarcenim, on the Modrinth page

Official listing

Owner
Tfarcenim
Published
2024-10-17
Updated on Modrinth
2024-12-11
Facts verified
2026-10-15

Tags