• Hey! Register here to create your account, engage with the community, and talk about what is new!

IF statement and potion effect not working.

SplEko

New member
Joined
Jan 6, 2023
Messages
13
Reaction score
0
I have it in my code so that: When Player Sneaks-If Player is wearing armor-give potion effect. The problem is when the player sneaks, it will give the potion effect with or without the armor.

Also, in the code for removing the armor, which is set to: when player walks-If player is NOT wearing armor-remove potion effect. The thing is, when I walk with the armor on, it still removes the potion, even though I have it set to remove the potion if the player is not wearing the armor.
 

pixlii

Forum adept
Overlord
Joined
May 20, 2021
Messages
226
Reaction score
34
...keep in mind the df forum isn't the most active place. you often won't get a reply for more than a few hours. seeing as you posted this at 4:00 today, you might have to wait for a bit
 
Top Bottom