How can I make an potion effect that prevents further poison effect from being applied while active?

Started by Toibithieunang on Sun, 10/02/2022 - 09:05

Topic category: Help with modding (Java Edition)

Last seen on 09:25, 3. Dec 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I make an potion effect that prevents further poison effect from being applied while active?
Sun, 10/02/2022 - 09:05

I'm trying to make an effect that  prevents selected effect  from being applied while active. 

any help would be greatly appreciated

Last seen on 12:03, 22. Nov 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
if the "selected effect"…
Mon, 10/10/2022 - 08:30

if the "selected effect" something that you put there and its not from minecraft, go in its "when effect applied", check for the first effect and if its there, remove the selected effect

and if not, go to your effect's tick condition (because it runs every tick, if you dont want to make your active tick condition always true to run this every tick) and check for the selected effect. if its there, remove it