ModsFinder

Keep Inventory Penalty

by Fab

After a death with keepInventory active, Keep Inventory Penalty takes a share of the player's experience points, halved by default, through a configurable penalty.

FabricNeoForgeServer-side onlyMIT LicenseOpen source1.20 – 1.21.1

What it does

The mod applies an experience penalty when a player dies while the keepInventory game rule is on. Items stay in place as usual, and the penalty removes part of the XP. With the default configuration the lost amount is 0.5 of the player's XP each time, meaning half is taken.

The penalty settings live in a config file inside the world folder, so each world can use its own values. The /reload command applies changes without restarting the game. Options cover whether the penalty is enabled, the percentage lost, and whether the amount is picked at random between two values.

Keep Inventory Penalty runs on the server alone, so players join without installing it. It is published for Fabric and NeoForge across eight game versions 1.20 – 1.21.1, and the code is open source under the MIT License. Files for 1.21.1 were last updated on 2025-07-03.

Key features

  1. XP penalty on death

    Experience points are reduced when the player dies with keepInventory enabled, so items and XP are weighed against each other.

  2. Adjustable loss percentage

    The share of XP removed can be set in the config, with 0.5 as the default value.

  3. Random penalty range

    An optional setting picks the lost amount at random between two values instead of using a fixed share.

  4. Killer receives the XP

    An optional setting gives the penalized XP to a player who kills the dying player, which rewards PvP fights.

  5. Death chat message

    An optional global chat message announces the XP loss of the player who died.

Compatibility

Latest build for each game version and loader.

1.21.13.0.03.0.0
1.20.62.0.1Not available
1.20.52.0.1Not available
1.20.42.0.1Not available
1.20.32.0.1Not available
1.20.22.0.1Not available
1.20.12.0.1Not available
1.202.0.1Not available
ReleaseBetaAlphaNot available

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

Use cases

Who it’s for: Server owners who run keepInventory worlds and want a death cost in experience points, and players on those servers who want to know how much XP a death takes.

How it compares

Full comparison

Keep my tools! runs on Fabric, Forge and NeoForge with client and server, under the MIT License, and covers 1.20.1 – 1.21.10, so it protects equipment rather than XP. keepEquipment is NeoForge only, for 1.21.3 – 1.21.5, under All rights reserved, and keeps equipment on death. Keep Inventory Penalty is the only one here that applies an XP penalty.

ModLoadersGame versionsEnvironmentUpdated
Keep Inventory PenaltyFabric and NeoForge1.20 – 1.21.1Server-side only2025-07-03
Keep my tools!Fabric, Forge and NeoForge1.20.1 – 1.21.10Client and server2026-02-28
keepEquipmentNeoForge1.21.3 – 1.21.5Client and server2025-05-29

Questions

Does Keep Inventory Penalty need to be installed on the client?

No. The mod is server-side only, so players join without installing anything and only the server needs the file.

Which loaders does Keep Inventory Penalty support?

Fabric and NeoForge. Files exist for both, with version 3.0.0 as the latest for 1.21.1.

Can the penalty be changed without restarting the server?

Yes. The config is stored in the world folder, and the /reload command applies changes.

Does the penalty apply when keepInventory is off?

The mod only works while keepInventory is enabled, so the XP penalty is tied to that game rule.

In the catalog

Keep Inventory Penalty 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.

Similar mods

What the author says

Keep Inventory Penalty adds a configurable xp penalty when you die while using keepInventory. With the default configuration your XP will be halved each time you die.
Fab, on the Modrinth page

Official listing

Owner
Fab
Published
2023-08-04
Updated on Modrinth
2025-07-03
Facts verified
2026-10-15

Tags