Sponsor
I've partnered with Apex Hosting! In my experience, their servers are lag-free, easy to manage, and of high quality. Check them out here:
VanillaDeathChest places chests (or shulker boxes) where players die containing all of their items. VanillaDeathChest is completely server-sided; it can be installed on the client for use on singleplayer worlds, but clients without this mod can connect to servers with this mod installed without losing functionality.
The 1.11 version does not support Game Stages.
The 1.13 version requires Rift.
The 1.13.2 version requires Chocohead's fork of Rift, which can be downloaded here.
The Fabric version can be found here.
Features:
Configuration
- Everything is configurable.
- Configuration GUI.
- /vdcreload and /vdcreloadclient can be used to reload the configuration.
- On Rift 1.13/1.13.2, the configuration is stored in a JSON and can only be reloaded through /vdcreload (on a server, the client-sided configuration cannot be reloaded).
- Several configuration options such as the unlocker item and defense entity can be changed using Game Stages and CraftTweaker. Documentation can be found here.
Defense
- Unlocker items. If an unlocker item is defined, players cannot interact with death unless they are holding the required amount of the item.
- If defense.damageUnlockerInsteadOfConsume is set to true, unlocker items will be damaged by the configured amount instead of consumed.
- A configurable message is shown when a player fails to unlock a death chest.
- Once a death chest is unlocked, it can be freely opened or broken by the player it belongs to.
- Defense entities. When a death chest is placed, a specified amount of defense entities will spawn on it.
- Living defense entities do not automatically despawn.
- If the defense entity supports revenge targets, the revenge target is set to the player that died.
- The number of defense entities and custom NBT data can be configured.
- By default, defense entities do not drop items or experience.
- If defense entities stray too far away from their death chest or player, they are teleported back on top of the death chest. The maximum distances can be configured.
- The unlocker item and defense entity are configured using registry names, e.g. minecraft:zombie_pigman. If a namespace (minecraft in this case) is not specified, minecraft is used by default. Note that the unlocker item metadata is specified in a separate configuration option.
Spawning
- By default, death chests are either single or double chests depending on how many items need to be stored.
- This can be changed to be exclusively single chests, shulker boxes or single or double shulker boxes.
- Shulker box colors can be configured or randomized.
- Item registry name regular expression filter for items that can be put in death chests.
- Option to use containers in player inventories to place death chests.
- Configurable chat message when a death chest is spawned.
- Death chest positions are logged and can be seen in the console.
- The death chest location radius is configurable, and is 8 blocks by default.
- By default, if a death chest location is not found within the configured radius, a death chest is forcibly placed anyway.
- Option to make death chests only spawn on solid blocks. This is disabled by default because I think it is more interesting if death chests can spawn in the middle of the air.
- Death chest spawning respects the spawnDeathChests gamerule. Its name and default value can be configured. On 1.14 and 1.15, there is a different gamerule called disableDeathChests by default, and its default value cannot be configured.
- Items that don't fit or spawn in the death chest drop as normal.
Miscellaneous
- When death chests are broken, only the items inside are dropped by default. This is done to prevent chest/shulker box farming.
- Death chest protection. By default, a player's death chest can only be opened by that player. There are several configurable options, including protection period and bypass permission level.
- Death chests disappear when they are emptied. This can be disabled.
Can this mod work on forge servers? And is it server side or do users who connect require the mod downloaded too? It does not bother me if users require it but it would be easier otherwise.
It's the first paragraph of the description.
Dubble chest generates if you have too many items, yet only the main chest dissapears when empty, leaving the orther chest (1 of 2 making dubble chest)
idk if this is the place to post bugs
Yeah, I've fixed this in the 2.0.0 rewrite, but I haven't ported it to Forge yet.
The place to post bugs is on the GitHub issue tracker. ;)
In reply to TheRandomLabs:
oh. could you tell me how does locker work? I set it to open when I use golden apple, but it doesn't seem to work (all I did is write "minecraft:golden_apple" in the box but the chest opens without it. did I misunderstood something?
Send me your configuration on a site like hastebin.
How do I acces GUI to customize it? Could'nt find in game, and in the mods tab the "config" button for mod doesnt let me click (Only 4 days till i can finally change my name LOL)
At the moment, there is no configuration GUI. Once I port the Fabric 2.0.0 rewrite over to Forge, it will be available. Until then, you can access the configuration at config/vanilladeathchest.toml.
How do you edit the config? My config file was generated empty. Fabric version on server btw.
In reply to Kuroinyx:
I'll fix this soon; I'm aware of this issue.
What if you fall into the void?
does it burn in lava
please 1.16.4 :D
Already works.
Does this also work for 16.4?
In reply to BedheadBrad:
Yep, works fine.
Does anyone know how to make this work with Grief Prevention?
This is my absolute favorite death recovery mod but it seems that if people die on claims that aren't theirs they don't get chest an their stuff is just deleted.
It's not something I've ever thought about. If you let me know which grief prevention mod you're using, I'll at least have a look.
In reply to TheRandomLabs:
I use GriefPrevention for Sponge