Potion effects remain infinite when I make procedure to get struck my lightning

Started by ktkyo_4 on

Topic category: Help with modding (Java Edition)

Last seen on 00:51, 28. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Potion effects remain infinite when I make procedure to get struck my lightning

I'm making a mod that adds an armor that attracts lightning. When said event happens, I had it intended to give you temporary buffs (10 seconds). Basically if you wear the armor AND you get struck, you get 10 seconds of those buffs.

The problem is: Those buffs appear as unlimited only when the armor is being worn. What do I do?

Last seen on 01:33, 11. Sep 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the global…
Sun, 08/18/2024 - 09:55

You can use the global trigger 'entity gets struck by lightning '(cant recall if it's from one of my  plugins) and add the effect if the entity is wearing the armor.

Last seen on 00:51, 28. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm using said trigger and…
Sun, 08/18/2024 - 14:05

I'm using said trigger and it still applies when I use the set :( Perhaps I have to tweark something in the procedure, I don't know