Disclaimer: Requires the game rule keepInventory to be true and doImmediateRespawn to be false
This multiplayer-friendly data pack causes players to leave a grave at the site of their death and is marked with the name of the player who died. This data pack alleviates the frustration of dying and helps keep your dropped items tidy.
Graves contain the items and experience of the deceased player and drops its contents when clicked. The amount of experience dropped will no longer has a cap. For reference, players dying at level 30 will now drop 13 levels of experience rather than 7.
Config Settings
Type /function m_graves:config
to open a config menu to disable/enable the datapack and easily configure features
Despawn Time Limit: The amount of time (in seconds) before graves despawn and drop their items (defaults to never). Set to -1 for graves to never despawn. Set to 0 to have items immediately drop on death.
Death Coordinates: Display the coordinates of your death to you in chat (defaults to disabled).
Keep Some Items: Some items are not dropped on death (defaults to disabled). The list of items defaults to weapons, armor, tools, and other equipment but can be changed in m_graves/tags/items/kept_items
.
Lose Some Items: Some items are permanently lost on death (defaults to disabled). The list of items is empty by default but can be changed in m_graves/tags/items/lost_items
.
Keep Hotbar: Items in the hotbar are kept on death (defaults to disabled).
Keep armor: Equiped armor is kept on death (defaults to disbaled).
Keep Experience: Experience is kept on death (defaults to disabled).
Locked Graves: Graves can only be opened by their owner (defaults to disabled).
Some item tags have been made for convenience for editing the kept and lost items:
#m_graves:equipment
for weapons, armor, tools, and other equipment#m_graves:mob_drops
for mob drops#m_graves:rare_items
for items that have colored text when unenchanted (netherstars, golden apples, etc)#m_graves:resources
for mined resources (coal, iron, diamond, netherite, etc)
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+