
PartialKeepInventory
Fully configurable and modular alternative to keepInventory.
- Загрузки
- 412
- Подписчики
- 4
- Обновлён
- 24 июля 2025 г.
- Лицензия
- MIT
Опубликован 18 июля 2025 г.
PartialKeepInventory
Frustrated when you lose all your important stuff and suddenly your world/server grinds to a halt? Hate how consequence free keepInventory feels? PartialKeepInventory aims to find a "happy middleground" between the two.
PartialKeepInventory is a highly modular alternative to using keepInventory; you can keep specific groups of items, certain slots and even individual items from being dropped upon death, as opposed to your whole inventory and levels.
Usage
To start with, ensure that keepInventory is disabled and instead enabled the partialKeepInventory gamerule.

Enabling Features
Currently, nothing is set up and dying will behave as normal with keepInventory disabled. You need to enable "features" individually. For this example, we want to keep my tools and equipped armour when we die. So we enable the tools and equipment features, using the partialKeepInventory features add command.
You can also check what features are enabled using the partialKeepInventory features command.

The complete list of features is as follows:
equipment- Any items equipped in your armor slotsequippables- Any items that are able to be equipped in your amor slots.tools- Any items with a tool component, such as pickaxes and shovels (should also include weapons)hotbar- Any items that are in your hotbar.offhand- Any items in your offhand.epic/rare/common/uncommon- Any items with the respective rarity, indicated by name colour (purple/blue/yellow/white).experience- Experience and levelscustomList- Any items added to theitemListusing thepartialKeepInventory itemList addcommand.
Ченджлог
2.0.1+1.21.8Релиз1.21.8 · 24 июля 2025 г.
- Bumped to 1.21.8
2.0.0+1.21.7Релиз1.21.7 · 24 июля 2025 г.
- Minor optimisations
2.0.0-b2+1.21.7Бета1.21.7 · 23 июля 2025 г.
- Changed gamerule
- Gamerule has been renamed to
partialKeepInventory - Gamerule is now a boolean value, to enable and disable this mod's functionality.
- Gamerule has been renamed to
- Added
partialKeepInventorycommand- Fully modular feature enabling with
partialKeepInventory featuressubcommand - Add items to a list to preserve specific items on death with the
customListfeature and theitemListsubcommand.
- Fully modular feature enabling with
Feature List:
- Equipment - All items currently equipped in your armor slots.
- Equippables - All items that can be equipped in your armor slots.
- Tools - All items with a tool component attached (pickaxes, shovels, swords, bows ...etc.)
- Hotbar - All items currently in your hotbar.
- Offhand - Item currently equipped in your offhand.
- Epic Items - All items with an "Epic" rarity (purple name).
- Rare Items - All items with a "Rare" rarity (teal name).
- Uncommon Items - All items with a "Uncommon" rarity (yellow name).
- Common Items - All items with a "Common" rarity (white name).
- Experience - XP and Levels are conserved.
- Custom List - Individual items added to the
itemListusing it's subcommand.
2.0.0-b1+1.21.7Бета1.21.7 · 22 июля 2025 г.
- Added gamerule
inventoryPreservation - Added gamerule states
OFF,EQUIPMENT_AND_HOTBAR,EQUIPMENT_AND_TOOLS
Inventory preservation is off by default and should be configured. keepInventory must be set to false.
1.0.0Релиз1.21.7 · 18 июля 2025 г.
Initial release
Комментарии
Загружаем…