Skip to content

Selective Keep Inventory

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

FabricDatapack
Loaders
FabricDatapack
Downloads on Modrinth
1.2K
Followers on Modrinth
1
versions
2
Updated
March 29, 2026Mar 29
Published
in 2026
first-command- for-add · swipe

At a glance

Runs on Fabric and Datapack
For Minecraft 1.20.1–1.21.11
Needed on the server; optional in the game
Latest version — 1.0.0 from March 29, 2026
License MIT — free
Where it's needed
In gameoptionalOn serverrequired

Needed on the server; optional in the game

Game versions1.20.1–1.21.11

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

  • Per-player keep inventory
  • Per-player XP retention
  • Fully server-side
  • Vanilla datapack, no plugin or mod required
  • Supports Minecraft Java Edition 1.20.2 to 1.21.11

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 add keepinv`

Disable for a player: `/tag 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:

  • /keepinventory Steve on
  • /keepinventory @a[team=vip] on
  • /keepinventory Steve status

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.

FAQ

How to install Selective Keep Inventory?

Install Fabric for your Minecraft version, download Selective Keep Inventory for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Selective Keep Inventory support?

Selective Keep Inventory has builds for Minecraft 1.20.1–1.21.11.

Is Selective Keep Inventory needed on the server?

Needed on the server; optional in the game

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More