2
I need help with custom totem effects
I'm making a datapack that will be introducing a new totem that gives it own effects. I've tired doing this with advancements and scoreboards and I seem to not be having any luck. I was wandering if someone can help me accomplish my task in a simple manner.
8
How about making a procedure, that gives you a specific effect when the entity dies
IF entity dies
DO give effect
- I am using MCreator Modmaker logic by it, how I would see it
IF entity dies
DO give effect
- I am using MCreator Modmaker logic by it, how I would see it
I'm wanting to do this via data pack or command blocks, so is it possible for me to detect a totem of undying with a nbt tag die?
I think so, NBT is an advanced category, so it can be possible to get a specific effect(inside the death nbt, I think)
you can also
-give a player a special tag when the player has a totem in main/off hand
-remove it when its not in hand,
-then do /scoreboard objectives add <name> deathCount and check if a player has both that and tag
(/execute if entity @p[tag=<tagname>,scores={deaths=1..}] run function <functionname>)
-but also make tag giving thing a tick late so that the check command can find the tag even a tick after the player has lost the totem
-give a player a special tag when the player has a totem in main/off hand
-remove it when its not in hand,
-then do /scoreboard objectives add <name> deathCount and check if a player has both that and tag
(/execute if entity @p[tag=<tagname>,scores={deaths=1..}] run function <functionname>)
-but also make tag giving thing a tick late so that the check command can find the tag even a tick after the player has lost the totem
GrimWither check this
Ok ill try this
good
Help
