Description
Checks if a player is holding a specific material in their main hand.
Examples
if player is holding diamond_sword:Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.
Related (Player)