> 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/modular-machinery/sozdanie-krafta.md).

# Создание крафта

Все рецепты будут создаваться в файле с разрешением .zs, через CraftTweaker. Вам необходимо написать `import mods.modularmachinery.RecipeBuilder;` для начала работы машин.

В скобках нужно написать вместо **«name»** название рецепта, вместо **«test»** - название Вашей структуры, а в конце, вместо **«80»** - время (*в тиках, 20тиков=1секунда*).

Ниже в конфигурации указаны компоненты крафта. Рассмотрим 5 строчку:

* **recipe** – номер рецепта, при создании другого рецепта используйте наименования recipe2, recipe3 и т.д..
* **Fluid** - тип загружаемого материала,
* **input** – обозначение использования материала в рецепте, в скобочках указывается **id** жидкости или предмета (чтобы добавить, например, в крафт 1000мб жидкости, нужно указывать через \* объём).
* **addEnergyPerTickInput** – количество потребляемой энергии (за тик).
* **Recipe.build();** - завершает крафт.

```java
var recipe = RecipeBuilder.newBuilder("name", "test", 80);
recipe.setChance(50);
recipe.addEnergyPerTickInput(100);
recipe.addFluidInput(<liquid:water> * 1000);
recipe.addItemInput(<minecraft:iron_ingot>);
recipe.addItemOutput(<minecraft:gold_ingot>);
recipe.build();
```

<figure><img src="/files/IhXsDFDn4GUlhB9XuOcz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Crx7mGqCS25iW6Cv7dhj" alt=""><figcaption></figcaption></figure>


---

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

```
GET https://wiki.aegis-mine.ru/modifications/sozdanie-kontenta/modular-machinery/sozdanie-krafta.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.
