> ## 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.

# Crafting Events

> React to crafting, smelting, and brewing activities.

Monitor and react to item creation and modification stations.

## Event Library

<CardGroup cols={2}>
  <Card title="Craft Item" icon="hammer" href="#bench-take-result-event">
    Triggers when taking an item from a workbench.
  </Card>

  <Card title="Smalt Item" icon="fire" href="#smelt-event">
    Triggers when a furnace finishes smelting.
  </Card>

  <Card title="Brew Potion" icon="flask" href="#brewing-stand-brew-event">
    Triggers when a brewing stand finishes.
  </Card>

  <Card title="Campfire Cook" icon="fire-burner" href="#campfire-cook-event">
    Triggers when food is cooked on a campfire.
  </Card>

  <Card title="Stonecutter" icon="ring" href="#stonecutter-cut-event">
    Triggers when using a Stonecutter.
  </Card>

  <Card title="Smithing Upgrade" icon="arrow-up-from-bracket" href="#smithing-table-upgrade-event">
    Triggers when upgrading gear.
  </Card>
</CardGroup>

## Configuration

### `bench_take_result_event`

Triggers when a player removes the result from a crafting table.

<ResponseField name="recipe" type="String">
  Namespace key of the recipe (e.g. `minecraft:diamond_sword`).
</ResponseField>

<ResponseField name="material" type="Material">
  Resulting material type.
</ResponseField>

### `smelt_event`

Triggers when a furnace completes an operation.

<ResponseField name="input" type="Material">
  Source item material (e.g. `RAW_IRON`).
</ResponseField>

<ResponseField name="output" type="Material">
  Result item material (e.g. `IRON_INGOT`).
</ResponseField>

### `brewing_stand_brew_event`

Triggers when a potion finishes brewing.

<ResponseField name="ingredient" type="Material">
  The ingredient used (e.g. `NETHER_WART`).
</ResponseField>

<ResponseField name="requiredLocation" type="Position">
  Specific brewing stand location to monitor.
</ResponseField>

### `smithing_table_upgrade_event`

Triggers when an item is upgraded with a template.

<ResponseField name="template" type="Material">
  Smithing template used (e.g. `NETHERITE_UPGRADE_SMITHING_TEMPLATE`).
</ResponseField>

<ResponseField name="baseMaterial" type="Material">
  The item being upgraded.
</ResponseField>

## Examples

<CodeGroup>
  ```yaml Secret Recipe theme={null}
  bench_take_result_event:
    material: DIAMOND_SWORD
    actions:
      - message_action:
          message: "<green>You crafted a powerful blade!"
  ```

  ```yaml Alchemy theme={null}
  brewing_stand_brew_event:
    ingredient: GHAST_TEAR
    actions:
      - sound_action:
          sound: ITEM_BOTTLE_FILL_DRAGONBREATH
  ```
</CodeGroup>
