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


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
- Put the ZIP file into your world's
datapacksfolder - Run
/reload - 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
How to Install Selective Keep Inventory on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.11).
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
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+15 more)
Server-side
✓ RequiredRecommended 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.