> For the complete documentation index, see [llms.txt](https://dev.vanixmc.com/customdrops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.vanixmc.com/customdrops/actions-and-conditions/conditions.md).

# Conditions

BEING RECODED!!

Each drop can have a list of conditions, if one condition in the list fails, custom drops will not recognize the drop, otherwise, it will drop CustomDrops. Currently, there is one category of conditions: ItemStack conditions, with 6 conditions in it.

### Creating a Condition

1. First off, if it's an <mark style="color:orange;">**item input condition**</mark>, be sure to have the item in your inventory. Then, you can use the command: <mark style="color:blue;">`/cd condition create <id>`</mark>
2. Now, select a category (for now there is only one).
3. Now, select a condition type.
   1. If it's a text input type, it will have a paper icon, and you'll be prompted in chat for it.
   2. If it's an item input type, it will have a pickaxe icon, and you'll be prompted to insert an item.
      1. <mark style="color:red;">Shift-Click</mark> the item into the menu and click the done button.
4. You're done! Now to add this condition to a drop, go into its edit menu, and click on the conditions button (Detector Rail). Then click the clock in the bottom right corner of the menu, and click the condition you created to add it. If it disappears, it means it's been added!

### ItemStack Conditions

All the conditions that have to do with item stacks, and generally take items as inputs.

* ItemMatch condition <mark style="color:orange;">(Item Input)</mark>
  * This condition will check if the player's item matches exactly with the condition item.
* ItemMaterial <mark style="color:orange;">(Item Input)</mark>
  * This condition will check if the player's item material matches the condition item's material.
* ItemName <mark style="color:orange;">(Item Input)</mark>
  * This condition will check if the player's item name matches the condition item's name.
* ItemLoreMatch <mark style="color:orange;">(Item Input)</mark>
  * This condition will check if the player's item lore matches exactly with the condition item's lore.
* ItemLoreContains <mark style="color:yellow;">(Text Input)</mark>
  * This condition takes in a text input and checks if the player's item contains (in any line) the text that you input.
* ItemDurability <mark style="color:yellow;">(Text Input)</mark>
  * This condition will check if the player's item durability matches the condition item's durability.
