# Recipes and Crafting

## Crafting Example

```yaml
recipe:
  # Layout for crafting. If you want no item in that slot, use a space ` `
  layout:
    - 'WWW'
    - 'WWW'
    - 'WWW'
  # Define each material below. Material name, e.g. `W` must be 1 capital letter
  materials:
    W: 
      type: CRAFTING_TABLE #Crafting Table
```

To create a custom crafting recipe, you will need to define a `layout` and a list of `materials`. The layout is a 3x3 grid represented by three strings with three characters each. Use a single capital letter to represent a specific material or a space if you want the slot to be empty.

In the `materials` section, you will map the single capital letter used in the layout to the actual Minecraft material. For example, in the example above, 'W' represents a crafting table.

Items use the universal item configuration format from our plugins, <https://wiki.advancedplugins.net/configuration/config-items>

## Using custom items in recipes

You can also use other custom items in crafting recipes! Here's an example of how an item can co-depend on another custom item to be crafted:

```yaml
recipe:
  # Layout for crafting. If you want no item in that slot, use a space ` `
  layout:
    - 'WWW'
    - 'WAW'
    - 'WWW'
  # Define each material below. Material name, e.g. `W` must be 1 capital letter
  materials:
    W:
      type: CRAFTING_TABLE #Crafting Table
    A:
      customItem: Teleporter
```

Simply define `customItem` in the config, which is custom item's name. This is case sensitive.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://items.advancedplugins.net/items/items-settings/recipes-and-crafting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
