DEV Community

SecondWindMC
SecondWindMC

Posted on

I built a death-chest plugin for Minecraft that never eats your items (Paper 1.21)

I lost a full diamond kit to a lava pool one time too many, so I built GraveGuard — a death-chest plugin for Paper 1.21.x that drops a protected grave where you die instead of scattering your items into the void.

What it does

  • On death, your items + XP go into a chest at the death location
  • A hologram shows a live countdown of the protection timer
  • Only you can open the grave while it's protected — then it opens up for anyone (or despawns, configurable)
  • You get a compass that points back to your grave

Everything is configurable in config.yml — protection duration, whether graves despawn, hologram text, messages.

Why not existing plugins?

Most death-chest plugins either haven't been updated for modern Paper, bury key behavior behind config formats nobody wants to touch, or silently eat items in edge cases (dying in the void, near bedrock, on non-solid blocks). GraveGuard searches for a valid grave spot and, if it truly can't place one, drops your items normally — it never silently deletes your inventory. That bug class is embarrassingly common and I specifically built a restore-on-failure path for it.

The code

It's MIT-licensed and small enough to read in one sitting:

👉 https://github.com/SecondWindMC/GraveGuard

Latest build is on the releases page, or grab it from Hangar:

👉 https://hangar.papermc.io/SecondWindMC/GraveGuard

Drop the jar in plugins/, restart, done. No dependencies.


Companion plugin: SecondWind adds Fortnite-style DBNO revives (go down instead of dying, teammates pick you back up). Same deal — open source, Paper 1.21.x: https://github.com/SecondWindMC/SecondWindRevive — store: https://secondwindmc.github.io

Top comments (0)