
Keep On Chance (keepinventory)
Keeps players inventories on death if given chance succeeds.
About this Mod
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.

Q&A
Where can I run this mod?
>...You can run this mod on Server side only.
Does everyone need mod installed to join my Server?
>...No! Only dedicated server needs to have mod installed, other players can join without mod installed. This includes singleplayer worlds connected with LAN or Essentials etc. where only host needs mod installed.
Does it work with modded items?
>...Yes! It can work with any items, modded or vanilla.
Config "chance", "messages", "creative":
>...There is a config json file inside config/ called keepchance.json, it has default values set like this: {"chance":0.41,"messages":true,"isCreativeModeIncluded":true}
"chance" will roll a chance to keep player's inventory on death, 0.41 means that it has 41% chance to succeed. It can go in ranges 0.01 - 1.0.
"messages" will display custom messages upon player's death if chance succeeds, only player that triggered event can see a message, no one else can. These messages can be enabled or disabled with true or false.
"isCreativeModeIncluded" tells if player is in creative mode and then decides if that player's inventory should have a chance to be kept. Configured with true to allow keepinventory chance and false to disallow.
What software was used for mod's creation
>...It was created in Eclipse IDE.
Available Versions
How to Install Keep On Chance (keepinventory) on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.21.4).
Install Mod
Open the mod browser in the dashboard and search for "Keep On Chance (keepinventory)". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.4, 1.21.3, 1.21.2 (+10 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Keep On Chance (keepinventory) server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.4). You can switch loaders with one click in the panel.
Is Keep On Chance (keepinventory) compatible with forge?
Keep On Chance (keepinventory) officially supports forge for Minecraft 1.21.4, 1.21.3, 1.21.2. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Keep On Chance (keepinventory) – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Keep On Chance (keepinventory) consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Keep On Chance (keepinventory) with just one click on your server.