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

Started by Toibithieunang on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make an potion effect that prevents further poison effect from being applied while active?

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

any help would be greatly appreciated

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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