3

Is there a way to fully customize Totem of Undying?accessibility

Natasha425's Avatar Natasha4258/18/22 10:29 pm
3 emeralds 142 2
8/19/2022 4:53 am
Natasha425's Avatar Natasha425
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}.

Posted by Natasha425's Avatar
Natasha425
Level 8 : Apprentice Explorer
6

Create an account or sign in to comment.

2

1
08/19/2022 2:46 am
Level 41 : Master Nerd
Kefaku
Kefaku's Avatar
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
2
08/19/2022 4:40 am
Level 8 : Apprentice Explorer
Natasha425
Natasha425's Avatar
Was half expecting to be simpler than that but thank you for keeping my hopes up.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome