Started by
phoenix_wb
on
Topic category: Help with Minecraft modding (Java Edition)
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.
I don't think it is possible
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.
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.
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