in_slot

Passes when the active item holder is in one of the specified equipment slots.

Categories: inventory

Required arguments

Key(s)DescriptionType
slot \| slotsThe slot(s) to check — e.g. mainhand, offhand, armor, or a numeric hotbar index.STRING_LIST

Example

conditions:
  - id: in_slot
    args:
      slot: 
        - "mainhand"
        - "9"