How can you give an effect to all players wearing diamond shoes, for example jumpboost?
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.
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
Oh cool thank you
Oops and between "effect" and "@s" there still has to be "give"