3
Is there a way to fully customize Totem of Undying?accessibility
I'm not talking about the texture or sound of it, but rather effects of it and types of it depending on how the totem wielder was expected to die. For example, I am interested in making (or at least trying to) a datapack that changes the totem's behavior so it will give some different effects on different "death" occurrences, like:
Death (in general):
-Removes only the negative status effects instead of all existing ones,
-Restores 6 hp instead of just 1,
-Gives Resistance effect {Amplifier:4,Duration:60 (in ticks)},
-Gives Absorption effect {Amplifier:2,Duration:400},
-Gives Regeneration effect {Amplifier:3,Duration:1200},
-Gives Fire Resistance effect {Amplifier:0,Duration:400}.
Death from fire:
-Applied Fire Resistance lasts for 6000 ticks instead of 400.
Death from drowning:
-Gives Water Breathing effect {Amplifier:0,Duration:3600}.
Death from void:
-Teleports the player to x~ y250 z~,
-Gives Slow Falling effect {Amplifier:0,Duration:4000}.
Death from starvation(yes, that happens):
-Gives Saturation effect {Amplifier:9,Duration:40}.
Death (in general):
-Removes only the negative status effects instead of all existing ones,
-Restores 6 hp instead of just 1,
-Gives Resistance effect {Amplifier:4,Duration:60 (in ticks)},
-Gives Absorption effect {Amplifier:2,Duration:400},
-Gives Regeneration effect {Amplifier:3,Duration:1200},
-Gives Fire Resistance effect {Amplifier:0,Duration:400}.
Death from fire:
-Applied Fire Resistance lasts for 6000 ticks instead of 400.
Death from drowning:
-Gives Water Breathing effect {Amplifier:0,Duration:3600}.
Death from void:
-Teleports the player to x~ y250 z~,
-Gives Slow Falling effect {Amplifier:0,Duration:4000}.
Death from starvation(yes, that happens):
-Gives Saturation effect {Amplifier:9,Duration:40}.
Create an account or sign in to comment.
2
1
That should all be possible. You can't easily change what the totem itself does, but you can detect when a totem is used with a scoreboard (i think the criteria is minecraft.used:minecraft.totem_of_undying, but I'm not sure) and then use commands to add all the things you want.
The hardest thing would probably be "Removes only the negative status effects instead of all existing ones". For that you would always have to store all effects a player has and then re-add all the positive ones after the totem cleared them.
If you come across any more specific questions while creating your datapack, feel free to ask. :D
The hardest thing would probably be "Removes only the negative status effects instead of all existing ones". For that you would always have to store all effects a player has and then re-add all the positive ones after the totem cleared them.
If you come across any more specific questions while creating your datapack, feel free to ask. :D
2
Was half expecting to be simpler than that but thank you for keeping my hopes up.