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. It also offers a way to restore a player's inventory and to restore the default settings.
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.
| Setting | Range | Default | Description |
|---|---|---|---|
| Graves | Enabled / Disabled | Enabled | Enables or disables the grave system. |
| Grave Duration (Minutes) | 0–180 | 5 | Time before graves disappear. 0 keeps graves forever. |
| Grave Timer | Only While Loaded / World Time | Only While Loaded | Only While Loaded only counts down while the grave's area is loaded (a player is nearby). World Time counts the world's time since the grave was placed, so an expired grave disappears as soon as its area is loaded again. |
| Grave Appearance | – | Random | Random, Candle, Skull, Chest, Bundle, Tombstone or Player Head. |
| Player Head Drop On Death | Enabled / Disabled | Enabled | Whether players can receive their own head when they die. |
| Player Head Drop Chance | 1–100% | 20% | The chance for the player head. |
| Exp Loss | Enabled / Disabled | Enabled | Whether players lose Experience Levels on death. |
| Exp Loss Amount | 1–100% | 30% | The share of Experience Levels that is lost. |
| Equipment Damage | Enabled / Disabled | Enabled | Whether worn equipment is damaged on death. |
| Equipment Damage Amount | 1–100% | 10% | The share of maximum durability that worn equipment loses. |
| Keep Inventory Type | Tag List / Hotbar / None | Tag List | Tag List keeps items in the Non-Droppable Item Tag List. Hotbar keeps the hotbar, off-hand and equipment slots. None keeps nothing. |
| Non-Droppable Item Tag List | Item Tag | keepinv:non_droppable_items |
The item tag used by the Tag List type. |
The default tag keepinv:non_droppable_items keeps tools, weapons, armor, bundles, food, spawn eggs and operator items, along with items from several popular server mods. Any other item tag can be entered instead, for example one from your own data pack.
Gives a player back the inventory they had right before their last death, for example after a bug or an unfair death.
| Option | Description |
|---|---|
| Inventory | Whether the restored items are filtered with the current Non-Droppable Item Tag List or restored completely. |
| Items | Whether the restored items are packed into Shulker Boxes or dropped on the ground. |
| Enter Playername Below | The player whose inventory is restored. |
Restores the default settings the data pack ships with.