• 7.1k views 0 today
  • save_alt 606 downloads
Compatibility
Minecraft 1.21
Changes include
  • Advancements
  • Functions
  • Loot Tables
  • Predicates
  • 24
  • 22
  • 4
Required Resource Pack
Ethastum
Lvl 35Artisan Professor
15
Save your items upon death by using a Death Statue.

This datapack adds the Sword of Recovery, which can be found in dungeon-chests (33% chance of spawning).
The sword has a unique property, that if you are to perish with it in your inventory it will summon a Death Statue to hold your items, (its basically a gravestone if you're familiar with modded). This saves your items from lava, despawning and even the Void!

When trying to retrieve your items, just take the Sword of Recovery from your Death Statues hands.


This features an optional resourcepack, that only adds a texture for the Sword of Recovery.


This also adds an advancement, found past the 'Postmortal' advancement in the adventure tab.
The Datapack only work for versions 1.21 and above!



settingsConfiguration:

The Sword of Recovery has a CustomModelData of 37442, it can be changed manually inside the "ds:loot_tables/recovery_sword.json" file.


You can configure two different aspects of the datapack:


Other's permissions with Death Statues:
  • /scoreboard players set #DS ds_owner.config 0
    (Only the player who 'owns' the Death Statue can get the items within it) (default)

  • /scoreboard players set #DS ds_owner.config 1
    (Everyone can open all Death Statues)




Coordinate Feedback upon creation of a Death Statue:
  • /scoreboard players set #DS ds_coords.config 0
    (You will not get any info upon creation of a Death Statue, other than that you've indeed created one)

  • /scoreboard players set #DS ds_coords.config 1
    (You will get the coordinates and the dimension of a Death Statue upon its creation) (default)


Sword of Recovery usage upon creation of a Death Statue:
  • You will get your Sword of Recovery back upon claiming your Death Statue.
    "/scoreboard players set #DS ds_usesword.config 0" (default)

  • The Sword of Recovery breaks upon usage, and you will not get it back.
    "/scoreboard players set #DS ds_usesword.config 1"


Notes:
This Datapack uses 'KeepInventory' to get the player's inventory at their death, and therefore needs the gamerule to be set to 'true' to work consistently. (Same with 'doImmediateRespawn' but just 'false') The Datapack will toggle this by itself upon load.



border_color Terms of Use:

- Under no circumstance may you reupload original nor edited versions of my work, nor take credit for my content.

- If you create a collection of datapacks (alike to a modpack), you may include my creations as long as I'm credited.

- All uploads of my content will be on PlanetMinecraft, I can therefore take no responsibility for any other uploads on any other platforms.

4 Update Logs

Update #4 : by Ethastum 12/30/2024 8:13:07 amDecember 30, 2024 @ 1:13 pm UTC

Changelog:
  • Updated to Minecraft Version 1.21.4
  • Updated Resourcepack to match the new CustomModelData format
Fixes:
  • Fixed pluralization in a subfolder, resulting in the entire datapack being broken in the new update. Thanks Mojang :)
  • Fixed receiving two death messages if you die in an unknown dimension (non-vanilla)
LOAD MORE LOGS

More like this

  Have something to say?

Red_Master010101010101
11/27/2023 12:43 pm
Level 8 : Apprentice System
Spróbóję, ciekawe.
2
imWorldy
08/04/2023 1:24 pm
Level 1 : New Miner
Can you write the command? I will get this in a creative world without chests? LG
1
Ethastum
08/06/2023 4:09 pm
He/Him • Level 35 : Artisan Professor
The command for getting the Sword of Recovery is as follows:

"/loot give @p loot ds:recovery_sword"
1
Ethastum
08/03/2023 3:11 am
He/Him • Level 35 : Artisan Professor
If you find any glitches or bugs please tell me here.
1

Welcome