# 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&#x26;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&#x26;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&#x26;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&#x26;token=6d341c31-30a7-4daf-b705-6d4c105a6688" alt=""><figcaption></figcaption></figure>


---

# 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://cosmeticscore.devs.beer/adding-content/creating-a-model.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.
