hasitem={location=slot.weapon.mainhand}
hasitem={location=slot.weapon.mainhand,quantity=0}
- Doesn't work:
item
must be specified
hasitem={location=slot.weapon.mainhand,item=air}
hasitem={location=slot.weapon.mainhand,item=air,quantity=1..}
- Doesn't work: doesn't find player with empty hand or with filled hand
hasitem={location=slot.weapon.mainhand,item=air,quantity=0}
- Doesn't work: finds both player with empty hand and with filled hand
hasitem={location=slot.weapon.mainhand,item=stone,quantity=0}
- Doesn't work: doesn't find player holding stone, but finds player with empty hand or holding anything else