> For the complete documentation index, see [llms.txt](https://cosmeticscore.devs.beer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cosmeticscore.devs.beer/adding-content/creating-a-model.md).

# Creating a model

To create a model you can use BlockBench.

{% hint style="warning" %}
This requires knowledge on how to create resourcepacks and how to manage CustomModelData.
{% endhint %}

### Step 1

<figure><img src="https://517658335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcHqkAbmdfwmU7TFYbk0w%2Fuploads%2F4mg3FxZvBFi8Pr8EIceE%2Fimage.png?alt=media&amp;token=3e793d59-69a2-4591-b25d-8ae093821038" alt=""><figcaption></figcaption></figure>

### Step 2

Save the model file into your resourcepack

<figure><img src="https://517658335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcHqkAbmdfwmU7TFYbk0w%2Fuploads%2FCcFA4y5frEi37c0YeXpR%2Fimage.png?alt=media&amp;token=ad61ac9f-f44e-44e0-a385-d8acee6b17db" alt=""><figcaption></figcaption></figure>

<figure><img src="https://517658335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcHqkAbmdfwmU7TFYbk0w%2Fuploads%2Fm5fSxEbq3cDbMhLMne6z%2Fimage.png?alt=media&amp;token=2f044f3d-4935-49f3-a1e7-8b76a9ebe125" alt=""><figcaption></figcaption></figure>

### Step 3

{% hint style="warning" %}
This requires knowledge on how to create resourcepacks and how to manage CustomModelData.
{% endhint %}

Create the entry inside the `potion.json` file and decide a CustomModelData to be used later in the CosmeticsCore configurations.

```json
{
  "parent": "item/generated",
  "textures": {
    "layer0": "item/potion_overlay",
    "layer1": "item/potion"
  },
  "overrides": [
    ......
    ......
    {
      "predicate": { "custom_model_data": 600001 },
      "model": "cosmetics:hat/chef_hat"
    },
    ......
    ......
```

<figure><img src="https://517658335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcHqkAbmdfwmU7TFYbk0w%2Fuploads%2FVXynYbdlcgEnFsIfJQZS%2Fimage.png?alt=media&amp;token=6d341c31-30a7-4daf-b705-6d4c105a6688" alt=""><figcaption></figcaption></figure>
