跳转至

minecraft:icon

文档版本:1.21.0.24

Icon item component determines which icon graphic will be used to represent the item in the UI and elsewhere.

架构

minecraft:icon:
string
minecraft:icon:
{
  string "texture" : opt
  object "textures" : opt
  {
    object "textures" : opt
    {
      string "default" : opt
      string "<any object property>" : opt
    }
  }
}
texturestring
The key from the resource_pack/textures/item_texture.json 'texture_data' object associated with the texture file.
texturesobject
This map contains the different textures that can be used for the item's icon. Default will contain the actual icon texture. Armor trim textures and palettes can be specified here too. The icon textures are the keys from the resource_pack/textures/item_texture.json 'texture_data' object associated with the texture file.
textures
texturesobject
This map contains the different textures that can be used for the item's icon. Default will contain the actual icon texture. Armor trim textures and palettes can be specified here too. The icon textures are the keys from the resource_pack/textures/item_texture.json 'texture_data' object associated with the texture file.
textures
defaultstring
The key from the resource_pack/textures/item_texture.json 'texture_data' object associated with the texture file.
<any object property>string