_Condition Slot - Eniripsa96/SkillAPI GitHub Wiki

Condition

Child components are applied to each player target who has an item meeting the given requirements that is also in a particular slot.

Options

Name YAML Key Type Description
Slot slot Integer The slot to check for the item in
Check Material check-mat Boolean Whether or not a specific material is needed
Material material Dropdown The material to check for if the above option is set to true
Check Data check-data Boolean Whether or not a specific item data value is needed
Data data Integer The data value that is required if the above option is set to true
Check Lore check-lore Boolean Whether or not to search for a specific line of lore
Lore lore String The lore line that must be present if the above option is set to true
Check Name check-name Boolean Whether or not to look for a certain item name
Name name String The name of the item needed if the above option is set to true
Regex regex Boolean Whether or not the name and lore options are used as regex strings.

Description

  • All enabled checks must pass
  • Specific slots can be used to support custom equipment slots introduced by plugins like RPGInventory
  • Item materials are based off of the Bukkit Material List

Usage Examples

-- To be added --

⚠️ **GitHub.com Fallback** ⚠️