XHawk87's Death Chests is a function pack for Minecraft.
When a player dies, their items are funneled into a double chest at their feet instead of scattering out over nearby terrain. To avoid exploits, neither the chest nor hopper are droppable if destroyed.
Warning: We try our best to avoid breaking existing blocks, however the appearance of the death chest and hopper may cause some blocks to be displaced if there are no other spaces available.
Demo
Thanks for providing this demo video should go to CraftStones, a third-party content creator for YouTube. If you have any questions or comments, suggestions or feedback about the data pack, please leave them here rather than on the video or I might not see them.
Features
Prevents dropped items from despawning by placing them into a chest via a hopper
Protects items from fire and lava before they are collected
(0.0.4) Displays a notification message with the location of your death chest on respawn
(0.0.5) Uses appropriately sized chests for the amount of items dropped
(0.0.5) Avoids breaking nearby blocks where possible when placing the death chests and hopper
(0.0.5) Death chests and hoppers should never break bedrock
(0.0.6) Ops can change settings with player-run functions
Installation
To use XHawk87's Death Chests in your game, copy the DeathChests.zip file to the desired world folder, under datapacks (e.g. .minecraft/saves/(world)/datapacks), and restart the game or use the /reload command.
You can't currently add real commands with data packs, so to get around this we're using player-run functions instead. It is a little awkward but it works. Only ops can use the /function command so we can only use these for op commands.
This project is licensed under GNU General Public License 3 or later versions. See LICENSE for details.
Any comments, questions, constructive criticism or specific suggestions are welcome below. How did you get on with it? Any problems? Did you find it helpful? Anything you'd like to see added/fixed/changed? Please let me know in the comments below. The more people post here, the more I am likely to update and improve this function pack.