HomeJavaDatapacksSelective Keep Inventory
Selective Keep Inventory
DatapacksJava

Selective Keep Inventory

by Kadddor · on Modrinth

Per-player keep inventory for vanilla Minecraft. Give keep inventory to selected players only instead of the whole server.

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.1–1.21.11 · Data pack⬇ Download for 1.21.1 · Fabric
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Selective Keep Inventory — screenshot 1Selective Keep Inventory — screenshot 2

Selective Keep Inventory

Selective Keep Inventory is a lightweight vanilla datapack for Minecraft Java Edition that enables keep inventory for specific players only.

Instead of enabling keepInventory for the entire world, this pack lets you choose exactly which players keep their items and XP after death.

Features

How it works

Players with the keepinv tag keep their inventory and XP on death.

Players without the tag die normally and lose their inventory/XP as expected.

Commands

Enable for a player: /tag <player> add keepinv

Disable for a player: /tag <player> remove keepinv

Example: /tag Steve add keepinv

Fabric:

Player Keep Inventory

Server-side Fabric mod for Minecraft 1.21.1 that enables keep-inventory only for selected players.

Command

/keepinventory <player|selector> <on|off|toggle|status>

Examples:

Installation

  1. Put the ZIP file into your world's datapacks folder
  2. Run /reload
  3. Check with /datapack list

Notes

This is a vanilla datapack, so it does not add a custom root command like /keepinv on Steve. Use the player tag system shown above.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more