in_slot
Passes when the active item holder is in one of the specified equipment slots.
Categories: inventory
Required arguments
| Key(s) | Description | Type |
|---|---|---|
slot \| slots | The 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"