Data Packs Challenge

Cheating Death has its consequences (Totem Nerf / Balance) for 1.19

  • 5.7k views 0 today
  • save_alt 290 downloads
Compatibility
Minecraft 1.19
Changes include
  • Advancements
  • Functions
  • 27
  • 22
  • 20
Pickled_Kaktus
Lvl 27Expert System
7
Do you think that totems of undying make survival too easy?

Are you looking to challenge yourself by making it more difficult to survive in your Minecraft world?

If so, you might want to consider giving this data pack a try!

This data pack reduces the utility of totems of undying by reducing the maximum health of players when they cheat death with a totem of undying. Each totem reduces the players maximum health by half a heart for each cheated death, but the lost maximum health can be regained. A player can regain half a heart of maximum health by eating an enchanted golden apple. Your maximum health won't be reduced lower than half a heart and it also won't be increased over ten hearts. Dying resets the players maximum health back to the default value of ten hearts.

The data pack also works in hardcore mode as well as on multiplayer servers.

If you want to change how much max health is reduced and regained when a player cheats death with a totem of undying or appeases death by eating an enchanted golden apple, there are two options to do this.


Either open the data pack folder and navigate through "data/pickledtotems/functions" and open the load.mcfunction file, scroll to the bottom of the file and edit the values to your preference.

The other option is to open your Minecraft world where the data pack is installed and run these commands with [​value] replaced with the amount of max health you want the functions to modify by:
/scoreboard players set PKLDTotems_cheatingDeathPrice PKLDTotems_attributeModValue [​value]
/scoreboard players set PKLDTotems_appeasingDeathPrice PKLDTotems_attributeModValue [​value]

For example, If you want enchanted golden apples to restore a full heart instead of half a heart, you would type this command:


/scoreboard players set PKLDTotems_appeasingDeathPrice PKLDTotems_attributeModValue 2

2 Update Logs

Version 1.2 : by Pickled_Kaktus 07/19/2022 6:37:16 amJuly 19, 2022 @ 10:37 am UTC

-Removed code that was unnecessary and over complicated and replaced it with simpler code (Big thanks to Lordphenex for the suggestions in the replies)
LOAD MORE LOGS

More like this

  Have something to say?

bobthebonkers
01/08/2026 4:50 am
Level 5 : Apprentice Miner
would it be possible to make it so you get back your health when you do something with the pale garden? itd make the whole place a lot more worth it than white wood and beans.
1
Pickled_Kaktus
01/27/2026 1:37 am
Level 27 : Expert System
If you would like to modify the behaviour of regaining the lost health, then I would recommend using an online advancement generator tool, since the datapack uses the "appease_death" advancement to handle this.



Simply, replace the criteria of the advancement "appease_death" in the datapack (located at data/pickledtotems/advancements/appease_death.json). If you do this, keep file names the same, as some filenames are referenced by other files.



Hope this helps.
1
iylo
08/16/2023 4:01 pm
Level 1 : New Miner
Do you know if this will work if I use it on a 1.20.1 world? If not, can I edit it myself to make it work?
2
Pickled_Kaktus
08/16/2023 8:34 pm
Level 27 : Expert System
I have not tested if it would work in 1.20.1, however I can't think of a reason that would cause it to not work in 1.20.1.

In order to stop it from warning about it being from an earlier version however, simply open the datapack file, open pack.mcmeta and change the number after pack_format to be 15.

Hope this helps.
1
l1kus
08/09/2023 7:35 pm
Level 1 : New Miner
Is it possible to keep the number of hearts one has lost after death??
2
Pickled_Kaktus
08/13/2023 8:55 pm
Level 27 : Expert System
Yes,

To prevent the health being reset upon death you can follow these steps to modify the datapack:

1. Open the datapack file and navigate to "data/minecraft/tags/functions" and then delete the file "tick.json".

2. Navigate back to the data file and then to "data/pickledtotems/functions" and delete the files "tick.mcfunction" and "reset_health_modifiers.mcfunction".

3. The datapack is now correctly modified. You can add it to your world and it wont reset health when a player dies.
1
JreepGaming
06/20/2023 9:21 pm
Level 22 : Expert Imposter Blockhead
history
How do I make it so that it doesn't reset my health even if it goes past vannila max health? It conflicts with Dungeon now loading. I really need this asap
1
Pickled_Kaktus
06/20/2023 9:41 pm
Level 27 : Expert System
If you are using another mod or datapack that modifies the players maximum health there is not a clean fix for this issue. This datapack has a max health and a default health variable that represent the highest health that the player can go up to by eating enchanted golden apples and that players default health respectively. If you want the health to go higher than the vanilla 20 health, then you can use the commands below and replace <value> with the new max health you want it to be set to.
/scoreboard players set PKLDTotems_dummy PKLDTotems_defaultHealth <value>/scoreboard players set PKLDTotems_dummy PKLDTotems_maxHealth <value>This should work as a fix, but these commands will need to be run everytime you would change your max health value with Dungeon now loading. Sadly I can't think of a better fix than this and I can't promise it will work 100%, since the method I use in this datapack to change health values may not be compatible with other datapacks that also change these values in their own way.
2
leoufort5
05/05/2023 10:41 am
Level 1 : New Miner
how can i remove the all regen of the missng healt to "defaukt" on death?
2
Pickled_Kaktus
05/08/2023 5:05 pm
Level 27 : Expert System
If you want the health to stay at the reduced values even after a player dies, then here are the steps to take to modify the datapack to do that:


1) unzip the datapack, navigate to data/pickledtotems/functions
2) delete the file tick.mcfunction
That will make the datapack work the way you mentioned.
However if a player uses totems while they're health is already at the minimum, then they will need to eat more enchanted golden apples for each totem they activate while at minimum health. If you don't want this to happen then comment again and I'll post a modified datapack that will prevent that side effect, since explaining how to fix that issue will not fit in a comment.

Cheers! and hope this helps.
1

Welcome