death chest

death chest

Spawns a chest containing all of the player's items upon death.

427 downloads 1 followers

⚰️ DeathChest


Note: This mod was mainly vibe-coded. I coded this mod because I couldn't find a suitable death chest mod for my own private server. I wanted to share it with anyone else looking for such a mod. Sorry if you don't like ai content


πŸ”§ report bugs

https://forms.gle/6GuMGGaCCfbZeX6DA

πŸ“ feedback

https://forms.gle/oKWRMpyJT4vQrJNXA


A lightweight, server-side death chest mod for Minecraft 26.2 (Fabric).
When you die, all your items are saved in a chest at your death location β€” ready to pick up with a single left-click.


✨ Features

  • πŸ“¦ Automatic chest spawning on death β€” single or double chest depending on item count
  • πŸ‘† Left-click to retrieve all items instantly back into their original slots
  • 🎯 Smart slot restoration β€” items return to the exact slots they were in before death
  • 🌊 Replaces liquids β€” spawns in water or lava without issue
  • 🧱 Guaranteed spawn β€” 3-phase search algorithm ensures a chest always appears:
    • Phase 1: Same column Β±50 blocks up/down
    • Phase 2: 100Γ—100 area Β±20 Y around death point
    • Phase 3: Obsidian platform fallback β€” always spawns
  • πŸŒ€ Void death support β€” configurable behavior when dying below world height
  • πŸ’₯ Explosion monitoring β€” detects externally destroyed chests and cleans up state
  • 🏷️ Named chests β€” Lars's death chest shown in chest UI and as floating text display
  • πŸ“‹ Detailed log file β€” all events saved to logs/deathchest.log
  • βš™οΈ Admin commands β€” configure on the fly without restart
  • 🌍 Multilingual β€” English, German, French, Simplified Chinese

πŸ–±οΈ How it works

  1. You die β†’ chest spawns at death location with all your items
  2. A floating text label shows the chest owner and instructions
  3. Left-click the chest β†’ items return to your inventory in original slots
  4. If inventory is full, remaining items stay in the chest
  5. Chest disappears after left-clicking (no free chest exploit!)
  6. Right-click still opens the chest normally

⌨️ Admin Commands

Requires OP level 2.

Command Description
/deathchest info Show active chest count and current settings
/deathchest list List all active death chests with owner and position
/deathchest voidmode NEAREST_BLOCK Spawn chest on nearest solid block when dying in void
/deathchest voidmode DISABLED No chest, no message when dying in void

πŸ“ Config file

Auto-generated at config/deathchest.json on first launch:

{
  "voidMode": "NEAREST_BLOCK",
  "_optionen": "NEAREST_BLOCK | DISABLED"
}

πŸ“‹ Log file

Every death and chest event is logged to logs/deathchest.log:

[2026-06-29 21:05:42] DEATH       | Spieler: Lars | Pos: 100, 64, -200 | Cause: fall
[2026-06-29 21:05:42] CHEST_SPAWN | Spieler: Lars | Typ: EINZEL | Pos: 100, 65, -200 | Items: 34
[2026-06-29 21:06:10] RETRIEVE    | Spieler: Lars | ZurΓΌck: 34 | In Truhe: 0
[2026-06-29 21:07:00] VOID_DEATH  | Spieler: Lars | VoidMode: NEAREST_BLOCK

🌍 Translations

Language Status
English (en_us) βœ… Complete
German (de_de) βœ… Complete
French (fr_fr) βœ… Complete
Simplified Chinese (zh_cn) βœ… Complete

Want to add your language? Open a PR on the GitHub repository!


βš™οΈ Requirements

  • Minecraft 26.2
  • Fabric Loader β‰₯ 0.19.3
  • Fabric API
  • Java 25
  • Server-side only β€” clients do not need the mod installed

πŸ› Known Issues / Notes

  • The "Mismatch in destroy block pos" warning in server logs is a harmless Vanilla behaviour with double chests and can be safely ignored.

πŸ“œ License

CC0-1.0 β€” Public domain. Use freely.

Version Minecraft Loader Download

death chest 1.0.0

1.0.0

26.2
fabric
Download

death chest 1.0.0

1.0.0

26.2
fabric
Download

smp death chest 1.0.0

1.0.0

26.2
fabric
Download

my death chest 1.0.0

1.0.0

26.2
fabric
Download

my death chest 1.0.0

1.0.0

26.2
fabric
Download

my death chest v10

1.0.0

26.2
fabric
Download