From fb029d82df6d84b6d5762098f49a284754aa9b0f Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 15 Apr 2024 18:24:26 +0100 Subject: [PATCH] Added in_slot --- docs/effects/all-conditions/in_slot.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/effects/all-conditions/in_slot.md diff --git a/docs/effects/all-conditions/in_slot.md b/docs/effects/all-conditions/in_slot.md new file mode 100644 index 0000000000..f4802e2a27 --- /dev/null +++ b/docs/effects/all-conditions/in_slot.md @@ -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 +```