# Удаление рецептов

1. Образец удаления рецептов: `Обработчик (глобальная переменная).removeRecipe(удаляемый объект);`

Например, текст ниже удаляет рецепт палки для верстака: `craftingTable.removeRecipe(item:minecraft:stick);`

2. Удаление по имени рецепта: `removeByName(String name);`

Также сначала указывается обработчик или глобальная переменная, а затем в скобках название рецепта (пример ниже удаляет рецепт стрелы из ванильного minecraft, при этом рецепты стрелы с другими именами удалены не будут!): `craftingTable.removeByName("minecraft:arrow");`

3. Удаление всех рецептов мода: `removeByModid(modid);`

Пример, удаляющий все рецепты minecraft: `craftingTable.removeByModid("minecraft");`

Если Вам необходимо удалить все рецепты мода «КРОМЕ», используйте следующий скрипт (удаляет все рецепты minecraft, кроме рецепта оранжевой шерсти, записанного в виде имени рецепта):

{% code fullWidth="false" %}

```typescript
craftingTable.removeByModid("minecraft", (name as string) => {
    return name == "orange_wool";
});
```

{% endcode %}

Состоит из: обработчика/глобальной переменной.метода удаления(«modid», функции (name as string) => {return name == «название рецепта»;});.

4. Удаление всех рецептов определенного менеджера рецептов: `Обработчик (глобальная переменная).removeAll();`

Пример, удаляющий все рецепты для плавильной печи: `blastFurnace.removeAll();`


---

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