I am trying to create a challenge world where a certain item (e.g.in my example, a Netherite Sword) must be collected. HowUsing commands, how can I check automatically if a player has it (using commands), and then congratulaterun a command, for example, congratulating the winner?
I am also looking for a way to detect these items in a specific item slot. For example, a pair of Netherite Boots should run some commands to give the player the Speed effect when worn.
Is this possible? This question is specific to Bedrock Edition 1.16. I have tried other solutions so many times and they don't seem to work.
See also: Testing for a certain dropped item