Description
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.
See https://minecraft.gamepedia.com/Data_pack for more details.
Commands
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.
- (0.0.6) /function command:death_chests/display_chest_location/never
Prevents the location notification for death chests from being displayed to the player on respawn
- (0.0.6) /function command:death_chests/display_chest_location/on_respawn
Displays the location of the death chest to the player after they respawn
- (0.0.6) /function command:death_chests/reset_settings
Resets all settings to default
You can help us to improve the project by posting suggestions and bug reports on our GitHub page.
You can donate to support development, support and maintenance of any of my projects by making one-time or monthly pledges on my Patreon.
If you are a coder, you can work with me to improve the project by discussing solutions to issues, and making pull requests on GitHub.
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.