I know I can check whether a player has a certain potion effect with a condition like
Is it possible to determine the level of a potion effect currently affecting a player?
What I'm aiming for here is the following: I want to apply a potion effect to a player periodically:
However, I'd like to skip this code if the player already has a higher level of resistance. Is this possible?
Code:
player has resistance
Is it possible to determine the level of a potion effect currently affecting a player?
What I'm aiming for here is the following: I want to apply a potion effect to a player periodically:
Code:
remove resistance from loop-player
apply resistance 2 to loop-player for 12 seconds
However, I'd like to skip this code if the player already has a higher level of resistance. Is this possible?