KeepInvTag: Keep Your Inventory on Death in Minecraft
Death in Minecraft can be devastating. You spend hours gathering resources, only to lose everything in a lava pool or a surprise creeper blast. The vanilla keepInventory game rule helps, but it applies to every player on the server. What if you want a more flexible solution? Enter KeepInvTag, a clever datapack and mod that gives you per-player control over inventory retention. With a simple tag, you can decide exactly who keeps their items and who faces the classic survival challenge.
What Is KeepInvTag?
KeepInvTag is a lightweight Minecraft add-on that works as both a datapack and a mod. Instead of toggling the global keepInventory game rule, it introduces a tag system. By adding the KeepInv tag to a player, that individual will retain all their items upon death, while everyone else on the server still drops their loot. This makes it perfect for multiplayer servers where you want to reward donors, protect new players, or simply give yourself a safety net without affecting the entire world.
How KeepInvTag Works
The core mechanic is straightforward. Once the datapack or mod is installed, you use a simple command to grant the tag:
- Add the tag:
/tag [player] add KeepInv - Remove the tag:
/tag [player] remove KeepInv
Players with the KeepInv tag will keep their entire inventory, armor, and offhand items when they die. Experience points, however, are handled separately. By default, XP is reset to zero on death, but you can change that behavior with a scoreboard command. This gives server admins fine-grained control over the death penalty.
Customizing XP Behavior
KeepInvTag includes a built-in scoreboard objective called keepinvtag. You can set it to control whether a tagged player keeps their experience or not:
- Reset XP (default):
/scoreboard players set xp keepinvtag 1 - Keep XP:
/scoreboard players set xp keepinvtag 0
This feature is especially useful for servers that want to offer a partial keep-inventory experience, where items are safe but experience is still lost on death, maintaining some risk.
How to Install KeepInvTag for Minecraft
Installing KeepInvTag is simple, whether you prefer a datapack or a mod. The add-on supports multiple loaders, so you can use it on almost any server or singleplayer world.
Datapack Installation
If you run a vanilla server or a singleplayer world, the datapack version is the easiest route. Just download the datapack file and place it in the datapacks folder of your world. Then reload or restart the world, and the tag system will be active. No mods required.
Mod Installation
For modded environments, KeepInvTag is available as a mod for Fabric and Quilt. To install, you need the corresponding mod loader and its API. For Fabric, ensure you have Fabric API installed. For Quilt, you need Quilted Fabric API. Then simply drop the KeepInvTag mod file into your mods folder. The mod version integrates seamlessly with other mods and can be managed through your usual mod management tools.
If you are looking for a hassle-free way to get started, the foxygame.net launcher offers KeepInvTag in its curated add-on catalog. With a single click, the launcher handles the correct version and loader compatibility, so you can focus on playing rather than troubleshooting. This is a great option for players who want to quickly download KeepInvTag for Minecraft without manually sorting through files.
Why Use KeepInvTag Over the Default Game Rule?
Minecraft's built-in keepInventory game rule is an all-or-nothing setting. It affects every player on the server equally. KeepInvTag solves this by making inventory retention a per-player choice. You can grant the tag to new players as a temporary safety net, reward loyal community members, or use it in minigames where only certain roles should keep items. The flexibility is unmatched, and the lightweight design means it won't lag your server.
Compatibility and Supported Versions
KeepInvTag is regularly updated to support the latest Minecraft releases. It works on modern versions, including 1.20 and 1.21, and is compatible with both singleplayer and multiplayer setups. Because it uses standard commands and data pack functions, it rarely conflicts with other mods or plugins. Whether you are running a vanilla snapshot or a heavily modded Fabric server, KeepInvTag for Minecraft integrates smoothly.
Final Thoughts
KeepInvTag is a must-have tool for any server admin or player who wants more control over the death penalty. Its per-player tag system, optional XP handling, and easy installation make it a standout alternative to the global keepInventory rule. Whether you download KeepInvTag manually or use a launcher like foxygame.net to install it with one click, you will appreciate the flexibility it brings to your Minecraft experience. Give it a try and say goodbye to frustrating item loss on your own terms.
===ARTICLE===