How to make certain armour make you immune to a potion effect.

Started by phoenix_wb on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make certain armour make you immune to a potion effect.

I want to make a piece of armour immune to a custom potion effect that I will add in the game, but I don't know how. It would be appreciated for assistance.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure if this is…
Mon, 04/13/2020 - 18:10

I'm not sure if this is possible in  MCreator, but couldn't you just cancel the event. E.x - If you want to cancel fall damage, call the fall damage event and then check if you have the armor, if so, cancel the event. Long winded description, but this is absolutely possible. As I said I haven't check if you can cancel events in MCreator but look around.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now that I think about it,…
Mon, 04/13/2020 - 18:11

Now that I think about it, there was a cancel block under advanced. Not sure if the event you want to cancel is under global triggers though.

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is also a condition…
Wed, 05/31/2023 - 22:00

There is also a condition section for the custom potion effect that controls on what conditions is your effect applicable or not. If you as a condition select having the full armor set for the entity you want to have the potion (in this case, the player), the potion shouldn't be applied if that entire armor set is equipped