
DatapacksJava
KeepInvTag
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.
With the Mod/Datapack you can give players a tag with which they can keep the items after death.
If you find any bugs or have any Datapack/Mod suggestions, please let me know on my Discord.
Notes
- All items will be dropped on one spot
- XP is reset by default unless you change it
Mods
- If you use Fabric you must have a version of Fabric API also installed
- If you use Quilt you must have a version of Quilted Fabric API also installed
You can tag players with
/tag [PlayerName] add KeepInv
and remove it with
/tag [PlayerName] remove KeepInv
V1.0.3
In Version 1.0.3 or higher, you can set whether you keep the XP or it is completely reset
Reset XP (by default)
/scoreboard players set xp keepinvtag 1
Keep XP (for everyone)
/scoreboard players set xp keepinvtag 0
Thanks
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 26.1, 26.1.1, 26.1.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
Verified by MCModsHub
- Downloads as keepinvtag-V1.0.3.zip
- Download size: 7 KB
- Download link checked 1 Sept 2026 — working
These come from our own check of the pack file, not from the source page.