Mineuniverse
Log in Register
Mods

Keep Inventory Lose XP

Players keep Inventory but drop experience on death.
by Rozmir
Download Claim this project
6,508 downloads
0 likes
Updated Jun 30, 2026
0 hypes

Project Status: Finished & Finalized

The developer of this project is retired and does not respond to private messages or GitHub issues.

 

Automatically sets keepInventory to true in worlds without the need for cheats to be enabled.

On death, players will keep their inventory but drop experience on death. The amount of experience lost can be configured through the config file, by default it is set to the vanilla Minecraft amount.

 

 

 

Modpacks:

Use freely, no permission is required, although credit is appreciated.

 

 

 

Credits & Licence Conditions:

Silly511 - Original inspiration for the mod, and code for setting gamerules was sourced from ConnectionHandler.class in the "Keeping Inventory" mod, this works within the custom license conditions.

sergiusonesimus - Code for detecting player deaths was sourced from GravestoneEventHandler.class in the "GraveStones - Die Classy Updated" mod under the GNU General Public License.

unclecat_ - Provided code for removing XP from players (https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/modification-development/2503178-remove-xp-from-player-forge).

SnubMansters  - Their forum post helped me understand how to make and use config files (https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/modification-development/2467087-config-file-entity-ids).

 

Use of anatawa12's Fork of Forge Gradle 1.2 within Project:

The source code of this project uses anatawa12's fork of ForgeGradle 1.2 as a library under the GNU Lesser General Public License v2.1.

 

Compiled versions of this mod are permitted under section 5 of the original license, "A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work...is not a derivative work of the Library"; consequently the conditions of the original license do not apply to the work.


The source code of this mod is permitted under section 6 of the original license, "you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice" provided that:

  • Private modifications are allowed.
  • Notice is given that the Library is used and a copy of it's original license is provided.
  • Access is provided to the source code of the Library.

 

The source code for anatawa12's fork of ForgeGradle 1.2 can be found here: https://github.com/anatawa12/ForgeGradle-1.2

 

 

All licence conditions have been adhered to with the application of the GNU General Public License, disclosure of source code, notice of anatawa12's fork of ForgeGradle 2.1 being used within the source code, and inclusion of a copy of anatawa12's ForgeGradle 2.1 license within the source code.

 

KeepInventoryLoseXP-1.7.10-1.1.jar
MC Client, Forge, 1.7.10, Server
Release 2024-07-23 Get

More from Rozmir

Loading Screen Messages
435
Egg Particle Fix
2,539
Mo' Creatures Legacy
18,593
Golem Tweaks
1,800
Goblins Legacy
1,587

You Might Also Like

No More Pop-ups
A Minecraft mod to remove in-game pop-ups
996,708
Exit Confirmation
Often accidentally closed Minecraft? This mod might help!
99,067
NoDynamicFps
Adds an option to disable Vanilla's Dynamic FPS implementation
99,004
Liberty's Villagers
Quality of Life and AI improvements for Villagers
9,968,428
Naruto Enhanced Extension || AHZNB's Naruto ShinobiCraft Addon
Some practical functions
9,980
Wildex Bestiary
In-game bestiary that automatically tracks all creatures you encounter, including modded mobs.
9,937