Never lose your items again! This data pack fixes the problem of losing items upon death in Minecraft by storing them in a safe place called a grave.
Death in Minecraft poses a significant issue as items are often lost upon dying, whether it be in lava, explosions, or the void. Even if some items survive, they will eventually despawn after five minutes. Utilizing the keep inventory feature eliminates the challenge of returning to retrieve items, rendering death almost meaningless.
This data pack addresses this issue by providing a solution that is both user-friendly and balanced. It preserves all items in a secure location upon death, referred to as a "grave". While other mods and data packs offer similar functionality, SGrave distinguishes itself with its high level of customization.
Grave Spawning
Your grave will not spawn precisely at the location of your death but follows certain conditions:
If you die within a block, the grave will ascend until it reaches a transparent block.
If another grave is present, the new grave will be placed above it.
If you perish in mid-air or underwater, the grave will descend until it rests on a solid block below a transparent block.
If you die below the void, the grave will attempt to spawn at y -63, following previous conditions.
Graves are impervious to damage and have no hitbox, allowing players to pass through them effortlessly. Additionally, graves emit light, making them visible through walls (this feature can be disabled). Although graves currently do not despawn, future updates may introduce this functionality.
Upon grave creation, players receive an announcement detailing the grave's location, including a unique grave ID for reference.
Opening a Grave
At the grave site, players will find their head on the ground, along with a text display showing their name and the grave's ID. Clicking on the grave will open it, returning all items to their original positions and restoring 90% of the lost experience (configurable). If an item cannot fit in the player's inventory, it will be dropped instead.
Alternatively, players can break graves by sneak + left clicking, causing items to drop. These items are invulnerable and take 10 minutes to despawn (configurable).
## A critical hotfix for 1.21.5!
### Fixes
* [#11](https://github.com/Sul4urx/issue_tracker/issues/14) – Armour and off hand items disappear when collecting _[items from]_ graves _[in 1.21.5]_
## A critical hotfix for 1.21.5!
### Fixes
* [#11](https://github.com/Sul4urx/issue_tracker/issues/14) – Armour and off hand items disappear when collecting _[items from]_ graves _[in 1.21.5]_
## Another important small update!
### Additions and changes
- Now compatible with 1.21.5.
- Changed version format (e.g. v1.0.3.2 to v-1d2) ([#12](https://github.com/Sul4urx/issue_tracker/issues/12)).
- Fixed many typos and a lot of misinformation.
### Technical
- Added APDR (Automatic Player Data Repair).
- This tool repairs players data every 3 seconds.
- It can currently only repair name and UUID.
- The cooldown can be changed. By default it's 60 ticks (3 seconds).
- This feature was implemented to fix issue [#11](https://github.com/Sul4urx/issue_tracker/issues/11).
- Player data stored on graves is now taken from the `players` storage rather than the player itself.
- Removed many unnessecary files.
- "Execution from" comments are now more accurate.
### Fixes
- [#8](https://github.com/Sul4urx/issue_tracker/issues/8) — Graves cannot generate on resin clumps.
- [#11](https://github.com/Sul4urx/issue_tracker/issues/11) — SGrave fails to store the name of some players.
- [#13](https://github.com/Sul4urx/issue_tracker/issues/13) — No leading zero in creation time for ghost graves
## Another important small update!
### Additions and changes
- Now compatible with 1.21.5.
- Changed version format (e.g. v1.0.3.2 to v-1d2) ([#12](https://github.com/Sul4urx/issue_tracker/issues/12)).
- Fixed many typos and a lot of misinformation.
### Technical
- Added APDR (Automatic Player Data Repair).
- This tool repairs players data every 3 seconds.
- It can currently only repair name and UUID.
- The cooldown can be changed. By default it's 60 ticks (3 seconds).
- This feature was implemented to fix issue [#11](https://github.com/Sul4urx/issue_tracker/issues/11).
- Player data stored on graves is now taken from the `players` storage rather than the player itself.
- Removed many unnessecary files.
- "Execution from" comments are now more accurate.
### Fixes
- [#8](https://github.com/Sul4urx/issue_tracker/issues/8) — Graves cannot generate on resin clumps.
- [#11](https://github.com/Sul4urx/issue_tracker/issues/11) — SGrave fails to store the name of some players.
- [#13](https://github.com/Sul4urx/issue_tracker/issues/13) — No leading zero in creation time for ghost graves
### Additions
- Help menu
- A new menu that can be accessed by anyone using `/trigger sgrave.help`.
- This menu allows players to troubleshoot their problems much easier. It will guide them what to do and where to go.
### Changes
- **Now compatible with 1.21.3 and 1.21.4.**
- The icon has now been changed.
- The page selection section of configs is now `Page: [1 | 2 | 3]` instead of `[<]` and `[>]` to avoid confusion.
- _No gravity items_ config is now set to false by default.
### Removals
- Removed translations.
- There are a few reasons why I did this. I'll explain it later.
### Fixes
Fixed the following bugs:
- ([#5](https://github.com/Sul4urx/issues_tracker/issues/5)) An extra experience point is given when storing experience inside graves.
- ([#6](https://github.com/Sul4urx/issues_tracker/issues/6)) The experience dropped from opening a grave will repair tools with the Mending enchantment.
- ([#7](https://github.com/Sul4urx/issues_tracker/issues/7)) The grave info feature doesn't work correctly when showing information about ghost graves.
### Additions
- Help menu
- A new menu that can be accessed by anyone using `/trigger sgrave.help`.
- This menu allows players to troubleshoot their problems much easier. It will guide them what to do and where to go.
### Changes
- **Now compatible with 1.21.3 and 1.21.4.**
- The icon has now been changed.
- The page selection section of configs is now `Page: [1 | 2 | 3]` instead of `[<]` and `[>]` to avoid confusion.
- _No gravity items_ config is now set to false by default.
### Removals
- Removed translations.
- There are a few reasons why I did this. I'll explain it later.
### Fixes
Fixed the following bugs:
- ([#5](https://github.com/Sul4urx/issues_tracker/issues/5)) An extra experience point is given when storing experience inside graves.
- ([#6](https://github.com/Sul4urx/issues_tracker/issues/6)) The experience dropped from opening a grave will repair tools with the Mending enchantment.
- ([#7](https://github.com/Sul4urx/issues_tracker/issues/7)) The grave info feature doesn't work correctly when showing information about ghost graves.
### Additions
- Help menu
- A new menu that can be accessed by anyone using `/trigger sgrave.help`.
- This menu allows players to troubleshoot their problems much easier. It will guide them what to do and where to go.
### Changes
- **Now compatible with 1.21.3 and 1.21.4.**
- The icon has now been changed.
- The page selection section of configs is now `Page: [1 | 2 | 3]` instead of `[<]` and `[>]` to avoid confusion.
- _No gravity items_ config is now set to false by default.
### Removals
- Removed translations.
- There are a few reasons why I did this. I'll explain it later.
### Fixes
Fixed the following bugs:
- ([#5](https://github.com/Sul4urx/issues_tracker/issues/5)) An extra experience point is given when storing experience inside graves.
- ([#6](https://github.com/Sul4urx/issues_tracker/issues/6)) The experience dropped from opening a grave will repair tools with the Mending enchantment.
- ([#7](https://github.com/Sul4urx/issues_tracker/issues/7)) The grave info feature doesn't work correctly when showing information about ghost graves.
### Additions
- Help menu
- A new menu that can be accessed by anyone using `/trigger sgrave.help`.
- This menu allows players to troubleshoot their problems much easier. It will guide them what to do and where to go.
### Changes
- **Now compatible with 1.21.3 and 1.21.4.**
- The icon has now been changed.
- The page selection section of configs is now `Page: [1 | 2 | 3]` instead of `[<]` and `[>]` to avoid confusion.
- _No gravity items_ config is now set to false by default.
### Removals
- Removed translations.
- There are a few reasons why I did this. I'll explain it later.
### Fixes
Fixed the following bugs:
- ([#5](https://github.com/Sul4urx/issues_tracker/issues/5)) An extra experience point is given when storing experience inside graves.
- ([#6](https://github.com/Sul4urx/issues_tracker/issues/6)) The experience dropped from opening a grave will repair tools with the Mending enchantment.
- ([#7](https://github.com/Sul4urx/issues_tracker/issues/7)) The grave info feature doesn't work correctly when showing information about ghost graves.
## A very heavy and important update!
This update brings a lot of features, most of which don't exist in many other data packs and it also fixes 4 bugs related to this data pack. It is also the last major version to support 1.19.4-1.20.4.
### Additions
- **NeoForge Support!**
- **Updated the grave info feature!**

- Now instead of just showing the location, despawn time and some useless information of experience, it now shows the owner, more info about experience, creation time, status and even items.
- You can also now view others' graves' info and info about broken graves.
- There is also a config that determines which information of graves should be shown.
- This feature is experimental, and there is more to be added.
- Note: This feature won't work on graves that were generated in older versions.
- **Admin mode!**
- If a player has access to commands, they can turn on *Admin mode*. Players with admin mode can do a lot of things, which we will talk about later in this changelog.
- You can turn on admin mode by going into Configs -> Page 2.
- **A new item detection system!**
- This new item detection system significantly expands compabilities with other mods, especially the ones which add custom slots.
- Instead of reading from the player's inventory, it now reads from the dropped items.
- This new system is experimental and has some known issues with it. And oh yeah, it is off by default.
- **Grave backups!**
- Now you don't have to fear losing your items anymore, because now your items will be backed up!
- To recover your items, just enable admin mode and run `/trigger sgrave.recover_items set <grave_id>`.
- **Grave key!**
- A special item for those who have admin mode enabled.
- This special item can open anybody's graves, even if *Robbing* is set to false.
- To get it, you have to turn on admin mode and then run `/trigger sgrave.give_key`.
- **Uninstallation!**
- You can now do a clean uninstallation. This means that you can fully uninstall and get rid of all of this data pack's data.
- This is supposed to be mostly used to fix errors.
- **9 new configs:**
- Glowing items, No gravity items, Glowing XP, No gravity XP, Creative players generate graves, Spectator players generate graves, Show grave info, Admin mode and New item detection
### Changes
- Instead of having seperate data packs for different Minecraft versions, there is now only 1 data pack for all Minecraft versions ranging from 1.19.4 to 1.21.1.
- Items dropped from graves now glow and are no longer affected by gravity. This can be changed in the configs.
- Creative and spectator players no longer generate grave. This can be changed in the configs.
### Translations
- Added support for Português (Brasil), Português (Portugal) and Русский (Russian) languages.
- Added support for all variants of Español, Deutsch and English languages, and they are no longer limited to España, Deutschland, American and British variants.
- Significantly improved the translations and fixed some errors as well.
### Fixes
- [Fixed a bug where if a player died while dragging an item through inventory, they would lose that item.](https://discord.com/channels/1225351261423927337/1268227804227436554)
- [Fixed a bug where if a player died with no item in their inventory and no xp, their "score" got set to -2147483xxx.](https://discord.com/channels/1225351261423927337/1277250244190539897)
- [Fixed a bug where graves couldn't generate in some non-solid blocks, even though they were supposed to.](https://discord.com/channels/1225351261423927337/1278670017864405085)
- [Fixed a duplication bug when putting an item into a curios slot.](https://discord.com/channels/1225351261423927337/1269355617924022407)
### Credits
- Thanks for [u/Galsergey](https://www.reddit.com/user/GalSergey/) (Reddit user) for helping me with some features of the data pack update!
## A very heavy and important update!
This update brings a lot of features, most of which don't exist in many other data packs and it also fixes 4 bugs related to this data pack. It is also the last major version to support 1.19.4-1.20.4.
### Additions
- **NeoForge Support!**
- **Updated the grave info feature!**

- Now instead of just showing the location, despawn time and some useless information of experience, it now shows the owner, more info about experience, creation time, status and even items.
- You can also now view others' graves' info and info about broken graves.
- There is also a config that determines which information of graves should be shown.
- This feature is experimental, and there is more to be added.
- Note: This feature won't work on graves that were generated in older versions.
- **Admin mode!**
- If a player has access to commands, they can turn on *Admin mode*. Players with admin mode can do a lot of things, which we will talk about later in this changelog.
- You can turn on admin mode by going into Configs -> Page 2.
- **A new item detection system!**
- This new item detection system significantly expands compabilities with other mods, especially the ones which add custom slots.
- Instead of reading from the player's inventory, it now reads from the dropped items.
- This new system is experimental and has some known issues with it. And oh yeah, it is off by default.
- **Grave backups!**
- Now you don't have to fear losing your items anymore, because now your items will be backed up!
- To recover your items, just enable admin mode and run `/trigger sgrave.recover_items set <grave_id>`.
- **Grave key!**
- A special item for those who have admin mode enabled.
- This special item can open anybody's graves, even if *Robbing* is set to false.
- To get it, you have to turn on admin mode and then run `/trigger sgrave.give_key`.
- **Uninstallation!**
- You can now do a clean uninstallation. This means that you can fully uninstall and get rid of all of this data pack's data.
- This is supposed to be mostly used to fix errors.
- **9 new configs:**
- Glowing items, No gravity items, Glowing XP, No gravity XP, Creative players generate graves, Spectator players generate graves, Show grave info, Admin mode and New item detection
### Changes
- Instead of having seperate data packs for different Minecraft versions, there is now only 1 data pack for all Minecraft versions ranging from 1.19.4 to 1.21.1.
- Items dropped from graves now glow and are no longer affected by gravity. This can be changed in the configs.
- Creative and spectator players no longer generate grave. This can be changed in the configs.
### Translations
- Added support for Português (Brasil), Português (Portugal) and Русский (Russian) languages.
- Added support for all variants of Español, Deutsch and English languages, and they are no longer limited to España, Deutschland, American and British variants.
- Significantly improved the translations and fixed some errors as well.
### Fixes
- [Fixed a bug where if a player died while dragging an item through inventory, they would lose that item.](https://discord.com/channels/1225351261423927337/1268227804227436554)
- [Fixed a bug where if a player died with no item in their inventory and no xp, their "score" got set to -2147483xxx.](https://discord.com/channels/1225351261423927337/1277250244190539897)
- [Fixed a bug where graves couldn't generate in some non-solid blocks, even though they were supposed to.](https://discord.com/channels/1225351261423927337/1278670017864405085)
- [Fixed a duplication bug when putting an item into a curios slot.](https://discord.com/channels/1225351261423927337/1269355617924022407)
### Credits
- Thanks for [u/Galsergey](https://www.reddit.com/user/GalSergey/) (Reddit user) for helping me with some features of the data pack update!
## An important small update!
- **Now compatible with 1.20.5/6 and 1.21!**
- Improved translations! A little bit...
- The data pack will now automatically set to the correct gamerules.
- The mod version of this data pack no longer requires a resource pack.
- A few Bug fixes!
- Fixed [an issue](https://discordapp.com/channels/1225351261423927337/1256178757983670322) where opening a grave while dying will let you keep the content of that grave after death.
## An important small update!
- **Now compatible with 1.20.5/6 and 1.21!**
- Improved translations! A little bit...
- The data pack will now automatically set to the correct gamerules.
- The mod version of this data pack no longer requires a resource pack.
- A few Bug fixes!
- Fixed [an issue](https://discordapp.com/channels/1225351261423927337/1256178757983670322) where opening a grave while dying will let you keep the content of that grave after death.
## An important small update!
- **Now compatible with 1.20.5/6 and 1.21!**
- Improved translations! A little bit...
- The data pack will now automatically set to the correct gamerules.
- The mod version of this data pack no longer requires a resource pack.
- A few Bug fixes!
- Fixed [an issue](https://discordapp.com/channels/1225351261423927337/1256178757983670322) where opening a grave while dying will let you keep the content of that grave after death.
## An important small update!
- **Now compatible with 1.20.5/6 and 1.21!**
- Improved translations! A little bit...
- The data pack will now automatically set to the correct gamerules.
- The mod version of this data pack no longer requires a resource pack.
- A few Bug fixes!
- Fixed [an issue](https://discordapp.com/channels/1225351261423927337/1256178757983670322) where opening a grave while dying will let you keep the content of that grave after death.
## An important small update!
- **Now compatible with 1.20.5/6 and 1.21!**
- Improved translations! A little bit...
- The data pack will now automatically set to the correct gamerules.
- The mod version of this data pack no longer requires a resource pack.
- A few Bug fixes!
- Fixed [an issue](https://discordapp.com/channels/1225351261423927337/1256178757983670322) where opening a grave while dying will let you keep the content of that grave after death.
## An important small update!
- **Now compatible with 1.20.5/6 and 1.21!**
- Improved translations! A little bit...
- The data pack will now automatically set to the correct gamerules.
- The mod version of this data pack no longer requires a resource pack.
- A few Bug fixes!
- Fixed [an issue](https://discordapp.com/channels/1225351261423927337/1256178757983670322) where opening a grave while dying will let you keep the content of that grave after death.
- The grave model now has been updated! From just your head to this:

- Now available in British English, Deutsch and Español!
- The config menu (and its design) has now been updated and split into 3 pages!
- Some configs now sync.
- This means that some configs will now apply to existing graves rather than newly created graves.
- For example if you turn on the _Glowing graves_ configs, existing graves will glow, but it used to only happen to graves made after changing the config.
- Not all configs do this, such as the _Put dirt below_ config.
- Added a new config: _Text display type_. It has 3 options you can choose from. More description in game.
- The grave location announcement has now been updated:

- Fixed a few bugs!
### Technical
- The unnessecary file `sort.py` has now been removed.
- Added new easter eggs.
- Added/removed Herobrine
- The grave model now has been updated! From just your head to this:

- Now available in British English, Deutsch and Español!
- The config menu (and its design) has now been updated and split into 3 pages!
- Some configs now sync.
- This means that some configs will now apply to existing graves rather than newly created graves.
- For example if you turn on the _Glowing graves_ configs, existing graves will glow, but it used to only happen to graves made after changing the config.
- Not all configs do this, such as the _Put dirt below_ config.
- Added a new config: _Text display type_. It has 3 options you can choose from. More description in game.
- The grave location announcement has now been updated:

- Fixed a few bugs!
### Technical
- The unnessecary file `sort.py` has now been removed.
- Added new easter eggs.
- Added/removed Herobrine
### A big update!
----
### Changes
- The data pack is now compatible from 1.19.4 to 1.20.1.
- The mechanics of spawning a grave has now slightly been changed.
- Now if you die in the void, it will attempt to spawn the grave at y position +1, but it won't move down.
- Graves can no longer spawn inside some blocks (such as slabs), but now can in some other blocks (such as bushes).
- Graves can now despawn. By default, they despawn in 90 minutes.
- Items dropped from graves now by default despawn in 45 minutes, instead of 10.
- Players now can only open their own graves, by default.
- The interaction box of the grave has been shrinked, making it a little bit harder to open/break the grave.
- Graves now display their despawn timer in addition to the grave's id and the owner of the grave.

- `/trigger sgrave.grave_info` will now show the grave despawn timer.
### Additions
- Added 5 new configs:
- **Void invulnerable items, Robbing, Locating, Put dirt below, Grave despawn time**
- The descriptions of all configs are in the game.
- Added new logo!
### Fixed
- Breaking a grave with experience more than 32768 (103 levels) would give negative experience, which also broke all tools with the Mending enchantment.
- Fixed by changing the maximum experience level that can be stored from 127 to 100.
### Technical
- Configs no longer use data storage and now instead use scoreboards.
- Some functions have now been rearranged.
- Tags now use `{id: "tag", required: false}` instead of `"tag"`, which fixes a few issues.
- Added some new easter eggs.
### Known issues
- An unnecessary python file `sort.py` has been left out in the game's code, but this will disappear in the future.
- The xp dropped from opening a grave will repair tools with the Mending enchantment.
----
There are more features added, changed or fixed in this update, which I can't remember.
### A big update!
----
### Changes
- The data pack is now compatible from 1.19.4 to 1.20.1.
- The mechanics of spawning a grave has now slightly been changed.
- Now if you die in the void, it will attempt to spawn the grave at y position +1, but it won't move down.
- Graves can no longer spawn inside some blocks (such as slabs), but now can in some other blocks (such as bushes).
- Graves can now despawn. By default, they despawn in 90 minutes.
- Items dropped from graves now by default despawn in 45 minutes, instead of 10.
- Players now can only open their own graves, by default.
- The interaction box of the grave has been shrinked, making it a little bit harder to open/break the grave.
- Graves now display their despawn timer in addition to the grave's id and the owner of the grave.

- `/trigger sgrave.grave_info` will now show the grave despawn timer.
### Additions
- Added 5 new configs:
- **Void invulnerable items, Robbing, Locating, Put dirt below, Grave despawn time**
- The descriptions of all configs are in the game.
- Added new logo!
### Fixed
- Breaking a grave with experience more than 32768 (103 levels) would give negative experience, which also broke all tools with the Mending enchantment.
- Fixed by changing the maximum experience level that can be stored from 127 to 100.
### Technical
- Configs no longer use data storage and now instead use scoreboards.
- Some functions have now been rearranged.
- Tags now use `{id: "tag", required: false}` instead of `"tag"`, which fixes a few issues.
- Added some new easter eggs.
### Known issues
- An unnecessary python file `sort.py` has been left out in the game's code, but this will disappear in the future.
- The xp dropped from opening a grave will repair tools with the Mending enchantment.
----
There are more features added, changed or fixed in this update, which I can't remember.