HOME > Tutorials

Minecraft Bedrock – How to test if a player is holding an item

4.8
(5)

Use the following selector:

/testfor @a[hasitem={item=diamond_pickaxe,location=slot.weapon.mainhand}]

Did you enjoy this creation?

Click on a star to rate it!

Average rating 4.8 / 5. Vote count: 5

No votes so far! Be the first to rate this creation.

As you liked this creation...

Follow me on social media!

I'm sorry you didn't like this creation

Let me improve!

Tell me how could I improve this creation?

Do you like Minecraft Maps?

Hey, I'm Cimap! I love to amaze thousands of Minecraft players with my creations. Don't miss them out!