Перейти к содержимому
Mineforgian

Partial-Keep-Inventory

A softer alternative to keepInventory

Загрузки
524
Подписчики
5
Обновлён
24 апреля 2026 г.
Лицензия
MIT

Опубликован 26 марта 2026 г.

Partial Keep Inventory Partial Keep Inventory introduces a softer alternative to /gamerule keepInventory for Fabric 1.21.1. Instead of keeping everything or dropping everything, it selectively protects valuable items while still punishing deaths. Core Features Selective item keeping

Keeps all shulker boxes (any colour). Keeps all non-stackable items – tools, weapons, armour, elytra, etc. (anything with max stack size 1). Keeps extra container-like items such as ender chests and bundles (and anything else you add to the whitelist in partialkeepinv.json). All other items (blocks, food, stackables) drop normally on death.

Inventory position preserved

Kept items are restored to their original inventory slots (hotbar and main inventory). Off-hand item is restored to the off-hand slot when possible. If a slot is already occupied, the item is added to the inventory or dropped at the player's feet if there's no space.

Armour handling

Armour is kept and re-equipped automatically on respawn. Each death applies extra durability damage to each worn armour piece (default ~3% of max durability, configurable). Items won't be destroyed by the death penalty — at least 1 durability is always preserved.

XP penalty

On every death the player loses a configurable number of XP levels (default 1–5, never below level 0). No XP orbs are dropped.

Configuration

keep.shulkers, keep.nonStackableItems, keep.containers – toggle what types of items are protected. containers.materialWhitelist – list extra items to always keep (default: minecraft:ender_chest, minecraft:bundle). xpLoss.enabled, xpLoss.minLevels, xpLoss.maxLevels – control how many levels are lost on death. armorDamage.enabled, armorDamage.percent – control armour durability loss per death.

Requirements

Fabric Loader 0.18+ Fabric API Java 21+ Make sure in each relevant world:

/gamerule keepInventory false

Ченджлог

26.1.2-1Релиз26.1.2 · 24 апреля 2026 г.

🔄 Minecraft 26.1.2 Update — v26.1.2 Compatibility update for Minecraft 26.1.2 — no new features or behaviour changes. 📌 Version naming change: The mod version now mirrors the Minecraft version it targets, making it easier to grab the right one at a glance. What changed:

Updated to Minecraft 26.1.2 Updated to Fabric Loader 0.19.2 and Fabric API 0.146.1+26.1.2 Updated Fabric Loom to 1.16-SNAPSHOT

Compatibility:

Minecraft 26.1.2 Fabric Loader 0.19.2+ Works on both client and server

1.1.1Релиз26.1, 26.1.1, 26.1.2 · 11 апреля 2026 г.

🐛 Bug Fix — v1.1.1 Small but important fix — totems now work properly again! What changed:

Fixed totem of undying not popping on death — the mod was intercepting the death event before vanilla could check for a totem in your hands

Compatibility:

Minecraft 26.1 and 26.1.1 Fabric Loader 0.18.5+ Works on both client and server

1.1.0Релиз26.1, 26.1.1 · 7 апреля 2026 г.

🔄 Minecraft 26.1 Update - v1.1.0 Quick compatibility update to bring the mod up to Minecraft 26.1 - no new features, no behaviour changes, everything works exactly as before. What changed:

Updated to Minecraft 26.1 Updated to Fabric Loader 0.18.5 and Fabric API 0.144.4+26.1 Adjusted for 26.1's lack of obfuscation mappings

Compatibility:

Minecraft 26.1 and 26.1.1 Fabric Loader 0.18.5+ Works on both client and server

1.0.0Релиз1.21.11 · 26 марта 2026 г.

Initial release.

  • Keeps shulker boxes, tools, weapons, armour, and elytra on death
  • All other items drop normally
  • Kept items restored to original inventory slots
  • Armour re-equipped on respawn with configurable durability penalty (~3% per death)
  • Configurable XP level loss on death (default 1-5 levels)
  • Configurable item whitelist (ender chests, bundles by default)
  • All behaviour configurable via config file

Комментарии

Загружаем…