Keep But Penalty

Keep inventory on death while applying configurable experience, equipment durability, and vanilla respawn-debuff penalties.
Back to Files

Keep But Penalty 2.0.0+1.21.1-neoforge

File namekeep-but-penalty-2.0.0-1.21.1-neoforge.jar
Uploader
THE_cattailTHE_cattail
Uploaded
Nov 20, 2026
Downloads
3
Size
78.8 KB
Mod Loaders
NeoForge
File ID
9711911
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:keep-but-penalty-1674315:9711911"

Learn more about Curse Maven

What's new

Keep But Penalty 2.0.0

  • Multi-loader 8-target rewrite: Supports Fabric, Forge, and NeoForge across Minecraft 1.20.1, 1.21.1, 26.1.2, and 26.2 with zero external library dependencies.
  • Death-scoped keepInventory projection: Temporarily projects keepInventory = true via a reentrant ThreadLocal without altering the world's real gamerule.
  • Exact vanilla XP math: Defaults to keeping 75% of total experience without triggering XP pickup events or Mending.
  • Fair durability penalty & vanilla-decoupled breaking: Defaults to 10% of max durability (PERCENT_MAX) or fixed points (FLAT), with IdentityHashMap deduplication across armor, hands, and optional Curios, Trinkets, and Accessories slots, plus item/tag exclusions (excludedItems, #keep_but_penalty:excluded).
  • Anti-suicide hunger preservation & PvP exemption: Preserves below-full hunger across death (minRespawnFoodLevel = 6) and adds skipOnPvp.
  • Native in-game Config Screen & 4 languages: Zero-dependency KeepButPenaltyConfigScreen (en_us, zh_cn, zh_tw, ja_jp) and automatic migration from legacy keep_but_penalty-common.toml to config/keep_but_penalty.toml.

This mod has no related projects