Luna's Keep Inventory

Luna's Keep Inventory

A keep inventory mod/data-pack with customization in mind!

by
3.7K Downloads
datapackfabricforgeneoforgequiltadventuregame-mechanicsutility
Rent Server with this Mod

Screenshots

Inventory before dying
Inventory after dying

About this Mod

Keep Inventory is great and all, until you die on purpose to get back to your base. This datapack aims to fix that while still leaving keep inventory somewhat the same!

Summary

  • Keep Important Items on death
  • Keep 40% of other items
  • Can change datapack with settings
  • Can make add-ons to add functionality

How does it work

This datapack lets you keep your equipment (and some other items, see below) when you die, every other item has a (default) 40% chance to stay in your inventory. Experience is dropped on the ground to be picked up (default 66% of exp kept).

Items Kept
  • Any enchantable item with durability
  • Boats + Chest Boats
  • Bows + Crossbows + Arrows (all types)
  • Snowballs + Eggs + Wind Charges
  • Firework Rockets
  • Buckets (filled and unfilled)
  • Leads + Saddles
  • Compasses (recovery ones as well)
  • Ender Pearls

Customizablity

There are 2 settings in the pack: Item Keep Chance (0-100) and Xp Keep Amount (0-3). These two settings can be changed with /dialog show @s lki:settings (added in 1.3) respectively (do note that the sliders show the default value and not the current one).

There is also an individual setting for more hardcore players (added in 1.2) this setting allows you to opt-out of the inventory part of the datapack (still stacks the items). This setting can be by going to the menu and selecting LKI Menu (added in 1.3).

More Details
  • Item Keep Chance uses percentages
  • Xp Keep Amount uses thirds
Customizablity for verisons before 1.3

ima just gonna copy-paste this:

There are 2 settings in the pack: Item Keep Chance (0-100) and Xp Keep Amount (0-3). These two settings can be changed with /function lki-settings:item_lose_chance {setting:<VALUE>} and /function lki-settings:xp_keep_amount {setting:<VALUE>} respectively.

There is also an individual setting for more hardcore players (added in 1.2) this setting allows you to opt-out of the inventory part of the datapack (still stacks the items). This setting can be changed with the /trigger lki:opt_out and /trigger lki:opt_in commands (can be ran by any player).

Add-Ons

You can make add-ons for this datapack you can do so by using the drop_searches and keep tags!

One pre-made add-on is Keep Modded Inventory which adds support for some mods!

Tag/Function Info
  • lki\tags\function\drop_searches.json is ran when a player dies as that player to check for drop-able items.
  • lki\tags\item\keep.json is for every kept item (and kept tag), you can add more items and modded items there.
  • lki:drop_item {slot:<SLOT>} is used to drop an item and apply the random chance mechanic.
  • Look in the datapack for more info!

Available Versions

LKI 1.3.2 - MC 21.6-.9release
MC 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric, forge, neoforge, quilt
October 3, 2025
LKI 1.3.2 - MC 21.6-.9release
MC 1.21.6, 1.21.7, 1.21.8, 1.21.9datapack
October 3, 2025
LKI 1.3.1.1 - MC 21.6-.8release
MC 1.21.6, 1.21.7, 1.21.8fabric, forge, neoforge, quilt
September 23, 2025
LKI 1.3.1 - MC 21.6-.8release
MC 1.21.6, 1.21.7, 1.21.8fabric, forge, neoforge, quilt
July 2, 2025
LKI 1.3.1 - MC 21.6-.8release
MC 1.21.6, 1.21.7, 1.21.8datapack
July 2, 2025

How to Install Luna's Keep Inventory on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.9).

3

Install Mod

Open the mod browser in the dashboard and search for "Luna's Keep Inventory". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabricforgeneoforgequilt

Minecraft Versions

1.21.9, 1.21.8, 1.21.7 (+9 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Luna's Keep Inventory server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.9). You can switch loaders with one click in the panel.

Is Luna's Keep Inventory compatible with datapack and fabric and forge and neoforge and quilt?

Luna's Keep Inventory officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.9, 1.21.8, 1.21.7. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Luna's Keep Inventory – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Luna's Keep Inventory consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Luna's Keep Inventory with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.21.21.11.21+2 more