diff --git a/docs/effects/all-conditions/has_enchant.md b/docs/effects/all-conditions/has_enchant.md new file mode 100644 index 0000000000..97ac9b2278 --- /dev/null +++ b/docs/effects/all-conditions/has_enchant.md @@ -0,0 +1,31 @@ +# `has_enchant` + +Requires a player to have certain enchant(s) +# Example Configs +```yaml +- id: has_enchant + args: + enchant: sharpness # The enchant ID + slot: mainhand # The slot +``` + +Multiple enchants and/or slots are supported: +```yaml +- id: has_enchant + args: + enchants: # All enchants must be present on a single item in the slot(s). + - looting # The enchant ID (enchant / enchant: / enchant:) + - knockback:2 + - sharpness:1-3 + slots: # The enchant must be present in ANY specified slot. + - mainhand + - 6 + - helmet +``` + +| Arg | Example | Result | +| ----------------- | --------------- | ---------------------------------------------------------------------- | +| `enchant` | `sharpness` | Any level of the enchantment will satisfy the condition. | +| `enchant:level` | `sharpness:1` | Only the specified enchantment & level will satisfy the condition. | +| `enchant:min-max` | `sharpness:1-3` | Only enchant levels in the specified range will satisfy the condition. | +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). \ No newline at end of file diff --git a/docs/effects/all-filters/enchant.md b/docs/effects/all-filters/enchant.md new file mode 100644 index 0000000000..a2dfd3f2b5 --- /dev/null +++ b/docs/effects/all-filters/enchant.md @@ -0,0 +1,11 @@ +# `enchant` + +The list of enchants that the `enchant_item` trigger should activate against + +# Example Config +```yaml +filters: + enchant: + - sharpness + - knockback +```