> For the complete documentation index, see [llms.txt](https://items.advancedplugins.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://items.advancedplugins.net/items/items-settings/recipes-and-crafting.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
