Ask Games Video Games

How to tell if a certain item is in a player inventory

I am trying to create a challenge world where a certain item (e.g. netherite sword) must be collected. How can I check automatically if a player has it (using commands), and then congratulate the winner?

Before you class this as a copy: it must work on Bedrock Edition 1.16. I have tried so many times and they don’t seem to work.

Leave a Reply

Your email address will not be published. Required fields are marked *