how to put an effect on armor for a while

Started by Tortugo on

Topic category: Help with modding (Java Edition)

Last seen on 20:55, 17. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to put an effect on armor for a while

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.

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
...If you want to put some…
Tue, 12/27/2022 - 17:21

...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.)

Last seen on 20:55, 17. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Precisely, I'm standing on…
Wed, 12/28/2022 - 11:46

Precisely, I'm standing on mcreator and I can't find the box that allows me to do something for a while 😅

Last seen on 15:01, 19. Apr 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you mean for a while that…
Wed, 12/28/2022 - 15:26

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.

Last seen on 20:55, 17. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes that's what I mean but…
Wed, 12/28/2022 - 16:46

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.

Last seen on 15:01, 19. Apr 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Image is not showing, you…
Wed, 12/28/2022 - 17:23

Image is not showing, you can add a permenant varible after the effect, then check that the buff wont activate again on those entities.