promotional bannermobile promotional banner

Keep Inventory Lose XP

Players keep Inventory but drop experience on death.

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.

 

The Keep Inventory Lose XP Team

profile avatar
Owner
  • 8
    Followers
  • 14
    Projects
  • 31.5K
    Downloads

More from RozmirView all