Overview
minecraft:icon is an item component: it goes in the components object of a custom item. Picks the picture used for the item in the inventory, hotbar and other menus.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
textures | object | none | Texture names for the icon, taken from item_texture.json in the resource pack. "default" is the main icon; extra keys can set things like armor trim or open bundle pictures. |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:icon": {
"textures": {}
}
}