> For the complete documentation index, see [llms.txt](https://enchantedmobs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enchantedmobs.superiormc.cn/for-ultimatequest/configuration/conditions/items.md).

# Item Conditions

Each example is placed inside the conditions mapping of an objective or compatible task field. See [common fields](/for-ultimatequest/configuration/conditions.md).

## `match_item`

Matches the selected item or any item in an equipment group.

| Field         | Default         | Description                                       |
| ------------- | --------------- | ------------------------------------------------- |
| `item`        | CONTEXT         | Scalar selector, or section with selector/holder. |
| `item-holder` | TARGET          | Holder for scalar equipment selection.            |
| `match`       | current section | MatchItemFormat rules.                            |

```yaml
conditions:
  tool:
    type: match_item
    item:
      selector: MAIN_HAND
      holder: PLAYER
    match:
      material:
      - IRON_PICKAXE
      - DIAMOND_PICKAXE
```

Selectors: CONTEXT, TRIGGER\_ITEM, MAIN\_HAND, OFF\_HAND, HELMET, CHESTPLATE, LEGGINGS, BOOTS, ARMOR, ALL\_EQUIPMENT. Air/missing items are excluded. Equipment groups use OR. CONTEXT is the event item, not necessarily the player main hand.

## `catch_match_item`

Tests the Item entity caught by a fishing event.

| Field   | Default         | Description                           |
| ------- | --------------- | ------------------------------------- |
| `match` | current section | MatchItemFormat for the caught stack. |

```yaml
conditions:
  fish:
    type: catch_match_item
    match:
      material:
      - COD
      - SALMON
      - TROPICAL_FISH
      - PUFFERFISH
```

Requires PlayerFishEvent with a caught Item. It does not match a hooked mob or an empty cast. Combine with trigger: fish and count: items to count caught stack size.
