> For the complete documentation index, see [llms.txt](https://guide.elitefantasy.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.elitefantasy.net/resourcepack-guide/beginning/models/itemsmodels-and-custommodeldata/custommodeldata-old.md).

# custommodeldata (old)

{% hint style="info" %}
First step: Add your textures
{% endhint %}

Assuming you already did the basic guide, you can now go to assets/minecraft/textures/custom/item and add your textures.\
\
**Please note that textures must not exceed 256x256 pixels!**

```
Texture_pack:
  ➞ assets
    ➞ minecraft
       ➞ textures
          ➞ custom
             ➞ wood_stick.png
```

{% hint style="info" %}
Second step: adding models
{% endhint %}

Step A: Using a base model\
Step B: add your models\
\
Next you will see where to add the file of your model, read the options to know what's next

## Step A:

If you are using an item that does not use a custom model you can use one from Minecraft, First go to **assets/minecraft/models/custom/item** and add a file named **\<item\_name>.json**

```
Texture_pack:
  ➞ assets
    ➞ minecraft
       ➞ models
          ➞ custom
             ➞ item
                ➞ wood_stick.json
```

\
\
Then copy this into your json<br>

```
{
	"credit": "Made with Masaki",
	"parent": "item/handheld",
	"textures": {
		"layer0": "custom/item/wood_stick"
	}
}
```

Now go to step 3\ <br>

## Step B:

If you are adding an item that uses a custom texture such as a 3D modeled stick, you will have to complete several steps, this guide assumes you are using Blockbench to create your models.

Blockbench makes exporting models very simple just click on **File > Export > Export Block/Item Mode** And then place it in the correct directory<br>

{% hint style="info" %}
Third step: Define the CustomModelData
{% endhint %}

Now that you have the model in your texture pack, you need to configure the CustomModelData of the model.

What is that, the CustomModelData is a type of variation that Minecraft has for all items so you can create new ones and not replace them.

To do that you need to create a model file for your item at **assets/minecraft/models/item/\<base\_item>.json** in this case it will be **stick**.

```
Texture_pack:
  ➞ assets
    ➞ minecraft
       ➞ models
          ➞ item
             ➞ stick.json
```

```
{
   "parent":"item/generated",
   "textures":{
      "layer0":"item/stick"
   },
   "overrides":[
      {
         "predicate":{
            "custom_model_data":1
         },
         "model":"custom/item/wood_stick"
      }
   ]
}
```

{% hint style="info" %}
Last step: You're done!
{% endhint %}

Incredible, we have created our first custom item, now we can get it in the game using the command **/give \<name> stick{CustomModelData:1}**

![](/files/ypSiIvTHvJnJwmE5EHmp)


---

# 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://guide.elitefantasy.net/resourcepack-guide/beginning/models/itemsmodels-and-custommodeldata/custommodeldata-old.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.
