Started by
Tortugo
on
Topic category: Help with Minecraft modding (Java Edition)
hello please how to put an effect on armor for a while, i I searched for a long time I can't put for a while.
Topic category: Help with Minecraft modding (Java Edition)
hello please how to put an effect on armor for a while, i I searched for a long time I can't put for a while.
...If you want to put some sort of special effect on armor, your best bet would probably be a custom enchantment. Make a custom enchantment, and have its effects execute on playertick if the player has armor with said enchantment. If you only want the enchantment to last for awhile, one of those effects could be that the armor has a very small chance of being disenchanted each tick. (If you wanted to make this a bit more complex, you could add a set delay before this starts taking effect, and another delay after tha rmor has decided to become disenchanted before it actually does. This way, it wouldn't immediately wear off.)
Precisely, I'm standing on mcreator and I can't find the box that allows me to do something for a while 😅
Do you mean for a while that an effect lasts a few minutes then expires?
In that case, check when player activates it, give a potion effect that lasts for the time you want and then a procedure to prevent the player from getting that effect during the effects duration.
If that is what you mean.
Yes that's what I mean but when I do that the process starts again and again and the effect goes back and forth all the time. I send an image it's easier.
Image is not showing, you can add a permenant varible after the effect, then check that the buff wont activate again on those entities.