in_mainhand

Passes when the entity is holding a matching item in their main hand.

Categories: inventory

Required arguments

Key(s)DescriptionType
items \| itemThe item(s) to check for.ITEM_LIST

Example

conditions:
  - id: in_mainhand
    args:
      items: 
        - <value>