Is there a way to test for an item in everyone's inventory, and if someone has that item, then perform an action on ONLY that player? Bedrock edition btw.
For example, everyone has nothing in their inventory. Then player A gets a Netherite sword. Is it possible to have a command block that constantly checks for netherite swords in inventories, and then perform an action on ONLY the player that has one?