> For the complete documentation index, see [llms.txt](https://wiki.modernmodpacks.site/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.modernmodpacks.site/wiki/hellish-mods/digitality/data-packs/recipes.md).

# Recipes

As with [models](/wiki/hellish-mods/digitality/resource-packs/models.md) and [tags](/wiki/hellish-mods/digitality/data-packs/tags.md), recipes also have subtypes, for now digitality only supports shapeless crafting recipes, but we are aiming to expand the support in the future.

## Shapeless crafting

```java
data.shapelessRecipe("<recipe id>", new ItemTemplate("<item name>", "<item count (optional)>"), <ArrayList of ingredient names/ingredient 1>, "<ingredient 2>"...);
```

{% code title="Example" %}

```java
// This code registers the "funnymod:test" recipe that produces 2 sticks and uses a diamond block and a golden carrot as the ingredients
VirtualDataPack data = new VirtualDataPack("funnymod");
data.shapelessRecipe("test", new ItemTemplate("minecraft:stick", 2), "minecraft:diamond_block", "minecraft:golden_carrot");
```

{% endcode %}

<figure><img src="/files/v45ZgVc9cdEqfBtwC3CB" alt=""><figcaption><p>In-game demonstration</p></figcaption></figure>
