# How to create custom textures

```yaml
my_custom_item:
  enabled: true
  permission: my_custom_item
  model_id: 50
  name: '&fMy custom item'
```

### Creating the .json file (model)

In this example I set **model\_id** to 50 and I created a file named **50.json** in the **assets\minecraft\models\new\_\<type>** folder.\
In this case I'm creating a generic item that won't have any feature, so it will be under **new\_item** folder in resourcepack.

This is the model file I've just created:

<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb3X2vsk1Mip9dcF0ym%2F-Lb3YQGeb-DHigWGpC_L%2Fimmagine.png?alt=media&#x26;token=e176f4ab-c52e-4de1-ad67-dd755f150afe" alt=""></div>

This is the content of the **50.json** file, you can notice i set **layer0** to **new\_item/50**\
which is the path to the **.png** file I'll create (I named it as the .json file to have the resourcepack more organized but you don't have to keep this structure, you can also write **new\_item/my\_custom\_item\_texture**, but remember to name the .png file like that)

<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb3X2vsk1Mip9dcF0ym%2F-Lb3Y_XwqVm41FO-JTS2%2Fimmagine.png?alt=media&#x26;token=4930de5c-8160-40b2-b1f0-3d23ab0111ca" alt="If you made a custom 3D model you can ignore what you see in this screenshot as you surely have another structure in the file"></div>

### Creating the .png file (texture)

Create a new file (or paste your texture file) in the **assets\minecraft\textures\new\_\<type>** folder.\
I named it **50.png** (but remember you can name it as you want, you can name it also **my\_custom\_item\_texture**, like you did in **layer0**).

<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb3X2vsk1Mip9dcF0ym%2F-Lb3_S6SETHMQ00LtBe8%2Fimmagine.png?alt=media&#x26;token=b9c94f0b-d412-4dab-9b4a-a374f01e203f" alt="Texture file i created"></div>

<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb3X2vsk1Mip9dcF0ym%2F-Lb3_XbXsD_rY2MsWTM3%2Fimmagine.png?alt=media&#x26;token=abbe07ac-fecb-4d3b-9545-eaf279b2c702" alt="Preview of the texture (just an example one)"></div>

{% hint style="success" %}

## Done! <a href="#done" id="done"></a>

{% endhint %}

Now you have to zip your resourcepack files selecting these files:

<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb3X2vsk1Mip9dcF0ym%2F-Lb3_yAdQaep9VJhmmaj%2Fimmagine.png?alt=media&#x26;token=85a41a96-c517-43e9-af32-c28efec6478d" alt=""></div>

After you zipped it upload it to Dropbox, get the download link and change **?dl=0** at the end of the link to **?dl=1**\
Put this link into the config.yml of ItemsAdder replacing the property custom\_url.\
Also set **use\_default** to false and **apply\_on\_join** to true

```yaml
use_default: false
custom_url: 'http://www.dropbox.com/s/.......zip?dl=1'
```

{% hint style="danger" %}
Important

Remember to upload the zip file to an hosting service that gives a direct download link, not a download link where you have to click "**Download file**" or something or Minecraft won't install the resourcepack correctly.\
Dropbox is good as you can set **?dl=1** to get a direct download.\
Also don't forget to change https to http.
{% endhint %}

{% hint style="warning" %}
If DropBox link is not working on Minecraft and you get error please use this website: <https://www.filesend.jp/l/en-US/>.\
\- Set 30days\
\- then after upload right click on download and copy link\
(You still need to change https to http in your url)\
\
Any website is good if it allows you to get a DIRECT download to resourcepack. If it gives you an url that leads to a download paga it won't work.
{% endhint %}

{% hint style="info" %}

## Multi-textures items

{% endhint %}

You'll surely notice some items have more than one texture/model, these items are:

* bows
* shields
* fishing rods

In order to create custom textures for your custom items of these particular types you have to create 2 or more .json files and .png files, you just have to take already created items as reference to create your items
