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

Started by phoenix_wb on Mon, 03/23/2020 - 01:36

Topic category: Help with modding (Java Edition)

Last seen on 09:38, 31. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make certain armour make you immune to a potion effect.
Mon, 03/23/2020 - 01:36

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.

Last seen on 04:38, 20. Oct 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't think it is possible
Mon, 03/23/2020 - 02:06

I don't think it is possible

Last seen on 14:15, 19. Oct 2020
Joined Sep 2019
User points:

User statistics:

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

Last seen on 14:15, 19. Oct 2020
Joined Sep 2019
User points:

User statistics:

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