Back to mods
Partial-Keep-Inventory project artwork

Modrinth · Minecraft mod

Partial-Keep-Inventory

A softer alternative to keepInventory

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Partial-Keep-Inventory release should I use?

Updated 6 months ago
Latest stable file 26.1.2-1
Game version 26.1.2
Loader Fabric

Partial-Keep-Inventory 26.1.2-1 targets 26.1.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is Partial-Keep-Inventory required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Partial-Keep-Inventory 26.1.2-1 need?

26.1.2-1. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Partial-Keep-Inventory without breaking your instance.

Built for Partial-Keep-Inventory 26.1.2-1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 26.1.2-1. It targets 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 26.1.2-1. It opens that exact file at the source.

About this project

What does Partial-Keep-Inventory add?

Partial Keep Inventory
Partial Keep Inventory introduces a softer alternative to /gamerule keepInventory for Fabric 1.21.1. Instead of keeping everything or dropping everything, it selectively protects valuable items while still punishing deaths.
Core Features
Selective item keeping

Keeps all shulker boxes (any colour).
Keeps all non-stackable items – tools, weapons, armour, elytra, etc. (anything with max stack size 1).
Keeps extra container-like items such as ender chests and bundles (and anything else you add to the whitelist in partialkeepinv.json).
All other items (blocks, food, stackables) drop normally on death.

Inventory position preserved

Kept items are restored to their original inventory slots (hotbar and main inventory).
Off-hand item is restored to the off-hand slot when possible.
If a slot is already occupied, the item is added to the inventory or dropped at the player's feet if there's no space.

Armour handling

Armour is kept and re-equipped automatically on respawn.
Each death applies extra durability damage to each worn armour piece (default ~3% of max durability, configurable).
Items won't be destroyed by the death penalty — at least 1 durability is always preserved.

XP penalty

On every death the player loses a configurable number of XP levels (default 1–5, never below level 0).
No XP orbs are dropped.

Configuration

keep.shulkers, keep.nonStackableItems, keep.containers – toggle what types of items are protected.
containers.materialWhitelist – list extra items to always keep (default: minecraft:ender_chest, minecraft:bundle).
xpLoss.enabled, xpLoss.minLevels, xpLoss.maxLevels – control how many levels are lost on death.
armorDamage.enabled, armorDamage.percent – control armour durability loss per death.

Requirements

Fabric Loader 0.18+
Fabric API
Java 21+
Make sure in each relevant world:

/gamerule keepInventory false

Project description from Modrinth.

Pick your setup

Partial-Keep-Inventory by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Partial-Keep-Inventory versions and loaders

4 of 4 releases match

Looking for an older file? The official Modrinth project page is in Resources.