It might be possible to create an item with your desired image, and have your custom settings for that. then you could use an if statement which if the item is in your off-hand and current health is equal to 0, you could add the effects you want for how long (20 ticks = 1 second) and remove the item. I haven't tested this out but hopefully this might work for you. Good Luck!
I know how to do it. Just In the items triggers, select when item in hand and make a procedure and add the global trigger entity about to grief the world. Then add the if and do in if, add - if health of target entity = 0 or if you want to make another totem, health < (any number u want) (2 health = 1 heart). Then in do, add the if do else if do. In if add item in the main hand of target entity = (your totem) then in do, write show totem like animation and replace the provided itemstack with your item. then below that add set item in main hand of target entity to 1 air block. and below that, add whatever u want like potion effects, particles or set the health, etc. then in else if, repeat the same as if but add in the off hand of target entity instead of main hand. and in the do, repeat the do in the above one but instead of setting item in main hand to air, set it to the off hand. Everything should work fine.
If you still don't understand, just download and paste this file in C:/Users/You/.mcreator/templates/ptpl. In mcreator if you create a procedure, go to procedure templates and you will find the totem template. Just replace totem of undying with your totem. And edit the effects to whatever you want.
It might be possible to create an item with your desired image, and have your custom settings for that. then you could use an if statement which if the item is in your off-hand and current health is equal to 0, you could add the effects you want for how long (20 ticks = 1 second) and remove the item. I haven't tested this out but hopefully this might work for you. Good Luck!
thnx
That is ok. Good luck in creating your mod!
Do you know how i can do the part where it floats on your screen? It would help me a lot!
If you check the items procedures there should be a block for this
only in 2020.5 and 2021.1 though
I know how to do it. Just In the items triggers, select when item in hand and make a procedure and add the global trigger entity about to grief the world. Then add the if and do in if, add - if health of target entity = 0 or if you want to make another totem, health < (any number u want) (2 health = 1 heart). Then in do, add the if do else if do. In if add item in the main hand of target entity = (your totem) then in do, write show totem like animation and replace the provided itemstack with your item. then below that add set item in main hand of target entity to 1 air block. and below that, add whatever u want like potion effects, particles or set the health, etc. then in else if, repeat the same as if but add in the off hand of target entity instead of main hand. and in the do, repeat the do in the above one but instead of setting item in main hand to air, set it to the off hand. Everything should work fine.
If you still don't understand, just download and paste this file in C:/Users/You/.mcreator/templates/ptpl. In mcreator if you create a procedure, go to procedure templates and you will find the totem template. Just replace totem of undying with your totem. And edit the effects to whatever you want.
https://www.mediafire.com/file/dgdpi0wkcfovhrx/TotemProcedure.ptpl/file
it didn't work
it works for me, but the thing is i technicly still die, cuz all my stuff fall on the ground, and it still shows the death screen
Maybe so you have half a heart left it will activate it? idk It may not work.
I tested it and it looks like the totem activates too late
Instead of doing current health of event/target entity = 0, do current health of event/target entity < 1.
or do more then 1 whatever you want.
actually 1 do not work try 2 or more