

Luna's Keep Inventory
The keep inventory function is great, but sometimes it can be problematic when you intentionally die to quickly return to your base. This datapack solves this issue while preserving the main benefits of the inventory saving system!
Main Features
With this datapack, you keep your equipment and some other important items upon death, while other items have a chance to remain in your inventory (default 40%). Experience drops on the ground for later collection (default 66% experience kept).
What is Kept on Death
- All enchanted items with durability
- Boats and chest boats
- Bows, crossbows, and all types of arrows
- Snowballs, eggs, and wind charges
- Fireworks
- Buckets (empty and filled)
- Leads and saddles
- Compasses (including tracking ones)
- Ender pearls
Settings
The datapack offers two main settings: item keep chance (0-100%) and experience keep amount (0-3 levels). These parameters can be changed using the command /dialog show @s lki:settings
(available since version 1.3).
For players preferring more challenging gameplay, there is a separate option to disable inventory saving (added in version 1.2). This setting is activated through the "LKI Menu" (since version 1.3).
Add-ons
You can create your own add-ons for this datapack using the drop_searches
and keep
tags!
Technical Information
lki\tags\function\drop_searches.json
- executed when a player dies to check for droppable itemslki\tags\item\keep.json
- contains the list of kept items and tagslki:drop_item {slot:
- used to drop an item with random chance application}