keepinvy

Flexible inventory saving settings upon death - separately for PvP, mobs, fire, void, and other reasons

21 downloads

Smart Keep Inventory

This mod provides flexible control over whether the player loses their inventory upon death, depending on what exactly killed them.

By default, the player's inventory is almost always retained, but it is lost if they are killed by another player (PvP), crushed by a falling driplite/stalactite, or suffocated by blocks. Everything elseโ€”falling into lava, drowning, regular mobs, the void, etc.โ€”retains the player's inventory.

Features

  • ๐Ÿ—ก PvP โ€” direct and indirect kills are configured separately (for example, if you were set on fire in battle and the player died from the fire a few seconds later, this also counts as PvP; the time window is configurable)
  • ๐Ÿชจ Sharpened Driplite / Stalactite
  • ๐Ÿงฑ Suffocation in Blocks
  • ๐ŸŒŒ Falling into the Void
  • ๐Ÿ”ฅ Fire and Lava
  • ๐ŸŒŠ Drowning
  • ๐Ÿ‚ Falling from a Height
  • ๐Ÿ— Hunger
  • ๐Ÿ’ฅ Explosions
  • ๐ŸงŸ Regular Mobs
  • โ“ Any other causes of death

Each option can be enabled or disabled individually, according to your server's rules.

Settings

Opened directly in-game via the Mod Menu (requires the Cloth Config API) โ€“ a screen with switches; changes are applied instantly, without restarting the server. The mod also works without the Mod Menu/Cloth Config โ€“ just manually edit the settings in config/keepstuffmod.json.

Dependencies

  • Fabric API (required)
  • Mod Menu (optional, for the settings screen)
  • Cloth Config API (optional, for the settings screen)

Version

Minecraft 1.21.1, Fabric, Java 21

No gallery available for this project.