Item conditions
Check custom item
Check if the item involved in this event has the specific elements. Works with Item comparator.
conditions:
is_custom_item:
name: "magical totem"
custom_model_data: 3
In this case, the item involved must be an item named "magical totem" with a custom model data of "3".
Check for custom enchants
Check if the item involved in this event has the specific enchants.
conditions:
required_enchants:
required_level: 2
required_types:
- "THORNS"
- "ARROW_DAMAGE"
In this case, the item involved must be an item with either thorns or power with at least level 2 to increment the quest.
Available enchants: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
Check for custom potions
Check if the potion involved in this event has the specific potion elements.
conditions:
required_potions:
required_upgraded: true
required_extented: false
required_types:
- "SPEED"
In this case, the potion involved must be an upgraded potion WITHOUT being extended, with effect SPEED on it.
Available types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html
Last updated