Started by
Distru121mods
on
Topic category: Help with MCreator software
I would like to make a gun that, when used, removes blindness from the player and does things, but ONLY if the player has already blindness on!
I can't find any code in the procedures that can make me test if the player have a potion effect on, maybe a snippet code?
EntityLivingBase#isPotionActive() is what you need. It takes a parameter of type MobEffect
Edited example from Minecraft vanilla code:
Thank you very much! I had to figure out where to put it, because i'm still pretty new to this type of coding, but now it works!
I know that these is old but... How can i apply the code to my Mcreator event? help pls.