GlymeraDeadChest

On death, your full inventory (backpack, hotbar, armor, held tool) is sealed in a custom grave block at the death position. Owner-only, configurable. Lifetime and grave limit per player. Griefer-proof . Graves never drop.
Unbenannt_1.jpg

Unbenannt_1.jpg

Unbenannt_2.jpg

Unbenannt_2.jpg

Description

GlymeraDeadChest - Death Items Stored in a Grave

On death, all your items (backpack, hotbar, armor, equipped tool) are placed in a grave block at your death position. Pick them back up before the timer runs out.

Don't miss my other exciting projects — take a look at GlymeraCraft's Profile Discord: https://discord.gg/s5NRFWfxgy


What is GlymeraDeadChest?

When a player dies, their entire inventory would normally drop on the ground and despawn. GlymeraDeadChest replaces that with a grave block that holds the items safely until the owner returns. Designed to be griefer-proof: the grave does not drop as an item, cannot be destroyed by other players, and survives terrain edits underneath.

Includes its own asset pack with three custom grave block types. Standard chests and tombstones in the world are not affected by this plugin.


Features

Death Capture

  • All items are captured on death: backpack, hotbar, armor, and the tool currently held
  • A grave block spawns at the death position (or up to 5 blocks higher if the spot is blocked)
  • If no free spot is found, items drop normally as a fallback
  • Creative mode players are skipped (matches Hytale's default no-drop behaviour in creative)

Three Custom Grave Block Types

Pick one in the config:

  • GlymeraGrave_Tombstone (default) - looks like a stone tombstone
  • GlymeraGrave_Coffin - looks like a stone coffin
  • GlymeraGrave_Chest - looks like a wooden chest

All three are plugin-only blocks with no crafting recipe, no item drop when broken, and no support requirement. They are visually identical to the original Hytale models, but functionally separate from the regular furniture blocks.

Anti-Griefing

  • Grave blocks cannot be damaged or broken by other players when ownerOnly is true (default)
  • Grave blocks have no support requirement - removing the floor underneath does not destroy them
  • Grave blocks have an empty drop list - they never produce an item, even if forced
  • OPs can always interact (admin override)

Per-Player Limit

  • Each player can have a configurable number of active graves (default: 3)
  • When the limit is reached and a new grave would spawn, the oldest grave is automatically discarded along with its contents

Lifetime Timer

  • Each grave has a configurable lifetime (default: 15 minutes, server wall-clock time)
  • After expiry, the grave block and all its items are removed
  • Server downtime counts toward the timer
  • Expired graves are cleaned up immediately on server start

Custom UI for Inventory View

  • Right-click a grave to open a custom UI listing all stored items with quantities and remaining lifetime
  • "Take All" button transfers everything back to the player's inventory in one click
  • Items that don't fit are dropped at the grave position

Break-Mode for Tombstones

  • Tombstone-style graves (no Use interaction) can be broken to retrieve items - all stored items go directly into the inventory, anything that doesn't fit drops on the ground
  • The grave block itself never drops as an item

Persistence

  • Grave data is stored as JSON per grave UUID under plugins/GlymeraDeadChest/data/
  • Survives server restarts and chunk unloads
  • Owner mapping, world, coordinates, items (with durability and metadata), and spawn timestamp are all preserved

Commands

For Everyone

Command Description
/grave or /grave list Open a UI listing your active graves with world, coordinates, item count, and time remaining

For OPs Only

Command Description
/grave admin list Chat list of all graves on the server
/grave admin remove <id-prefix> Remove a specific grave (matches by ID prefix)

Configuration

config.json (plugins/GlymeraDeadChest/config.json)

graveBlock        : GlymeraGrave_Tombstone   (or _Coffin / _Chest)
lifetimeMinutes   : 15
maxActiveGraves   : 3
ownerOnly         : true
Field Description
graveBlock Which custom grave block to spawn. Plugin-provided options: GlymeraGrave_Tombstone, GlymeraGrave_Coffin, GlymeraGrave_Chest
lifetimeMinutes How long a grave exists before it (and the items inside) are deleted
maxActiveGraves Maximum simultaneous graves per player. When exceeded, the oldest is discarded
ownerOnly If true, only the owner (and OPs) can damage, break or open the grave. If false, anyone can

Grave Data (plugins/GlymeraDeadChest/data/<uuid>.json)

Automatically managed - one JSON file per grave with the owner UUID, position, item list (with durability and metadata), block type, and spawn time.


Installation

  1. Place GlymeraDeadChest-1.0.0.jar in your server's mods/ folder
  2. Start (or restart) the server
  3. Done! Config is auto-generated on first run.

How It Works

Grave Spawn Flow

  1. Player dies (non-creative)
  2. Plugin runs before Hytale's default item-drop system
  3. inventory.dropAllItemStacks() empties the inventory and returns every stack (including armor and tool)
  4. If a free spot is found near the death position, the configured grave block is placed there
  5. Owner UUID, world, coordinates, all items, and spawn timestamp are persisted to disk
  6. The default Hytale drop logic finds an empty inventory and drops nothing

Owner Protection

The plugin registers three ECS event systems:

  • DamageBlockEvent - cancels block damage from non-owners (prevents tool-mining the grave)
  • BreakBlockEvent - cancels break attempts from non-owners
  • UseBlockEvent.Pre - cancels native interaction and routes owner clicks to the custom UI

OPs bypass all owner checks (admin override).

Drop Resistance

The custom grave block types are defined with no Support field and Material: Solid, which causes the physics system to treat them as floating decoration - they never drop due to lost ground support. As a defence in depth, the plugin also calls BlockPhysics.markDeco() on every grave block.


Good to Know

  • The grave block contents are not stored in a native Hytale container - the plugin keeps its own JSON state. This means a grave can hold a player's full inventory regardless of how many backpack slots they have unlocked
  • Tombstone and Coffin variants do not respond to right-click (no Use interaction in the asset). They are break-only - mine the block to retrieve items
  • The Chest variant currently behaves the same as the others (break to retrieve) because the minimal block definition has no Use interaction. A future version may add a Use interaction to open the custom UI directly
  • All grave blocks are added by this plugin only and have no crafting recipe - players cannot obtain them through normal play
  • Grave timer ticks every 30 seconds, so a grave may persist up to ~30 seconds beyond its configured lifetime in the worst case

Made with care by Glymera for the Hytale community

The GlymeraDeadChest Team

profile avatar
  • 23
    Followers
  • 47
    Projects
  • 13.5K
    Downloads
Donate

More from GlymeraCraftView all

  • GlymeraFarmer project image

    GlymeraFarmer

    • 1.3K
    • Mods

    Place a Farmer Chest with any seed — a Kweebec farmer spawns to plant, harvest, and store crops automatically. 37 crop types supported.

    • 1.3K
    • May 3, 2026
    • Mods
    • +2
  • GlymeraMegaChest project image

    GlymeraMegaChest

    • 236
    • Mods

    Owner-only mass-storage chest with 1080 slots holding up to 1M items each (~1 billion total). Paginated UI, search. One-click Deposit Inventory. Crafted at the Alchemybench.

    • 236
    • May 2, 2026
    • Mods
    • +4
  • GlymeraRaces project image

    GlymeraRaces

    • 90
    • Mods

    RPG race system: pick from 16 races / 119 humanoid mob variants on first join and physically morph into your chosen form. Per-race HP, damage, speed, stamina, defense, mana and four elemental resistances. Switch after a cooldown.

    • 90
    • May 2, 2026
    • Mods
    • +2
  • GlymeraHeads project image

    GlymeraHeads

    • 54
    • Mods

    153 placeable mob skulls and 139 wearable Mithril-tier skull helmets. Two mystery workbench recipes (Bone + Wildmeat / Bone + Iron Bar, plus Concentrated Life Essence) deliver a random pick.

    • 54
    • May 1, 2026
    • Mods
    • +2
  • GlymeraFarmer project image

    GlymeraFarmer

    • 1.3K
    • Mods

    Place a Farmer Chest with any seed — a Kweebec farmer spawns to plant, harvest, and store crops automatically. 37 crop types supported.

    • 1.3K
    • May 3, 2026
    • Mods
    • +2
  • GlymeraMegaChest project image

    GlymeraMegaChest

    • 236
    • Mods

    Owner-only mass-storage chest with 1080 slots holding up to 1M items each (~1 billion total). Paginated UI, search. One-click Deposit Inventory. Crafted at the Alchemybench.

    • 236
    • May 2, 2026
    • Mods
    • +4
  • GlymeraRaces project image

    GlymeraRaces

    • 90
    • Mods

    RPG race system: pick from 16 races / 119 humanoid mob variants on first join and physically morph into your chosen form. Per-race HP, damage, speed, stamina, defense, mana and four elemental resistances. Switch after a cooldown.

    • 90
    • May 2, 2026
    • Mods
    • +2
  • GlymeraHeads project image

    GlymeraHeads

    • 54
    • Mods

    153 placeable mob skulls and 139 wearable Mithril-tier skull helmets. Two mystery workbench recipes (Bone + Wildmeat / Bone + Iron Bar, plus Concentrated Life Essence) deliver a random pick.

    • 54
    • May 1, 2026
    • Mods
    • +2