Nice Keep Inventory modifies the behavior of the keep_inventory gamerule by allowing players to retain only part of their inventory upon death. Instead of losing everything, important items such as armor and tools are preserved, creating a balanced middle ground between losing all items and keeping the entire inventory. The data pack also introduces three new enchantments themed around its mechanics, along with a fully featured but optional grave system.
The data pack is currently published only on Modrinth. All required assets are included in the data pack and can also be used as a resource pack. An automatically converted mod version is also available. You can download it here: Nice Keep Inventory on Modrinth
When using the mod version in singleplayer worlds, the data pack does not need to be loaded as a resource pack. However, when using the mod version on a server, you must either include the assets from the data pack in your server’s resource pack or instruct players to install the mod locally.
By default, when a player dies they only drop items from their inventory that are not listed in the Non Droppable Item Tag List. This behavior can be changed in the Config Menu.
By default, there is a 20% chance for a player to drop their head when they die. This probability can be adjusted in the Config Menu.
When a player dies, they lose 30% of their Experience Levels by default. This percentage can be customized in the Config Menu.
If a player is wearing equipment when they die, their equipped items lose 10% of their maximum durability by default. This durability loss can also be adjusted in the Config Menu.
Graves store the items a player drops upon death. They generate at the last safe position the player occupied before dying, preventing them from spawning in hazardous locations such as lava or the void. A player can open a grave by simply interacting with it. Once opened, the stored items drop at the grave’s location and the grave disappears.
When using the Nice Actions data pack, players can access the coordinates of their most recently generated grave through the Quick Action Menu.
The data pack adds three new enchantments to the game, which are all centered around the features of Nice Keep Inventory. You can read more about Gravehold, Deathlock and Safekeep on the individual pages.
The settings of the data pack can be configured in-game through the Configuration Menu. This menu can be opened using the /function keep_inventory command or through the option provided in the Nice Admin Tools data pack. Among the settings for each key feature of the data pack, there is also an option to restore the default settings that the data pack originally came with.
For PaperMC users, it is recommended to set the
paper.maxChatCommandInputSizeproperty to a value between 512 and 1024. More information can be found in the PaperMC Docs.
Functionalities to restore a player's inventory from before their last death.
Restores the default settings the data pack ships with.