Skip to content

Commit

Permalink
Added in_slot
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Apr 15, 2024
1 parent ce6bc9e commit fb029d8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/effects/all-conditions/in_slot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# `in_slot`

Requires the item (e.g. the EcoItem, enchanted item, reforged item) to be in a certain slot.

This is useful if you want one holder to have different effects depending on the slot it is in.

The options for slot are mainhand, offhand, hands, helmet, chestplate,
leggings, boots, armor, any, or a number from 0-40 (to specify an exact slot).

# Example Configs
```yaml
- id: in_slot
args:
slot: mainhand # The slot
```
```yaml
- id: in_slot
args:
slots: # You can also provide a list of slots
- mainhand
- 6
- helmet
```

0 comments on commit fb029d8

Please sign in to comment.