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 modding (Java Edition)

Last seen on 11:08, 23. Apr 2024
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

Last seen on 13:18, 31. Mar 2023
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

Last seen on 11:08, 23. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks!
Sat, 12/03/2022 - 13:48

Thanks!