Death Stashes - Detailed Description & Commands
Death Stashes is an interactive loot chest system that spawns when a player dies, safely storing their dropped items in a physical chest. Instead of scattering items across the ground, the stash keeps everything organized, allowing for a more immersive and optimized looting experience.
🛠 Death Stash Commands
Command | Description |
---|---|
/ds delete (id) | Deletes a specific Death Stash manually before it expires. |
/ds view (id) | Opens a GUI preview of a specific Death Stash’s contents. |
/ds expires (id) | Checks how much time is left before a Death Stash expires. |
/ds give (id) | Transfers a specific Death Stash to another player. |
/ds clearall | Deletes all existing Death Stashes on the server. |
Core Features
Item Storage & Retrieval
- When a player dies, a Death Stash (a physical chest) is placed at the death location.
- The stash holds all items that the player was carrying at the time of death.
- Prevents item loss due to despawning or entity clearing.
🖱 Interactive Looting System
- Right-Click → Claim the Items
- Instantly transfers all stash contents into the player’s inventory.
- The stash disappears after looting.
- Left-Click → Preview the Items
- Opens a GUI showing the stored items before claiming them.
- Allows players to check what’s inside before making space in their inventory.
Timed Expiry System
- Death Stashes automatically expire after 2 hours to prevent excessive storage usage.
- Expired stashes are automatically removed to free up space and optimize performance.
Optimized Storage Management
- Uses variables efficiently to store stash data, ensuring minimal impact on the server.
- Prevents unnecessary long-term data retention by auto-cleaning expired stashes.
Use Cases & Benefits
✔ Prevents Item Loss – Players can recover their loot safely.
✔ Reduces Lag – Avoids excessive item entities, improving server performance.
✔ Encourages Fair Play – Adds a tactical element to PvP, as players can strategize when and how to retrieve loot.
✔ Simplifies Looting – The interactive system makes reclaiming items faster and more organized.
The Death Stashes system ensures a balanced, efficient, and easy-to-use way to handle player drops while optimizing server performance.