Hello! So let me get straight into my problem. I have a netherite helmet that gives you resistance 10 and I have netherite boots that give you levitation. I want it so if you wear these armor pieces separately you still get the effects but if you wear them together the resistance gets cleared and you get the withering effect.
I am using repeating command blocks to detect armor pieces for the effects of resistance and levitation. These command blocks are placed in a server so I have to detect the specific player for this.