1. Wiki
  2. /Items
  3. /Item textures and names

Item textures and names

The resource pack side of a custom item: item_texture.json, the icon component, and the name in en_US.lang.

A custom item lives in two packs. The behavior pack says what it does. The resource pack says what it looks like and what it is called. This page covers the resource pack side.

The files

Resource pack
RP/
  textures/
    item_texture.json
    items/
      ruby.png
  texts/
    en_US.lang

Step 1: the picture

Save a square PNG, usually 16x16, in RP/textures/items/. Keep the background transparent.

Step 2: give it a short name

item_texture.json maps a short name to the PNG. The item file only ever uses the short name.

RP/textures/item_texture.json
{
  "resource_pack_name": "My Ruby Add-on",
  "texture_name": "atlas.items",
  "texture_data": {
    "ruby": {
      "textures": "textures/items/ruby"
    }
  }
}

Leave out the .png at the end of the path. Add one entry per item to the same file.

Step 3: point the item at it

In the behavior pack item, the minecraft:icon component uses the short name:

BP/items/ruby.json
"minecraft:icon": "ruby"

Step 4: the name

The game shows the item's id until you give it a name. Add a line to the language file:

RP/texts/en_US.lang
item.wiki:ruby=Ruby

You can also skip the language file and set minecraft:display_name in the item itself. The language file is better if you want to translate the add-on later.

Purple and black icon

The short name in minecraft:icon does not match any key in item_texture.json, or the path in textures is wrong. Check the spelling and that the path has no .png.

3D held items

A flat icon is enough for most items. To hold a 3D model in hand or wear one, the resource pack also needs an attachable.

Items: Resource pack

Item textures and names ·Attachables

We use cookies to improve your experience and analyse site traffic. Learn more