> For the complete documentation index, see [llms.txt](https://wiki.aegis-mine.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.aegis-mine.ru/modifications/sozdanie-kontenta/crafttweaker/minecraft-1.16.5/recepty-dlya-verstaka.md).

# Рецепты для верстака

Рецепты верстака делятся на **форменные** (важно расположение элементов, элементы крафта должны находиться в конкретных ячейках верстака) и **бесформенные** (элементы крафта могут располагаться любым образом).

## Бесформенные рецепты

### Синтаксис

`craftingTable.addShapeless("recipe_name", output, [input]);`

где\
\&#xNAN;*<mark style="color:blue;">**recipe\_name**</mark>* – имя рецепта (может быть любым из еще не зарегистрированных),\
\&#xNAN;*<mark style="color:blue;">**output**</mark>* – результат крафта,\
\&#xNAN;*<mark style="color:blue;">**input**</mark>* – входной/входные предметы.

### Примеры

Снизу приведено 2 примера: в первом из земли создаются два алмаза, а во втором из глины и пшеницы - один хлеб. О статусе бесформенности рецепта говорит значок в виде переплетающихся стрелочек в правом верхнем углу.

{% code overflow="wrap" lineNumbers="true" %}

```lua
craftingTable.addShapeless("diamond_from_dirt", <item:minecraft:diamond> * 2, [<item:minecraft:dirt>]);
craftingTable.addShapeless("new_bread", <item:minecraft:bread>, [<item:minecraft:clay_ball>, <item:minecraft:wheat>
]);
```

{% endcode %}

<div><figure><img src="/files/gqAuUmf6BCOO8AukocDa" alt=""><figcaption></figcaption></figure> <figure><img src="/files/buSdkERR5cc79WMzzdte" alt=""><figcaption></figcaption></figure></div>

## Форменные рецепты

### Синтаксис

#### Для рецепта 2x2

```lua
craftingTable.addShaped("recipe_name", output, [ [input, input], [input, input] ]);
```

#### Для рецепта 3x3

```lua
craftingTable.addShaped("recipe_name", output, [ [input, input, input], [input, input, input], [input, input, input] ]);
```

где\
\&#xNAN;*<mark style="color:blue;">**recipe\_name**</mark>* – имя рецепта (может быть любым, из еще незарегистрированных, соответственно),\
\&#xNAN;*<mark style="color:blue;">**output**</mark>* – результат крафта,\
\&#xNAN;*<mark style="color:blue;">**input**</mark>* – входной/входные предметы.

В случае отсутствия предмета пишется <mark style="color:blue;">**item:minecraft:air**</mark>.

### Примеры

#### Пример рецепта 2x2

```lua
craftingTable.addShaped("netherite_recipe_new", <item:minecraft:netherite_ingot>, [ 
[<item:minecraft:gold_block>, <item:minecraft:netherite_scrap>], 
[<item:minecraft:fire_charge>, <item:minecraft:netherite_scrap>]
]);
```

<div align="left"><figure><img src="/files/sAmm1BmUdilgoXOGWJ8o" alt=""><figcaption></figcaption></figure></div>

#### Пример рецепта 3x3

```lua
craftingTable.addShaped("piston_recipe_new", <item:minecraft:piston>, [ 
[<tag:items:minecraft:logs>, <tag:items:minecraft:logs>, <tag:items:minecraft:logs>], 
[<item:minecraft:smooth_stone>, <item:minecraft:iron_bars>, <item:minecraft:smooth_stone>], 
[<item:minecraft:smooth_stone>, <item:minecraft:air>, <item:minecraft:smooth_stone>]
]);
```

<div align="left"><figure><img src="/files/8ohoiPAXKEMXg5dNNEY2" alt=""><figcaption></figcaption></figure></div>


---

# 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://wiki.aegis-mine.ru/modifications/sozdanie-kontenta/crafttweaker/minecraft-1.16.5/recepty-dlya-verstaka.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.
