Minecraft give effect to players?

gl
4

How can you give an effect to all players wearing diamond shoes, for example jumpboost?

Ma

I don't know if that's special with items on players. But I know that you can give effects to certain players with the effect / effect @ etc.

gl

Ok but I already knew about / effect

I just wanted to know which slot the shoe slot is: 100b

Solution to my question:

/ execute as @a [nbt = {Inventory: [{Slot: 100b, id: "minecraft: diamond_boots"}]}] run effect @s minecraft: jump_boost 10 1

This command in an always active command block

Ma

Oh cool thank you

gl

Oops and between "effect" and "@s" there still has to be "give"