Started by
giz_Apex
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
I've created a new potion effect (bad for the player) on Mcreator and a new armor as well and I'd like to know how can I make my armor immune to this effect with a procedure ?
I tried with the bloc Execute command /"effect clear @p [my effect]" in the name of Event/target entity that i see in an other topic without success...
Thank you !
giz_Apex
Make a procedure. Then make an if statement with "has _ active potion:" procedure block. In the do section(of the if statement) put the "Remove specific potion effect from _ type" block. (The underscore is just where the "event/target entity" block goes). Make sure to select your effect in both blocks. Lastly make sure you put this on your armor triggers, however you want.
It works thank you !