COWMODSКаталог модов

Better Keep Inventory datapack

Control item and XP loss upon death

Автор: Szakszuka6,6 тыс.3обновлён 31 мар. 2026 г.
СнаряжениеМеханики игры

Описание

What does it do?

  • This datapack allows you to configure which items don't drop upon player death and how much is dropped from the rest.
    • Singular or unstackable items have random chance of dropping based on the same value how much plural items (means more than 1 item in the stack) are dropped.
  • It let you configure how xp behave after death. By default everything is dropped and 50% can be pick up at the place of death which is far more than vanilla and it's max 7 levels.
    • You can give players items with custom data always_drop:1b and never_drop:1b which take priority over general list.
  • Adjustable lifetime for items and xp (before they despawn).
  • Current settings can be seen by regular player by using /trigger check_keep_inventory. It shows on first join by default but can be turned off

Main purpose of this datapack was to create list of items that do not drop for a SMP. The datapack I was inspired by (Keep Some Inventory by PuckiSilver), was insufficient, easy to made but hard to use. So I made my own. Then I added rest of the features that were nice to have.

Priority of items settings

  1. components:{"minecraft:custom_data":{always_drop:1b}}

    Example command: /give @s minecraft:ender_chest[minecraft:custom_data={always_drop:1b}] 1

  2. components:{"minecraft:custom_data":{never_drop:1b}}
    • Works like Bedrock keep_on_death tag, unless the item als have curse of vanishing
  3. List of items that do not drop.
    • Default list is inside bki:reset function, you can edit it there with text editor and than run the function or try using bki:settings function in game.
  4. The rest is dropped. By default it is everything, but you can adjust drop percentage in the same way as the list above

To adjust the settings change values in file reset.mcfunction with text editor or use in game settings with

/function bki:settings

Photo misses adjustable lifetime feature Preview of in game settings for the datapack

There will be no updates of this datapack unless I will need it myself, but feel free to modify it yourself For that I'm leaving comments so future someone will be able to quickly understand what each part does

Compatability

  • This pack will most likely not work together with grave packs or packs doing anything to items on death.
  • It might work with modded items, but I haven't tested it.

Галерея

Settings

Последние версии

Все версии →
release

1.3

1.3
31 мар. 2026 г.6,3 тыс.Minecraft: 1.20.5, 1.20.6, 24w18a, 24w19a, 24w19b, 24w20a, 24w21a, 24w21b, 1.21-pre1, 1.21-pre2, 1.21-pre3, 1.21-pre4, 1.21-rc1, 1.21, 1.21.1, 24w33a, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2-pre1, 1.21.2-pre2, 1.21.2, 1.21.3, 24w44a, 24w45a, 24w46a, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1datapack
Скачать
Что нового
Fixed small mistakes - Folder structure change for 1.20 - Error massages for older versions without dialogs
release

Backport

1.2
28 мар. 2026 г.29Minecraft: 1.20.5, 1.20.6, 24w18a, 24w19a, 24w19b, 24w20a, 24w21a, 24w21b, 1.21-pre1, 1.21-pre2, 1.21-pre3, 1.21-pre4, 1.21-rc1, 1.21, 1.21.1, 24w33a, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2-pre1, 1.21.2-pre2, 1.21.2, 1.21.3, 24w44a, 24w45a, 24w46a, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1datapack
Скачать
Что нового
Older versions support
release

1.1

1.1
28 сент. 2025 г.147Minecraft: 1.21.8datapack
Скачать
Что нового
1.21.8 1.1 - Added adjustable lifetime for items and xp - Current settings can be seen by regular player by using `/trigger check_keep_inventory`
release

1.21.8

1.0
26 сент. 2025 г.65Minecraft: 1.21.8datapack
Скачать
Что нового
1.21.8