
KeepInvTag
A simple Mod/Datapack where only people with the 'keepinv' tag keep the items.
About this Mod
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 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
Available Versions
How to Install KeepInvTag 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 (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "KeepInvTag". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+12 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
KeepInvTag 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 (26.1.2). You can switch loaders with one click in the panel.
Is KeepInvTag compatible with datapack and fabric and forge and neoforge and quilt?
KeepInvTag officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 26.1.2, 26.1.1, 26.1. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with KeepInvTag – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if KeepInvTag 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.
Similar Mods
Rent Modded Server
Install KeepInvTag with just one click on your server.