1. Wiki
  2. /Items
  3. /minecraft:icon

minecraft:icon

Don't want to write this by hand? GodCraft sets minecraft:icon for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
texturesobjectnoneTexture 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": {}
  }
}

Items: Behavior pack

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