ModsFinder

Keep Inventory Nerf

by uhmbyee

Keep Inventory Nerf changes what a player loses on death when the keepInventory gamerule is on, so a death costs a few random items and some experience instead of everything.

FabricClient and serverAll rights reserved1.21.9 – 26.3

What it does

With the keepInventory gamerule set to true, a death normally keeps every item. This mod instead lets a death drop only between one and three random items from the inventory, and only a small percentage of experience is lost. The number of items is set by the keepInventoryMinItemsToDrop and keepInventoryMaxItemsToDrop gamerules, and the experience share by experienceLossPercentage. The death message reports which items dropped and how many experience levels were lost.

The mod is aimed at the balance between keeping a full inventory and facing a real penalty for dying. It draws inspiration from games such as Stardew Valley and Hytale, where dying costs only a few random items. New worlds have keep inventory enabled by default, while existing worlds need the gamerule turned on manually. The Recovery Compass is not affected by the change. Keep Inventory itself is a debated subject in the community, and this mod is one way of splitting that difference.

Keep Inventory Nerf is for Fabric and runs on client and server, so the server and every player need it. It is published for 1.21.9, 1.21.10, 1.21.11, 26.2 and 26.3, with 1.2.0 for 26.3 as the latest file, and is released under All rights reserved, so it is not open source.

Key features

  1. Partial item loss on death

    A death drops only between one and three random items when keep inventory is active, so most of the inventory is kept.

  2. Small experience penalty

    Only a small percentage of experience is lost on death, set by the experienceLossPercentage gamerule.

  3. Configurable gamerules

    The item count range is adjusted through the keepInventoryMinItemsToDrop and keepInventoryMaxItemsToDrop gamerules.

  4. Death message details

    The death message lists the items that dropped and the number of experience levels lost.

Compatibility

Latest build for each game version and loader.

26.31.2.0
26.21.1.4
1.21.111.1.4
1.21.101.1.2
1.21.91.1.2
ReleaseBetaAlphaNot available

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

How it compares

Full comparison

Fixed Bottle o' Enchanting Amount is a server-side Fabric mod, open source under the GNU General Public License v3.0 only, for 1.21.6 – 26.3. Keep XP on Death is also server-side and open source, under the CC0 1.0 Universal license, but covers 1.19.4 – 1.20.4. Mortal Ender Chests is server-side, open source under the MIT License and covers 1.21.11 – 26.3, with a different focus on ender chest contents.

ModLoadersGame versionsEnvironmentUpdated
Keep Inventory NerfFabric1.21.9 – 26.3Client and server2026-10-04
Fixed Bottle o' Enchanting AmountFabric1.21.6 – 26.3Server-side only2026-09-17
Keep XP on DeathFabric1.19.4 – 1.20.4Server-side only2024-02-08
Mortal Ender ChestsFabric1.21.11 – 26.3Server-side only2026-10-04

Questions

Does Keep Inventory Nerf need to be installed on both sides?

Yes. A server running it needs every connecting player to have it too.

Why does keep inventory stay off in existing worlds?

Existing worlds need the keepInventory gamerule turned on manually. Only new worlds have it enabled by default.

Which gamerules control how many items drop?

The keepInventoryMinItemsToDrop and keepInventoryMaxItemsToDrop gamerules set the range, and experienceLossPercentage sets the experience lost.

In the catalog

Keep Inventory Nerf is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 8,071 mods support Minecraft 26.3.

More from uhmbyee

All projects

Similar mods

What the author says

Keep Inventory is a highly controversial topic in the community. This mod aims to add balance to the gamerule, allowing players to still face consequences for dying while keeping most of their inventory and levels. This creates a less devastating and more fun gameplay loop. Keep Inventory Nerf draws inspiration from…
uhmbyee, on the Modrinth page

Official listing

Owner
uhmbyee
Published
2026-02-17
Updated on Modrinth
2026-10-04
Facts verified
2026-10-15

Tags