minecraft:icon

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

Properties

Can be written as a single value: text.

PropertyTypeDefaultWhat it does
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 and bundle open textures 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.

Example from the game files

This is how vanilla light_blue_bundle uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:icon": {
    "textures": {
      "default": "bundle_light_blue",
      "bundle_open_back": "bundle_light_blue_open_back",
      "bundle_open_front": "bundle_light_blue_open_front"
    }
  }
}

Used by 30

Vanilla items with minecraft:icon in their definition:

appleblack_bundleblue_bundlebreeze_rodbrown_bundlebundlecopper_spearcyan_bundlediamond_speargolden_speargray_bundlegreen_bundleiron_spearlight_blue_bundlelight_gray_bundlelime_bundlemagenta_bundlenetherite_spearominous_trial_keyorange_bundlepink_bundlepurple_bundlered_bundlered_shrubstone_speartrial_keywhite_bundlewind_chargewooden_spearyellow_bundle

Set it without writing JSON

The item maker writes this component for you from a form and puts it in a ready-to-import .mcaddon.

Open the maker

Related components