Skip to main content

Item component reference (4/11)

This page excerpts the reference from MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). Relative links in the original are removed.

(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_icon.md)

Items Documentation - minecraft:icon​

Determines the icon to represent the item in the UI and elsewhere.

[!Note] This item requires a format version of at least 1.20.0.

Alternate Simple Representations​

This item can also be represented as a String.

Icon Properties​

NameDefault ValueTypeDescriptionExample Values
texturesnot setTextures itemThis map contains the different textures that can be used for the item's icon.Black Bundle: {"default":"bundle_black"}, Blue Bundle: {"default":"bundle_blue"}, Brown Bundle: {"default":"bundle_brown"}
texturenot setStringDeprecated - no longer in use. This contains a single texture for the items icon.Apple: "apple", Breeze Rod: "breeze_rod", Ominous Trial Key: "ominous_trial_key"
textures​

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 as well. The icon textures are the keys from the resource_pack/textures/item_texture.json 'texture_data' object associated with the texture file.

Textures​

Textures Properties​

JSON path: textures

NameDefault ValueTypeDescriptionExample Values
defaultnot setStringBlack Bundle: "bundle_black"

Samples​

"minecraft:icon": "oak_slab"

Apple​

"minecraft:icon": {
"texture": "apple"
}

Black Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_black"
}
}

Blue Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_blue"
}
}

Breeze Rod​

"minecraft:icon": {
"texture": "breeze_rod"
}

Brown Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_brown"
}
}

Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle"
}
}

Cyan Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_cyan"
}
}

Gray Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_gray"
}
}

Green Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_green"
}
}

Light Blue Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_light_blue"
}
}

Light Gray Bundle​

"minecraft:icon": {
"textures": {
"default": "bundle_light_gray"
}
}

(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_interact_button.md)

Items Documentation - minecraft:interact_button​

A boolean or string that determines if the interact button is shown in touch controls, and what text is displayed on the button. When set to 'true', the default 'Use Item' text will be used.

Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13