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.