跳转至

Icon

文档版本:1.21.50.25

The icon item componenent determines the icon to represent the item in the UI and elsewhere.

架构

minecraft:icon:
string
minecraft:icon:
{
  object "textures" : opt
  {
    string "default" : opt
    string "<any object property>" : opt
  }
}
texturesobject
Contains key-value pairs of textures used by the item
textures
defaultstring
The key from the resource_pack/textures/item_texture.json texture_data object associated with the texture file Example: blaze_powder.
<any object property>string
The key from the resource_pack/textures/item_texture.json texture_data object associated with the texture file Example: blaze_powder.