how can you execute someone that has a gear with a enchantment
so im trying to execute a person with a custom enchantment on (this is snapshot 24w21b)
execute as @e[y_rotation=-45..45,tag=!weather] at @s if score wind weather matches 14..25 if score out wd matches 1 unless entity @s[nbt={SelectedItem:{components:{"minecraft:enchantments":{levels:{"atmosphereic:windbreaker":1}}}}}] unless entity @s[nbt={Inventory:[{Slot:100b,components:{"minecraft:enchantments":{levels:{"atmosphereic:windbreaker":1}}}}]}] unless entity @s[nbt={Inventory:[{Slot:101b,components:{"minecraft:enchantments":{levels:{"atmosphereic:windbreaker":1}}}}]}] unless entity @s[nbt={Inventory:[{Slot:102b,components:{"minecraft:enchantments":{levels:{"atmosphereic:windbreaker":1}}}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,components:{"minecraft:enchantments":{levels:{"atmosphereic:windbreaker":1}}}}]}] unless entity @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:enchantments":{levels:{"atmosphereic:windbreaker":1}}}}]}] run effect give @s speed 1 1 true
the directional part works its the enchantments part
Continue to help post