> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Item Objectives

> Quest objectives for collecting and crafting items.

Track item acquisition, crafting, and enchanting.

## Objective Library

<CardGroup cols={3}>
  <Card title="Gather" icon="hand" href="#gather-objective">
    Collect specific items.
  </Card>

  <Card title="Craft" icon="hammer" href="#craft-objective">
    Craft items in recipes.
  </Card>

  <Card title="Enchant" icon="wand-magic-sparkles" href="#enchant-objective">
    Enchant gear.
  </Card>
</CardGroup>

## Configuration

### `gather_objective`

Requires the player to have a specific item in their inventory.

<ResponseField name="material" type="Material">
  The item type to collect (e.g. `DIAMOND`).
</ResponseField>

<ResponseField name="amount" type="Int">
  Total amount required.
</ResponseField>

### `craft_objective`

Requires the player to craft items.

<ResponseField name="material" type="Material">
  The result item type (e.g. `IRON_CHESTPLATE`).
</ResponseField>

<ResponseField name="recipe" type="String">
  (Optional) Specific recipe ID to match.
</ResponseField>

<ResponseField name="amount" type="Int">
  Number of items to craft.
</ResponseField>

### `enchant_objective`

Requires the player to enchant items.

<ResponseField name="enchantment" type="Enchantment">
  The specific enchantment (e.g. `FORTUNE`).
</ResponseField>

<ResponseField name="minLevel" type="Int">
  Minimum level required.
</ResponseField>

<ResponseField name="amount" type="Int">
  Number of times to enchant.
</ResponseField>

## Examples

<CodeGroup>
  ```yaml Diamond Miner theme={null}
  gather_objective:
    material: DIAMOND
    amount: 64
    onComplete:
      - message_action:
          message: "<aqua>Rich!"
  ```

  ```yaml Blacksmith theme={null}
  craft_objective:
    material: IRON_CPICKAXE
    amount: 1
  ```
</CodeGroup>
