If I do

execute if entity @p[nbt={SelectedItem:{id:"minecraft:netherite_sword",Count:1b,tag:{display:{Name:"{\"text\":\"Weatherite Sword\",\"color\":\"cyan\"}"},Unbreakable:1b}}}]

On a Repeating Command Block (always on) on 1.15 it scans if i equip a Netherite Sword named Weatherite Sword on my right hand how do you detect if you have armor equiped? I tried using

execute if entity @p [nbt={Inventory:[{slot:100,id:netherite_boots,Count:1b,tag:{display:{Name:"{\"text\":\"Weatherite Boots",\"color\":\"cyan\"}"},Unbreakable:1b}}}]
  • It was a Repeating Command block, Unconditional, and always on with 4 chain command blocks if that changes anything. – Zion Lorm Feb 10 at 3:52
  • 1
    ...how do you have netherite in 1.15? – Corsaka Feb 10 at 9:09
  • 1
    What all the four previous close voters forgot to ask for: Please specify what error messages or other problems you get and what you tried to solve the problem yourself. – Fabian Röling Feb 10 at 18:41
  • I can for example see the first problem rightaway: A space after @p. And you need to match NBT exactly, slot:100 does not work. – Fabian Röling Feb 10 at 18:42