nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)

Keep But Penalty

Inventory retained after death penalty is applied

Keep your inventory. Pay a real death penalty.

Keep But Penalty is for modpacks and servers that want to avoid item drops, grave recovery loops, or corpse runs without making death free. Players keep their inventory, but death still removes experience and wears down equipped gear.

What it does

  • Keeps player inventory on death while the mod is installed.
  • Does not change the world's vanilla keepInventory gamerule.
  • Reduces vanilla experience after player death.
  • Damages selected equipped items after player death.
  • Covers armor, main hand, and off hand by default.
  • Supports equipped Curios items when Curios is installed.
  • Supports equipped Accessories items when Accessories is installed.
  • Can let death damage push items to 0 durability, making it pair well with no-break mods such as Keep My Sword.

Death penalty test world after inventory is kept

Screenshots above are captured in a Minecraft 1.21.1 NeoForge development client.

Default death penalty

The default settings are tuned for a simple keep-inventory survival loop:

  • Players keep their inventory.
  • Players keep one third of their total vanilla experience.
  • Players lose two thirds of their total vanilla experience.
  • Each selected damageable equipped item takes 80 durability damage.
  • Armor, main hand, off hand, Curios slots, and Accessories slots are included.

This makes death gentler than losing everything, but still expensive enough to matter.

Configuration

Configure the rules in:

config/keep_but_penalty-common.toml

Useful options include:

[death]
keepInventory = true
enableExperiencePenalty = true
experienceKeepRatio = 0.333333333
[durability]
enableDurabilityPenalty = true
durabilityLoss = 80
allowZeroDurability = true
damageArmor = true
damageMainHand = true
damageOffHand = true
damageCurios = true
damageAccessories = true

Compatibility notes

Curios and Accessories are optional. If either mod is installed, Keep But Penalty can include its equipped item slots in the durability penalty.

For 0-durability item preservation, pair this mod with a no-break mod such as Keep My Sword. Keep But Penalty applies the death cost; a no-break mod controls whether max-damage items remain as repairable stacks instead of breaking normally.

Requirements

  • Minecraft 1.21.1
  • NeoForge

Optional integrations:

  • Curios API
  • Accessories

Source and issues

External resources


Project members

THE_cattail

Member


Technical information

License
ARR
Client side
unsupported
Server side
required
Project ID