When entity dies
If: "get [item in main hand of {target entity} = {your totem}]"
then: "Cancel event trigger (note: this can be found in the advanced features tab)
Set health of {target entity} to [get max health of {target entity}]
Provide whatever effects you want
Play totem animation {your totem}
spawn [number] particles of type [totem] at {x y z}"
Hope that helps!
PS, totem animation doesn't fully work in latest versions of MCreator.
Hello, I was able to make a totem procedure that worked so here it is: https://www.mediafire.com/file/upgih4mtzzijqrk/CustomTotem.ptpl/file
(Replace the Totem in the code with your item)
No, what you need to do is:
Hope that helps!
PS, totem animation doesn't fully work in latest versions of MCreator.