I am trying to create a challenge world where a certain item (in my example, a Netherite Sword) must be collected. Using commands, how can I if a player has it, and then run 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.
See also: Testing for a certain dropped item