Death in Minecraft is a big problem. In Minecraft, when you die, your items will just yeet out of your inventory and get lost in lava, void, explosions, etc. Not to mention, the remaining ones just despawn after 5 mins. So you just basically lose most of your items just by dying.
Using keep inventory won't work, because it literally removes the purpose of dying. You won't need to walk all the way back to your base. You only need to just kill yourself.
This data pack fixes this problem by making deaths more friendly, but not too much to not make it too overpowered. It stores all your items in a safe place called "grave" when you die. Well, there are a lot of mods and data packs that also do the same thing, but this data pack is designed to be way more customizable.
With this data pack, you won't ever need to worry that you lost all of your items. The only hard part is to get back to where you died.
NOTES
-
This data pack is in beta.
- A lot of features and bug fixes has been planned for future.
-
Only works from Minecraft 1.19.4 to 1.20.4.
- Not compatible with 1.20.5/6 or 1.21.
-
MAKE SURE YOU SET THE FOLLOWING GAMERULES:
- KeepInventory: true
- doImmediateRespawn: false
Grave Spawning
Your grave won't just spawn exactly where you died. There are a few conditions for a grave being made. Basically, your grave will try to find the nearest transparent block where there is a solid block below.
Graves are mostly invulnerable. They also have no hitbox, meaning you can easily walk through graves. Also, graves glow, so you can see them through walls. (Can be disabled in config) By default, graves despawn in 90 minutes.
After a grave spawns, The exact location of your grave will be announced to you (might not depening on the configs). The announcement should look something like this:
Notice the 9 in Grave #9. That is the grave ID, and it's important. Keep that in mind; it can be useful in a lot of scenarios.
Opening a Grave
When you reach the location of your grave, you will see your head lying on the ground, along with a text display showing your name and your grave's ID, along with the grave design.
You can click on the grave to open he grave. All the items will be put in the exact same spot they were before you died, and you will collet 90% of the experience you've had before you died. (The percentage can be changed in the config.) If an item can't be put in your inventory, it will instead be dropped.
You can also "break a grave" by sneak + left clicking, where all items will just drop.
The items that are dropped from a grave being broken are invulnerable and can't be destroyed by things such as lava or explosions, and they take 45min to despawn. (Can be changed in the config.)
Commands
/trigger sgrave set <value>
 Sends the coordinates and the dimension of your grave to you.
 Set the value to 1 to locate your last grave.
 Set the value to 2 to locate your second last grave.
 Set the value to 3 to locate your third last grave.
 and so on...
 Any players (non-OPs and OPs) can use this command.
/trigger sgrave.grave_info set <value>
 Shows info about the grave with the ID of the value you entered. Currently it only shows the location, the amount of experience, and its despawn timer, but it will also show the items as well.
For example to show information about grave #4, use
/trigger sgrave.grave_info set 4
. Any players (non-OPs and OPs) can use this command.
/function sul4ur:sgrave/config
 Opens the config menu. Only OPs can use this command.
Available languages
English(British, American), Deutsch(Deutschland), Español(España)
- May not contain accurate translations.
- Enthält möglicherweise keine genauen Übersetzungen.
- Puede no contener traducciones precisas.
Join us on discord!
License
License
This work is licensed under CC BY-NC-ND.
One exception is made for video content, which can be monetized. However, you must give appropriate credit in the description of your video.
Featured versions
See allProject members
Sul4ur
Member