HomeJavaDatapackskeepInventoryWithoutXP
keepInventoryWithoutXP
DatapacksJava

keepInventoryWithoutXP

by NamelessJu · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Data pack only.

⬇ Download for 1.21.2–1.21.8⬇ Download for 1.21.1
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.

A datapack for a modified keepInventory gamerule that still clears your experience levels on death for those who don't want to lose their hard-earned equipment but still have some incentive not to die.
Note that this doesn't drop the XP but completely erases it!

To install put the zip file into your world's "datapacks" folder.
To uninstall run /function nj.keepinvnoxp:uninstall, which deletes the scoreboard that the pack needs to work and then disables the datapack. Afterwards you can remove the zip file from your world folder.
(uninstalling will set keepInventory back to false, regardless of what it was before)

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more