Keep On Chance (keepinventory)
by testeras
A player who dies can keep the inventory under a rolled chance, and Keep On Chance sets that chance in the server config.
What it does
On each death the mod rolls a number against a configured chance. A value of 0.41 means a 41% chance that the player's inventory is kept rather than dropped. The chance can be set in steps of 0.01, so the death penalty can be tuned between full item loss and full protection, which keeps item loss in the game without making it always happen.
The config also controls whether the roll applies in creative mode, through the isCreativeModeIncluded option, and whether the mod is active at all, through a true or false setting that permits or disallows the keep-inventory chance. Each successful keep can show a custom message, and a true or false setting in the config turns those messages on or off; only the player whose death triggered the keep sees it.
Keep On Chance is server-side only. Only the dedicated server needs the mod installed, and other players join without it. It also works in singleplayer worlds opened to LAN, such as with LAN Essentials, where only the host needs it. It works with modded items as well as vanilla ones. The mod is built for Forge, with files for 1.19.2 – 1.21.4, and the code is under All rights reserved.
Key features
Chance-based inventory keep
Each death rolls a configured chance that decides whether the inventory is kept or lost.
Fine-grained chance setting
The chance can be set from 0.01 upward in the config, letting server owners pick how harsh deaths are.
Creative mode option
An isCreativeModeIncluded setting decides whether creative players are subject to the inventory roll.
Private death messages
Custom messages can show when a keep succeeds. They are shown only to the player who triggered the event and can be toggled on or off.
Compatibility
Latest build for each game version and loader.
1.21.x5 of 5 versions with builds
1.20.x5 of 5 versions with builds
1.19.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Auto KeepInventory Mod is a Forge option for 1.16 – 1.20.6 under the Apache License 2.0, not open source, and server-side only. Keep XP on Death is a Fabric option for 1.19.4 – 1.20.4 under the CC0 1.0 Universal license, open source, and server-side only. Auto keep inventory runs on Fabric, Forge, NeoForge and Quilt for 1.13 – 1.21.10, is server required with client optional, and is also CC0 1.0 Universal.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Keep On Chance (keepinventory) | Forge | 1.19.2 – 1.21.4 | Server-side only | 2026-01-11 |
| Auto KeepInventory Mod | Forge | 1.16 – 1.20.6 | Server-side only | 2026-06-28 |
| Keep XP on Death | Fabric | 1.19.4 – 1.20.4 | Server-side only | 2024-02-08 |
| Auto keep inventory | Fabric, Forge, NeoForge and Quilt | 1.13 – 1.21.10 | Server required, client optional | 2025-10-24 |
Questions
Does Keep On Chance need to be installed on the client?
Which game versions does Keep On Chance support?
How is the keep chance set?
In the catalog
Keep On Chance (keepinventory) is one of 4,058 Storage mods on ModsFinder, and one of 1,886 Storage mods for Forge. 17,979 mods support Minecraft 1.21.4.
More from testeras
Similar mods
What the author says
Is player's item loss on death always a good award. For people that like survival experience and keepinventory this is a balance of both. With rolled chance an inventory can be prevented from being lost. This mod is designed for giving a more balanced and customizable death penalty without fully disabling item loss…
Official listing
- Modrinth page
- modrinth.com/mod/keep-on-chance
- Owner
- testeras
- Published
- 2026-01-11
- Updated on Modrinth
- 2026-01-11
- Facts verified
- 2026-10-15
