I am making a Hide and Seek map on one of my friends realms, and I want to make certain boots give different effects (such as diamond boots give speed). I have something with two command blocks right here:
/testfor @a{[team=Hider]Inventory:[{id:"minecraft:chainmail_boots"}]} |
Then a comparator to the next.
/effect minecraft:resistance 1 3 true |
But that only effects the nearest player to the command blocks.