Selective Keep Inventory

Selective Keep Inventory

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

by
338 Downloads
datapackfabric
Rent Server with this Mod

Screenshots

command-for-remove-keep
first-command- for-add

About this Mod

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 <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:

  • /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.

Available Versions

Selective Keep Inventory 1.0.0release
MC 1.21.1fabric
March 29, 2026
Selective Keep Inventory 1.21.11release
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11datapack
March 27, 2026

How to Install Selective Keep Inventory on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "Selective Keep Inventory". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabric

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+15 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Selective Keep Inventory server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is Selective Keep Inventory compatible with datapack and fabric?

Selective Keep Inventory officially supports datapack, fabric for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Selective Keep Inventory – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Selective Keep Inventory consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Selective Keep Inventory with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+8 more