Luna's Keep Inventory

Luna's Keep Inventory

Mod and data pack

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

Server AdventureEquipmentGame MechanicsLibraryUtility

285 downloads
1 follower
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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 /function lki-settings:item_keep_chance {setting:<VALUE>} and /function lki-settings:xp_keep_amount {setting:<VALUE>} respectively.

More Details
  • Item Keep Chance uses percentages
  • Xp Keep Amount uses thirds

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!

Project members

E8zEbo8Luna

Member

Details

Licensed MIT
Published 2 months ago
Updated 2 months ago