Skip to main content

Item component reference (1/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/ItemDefinition.md)

Item Definition Properties​

Properties are part of the Item Definition, which helps the system determine how to parse and initialize this item.

Item Description Properties​

format_version​

Specifies the version of the game this entity was made in. If the specified version is lower than the current version, any changes made to the entity in the vanilla version will be applied to it.

minecraft:item​

Item definition, which includes the "description" and "components" sections.

List of Properties​
NameDefault ValueTypeDescription
menu_category"items"The Creative Category that includes the specified item.
groupStringThe Creative Group that that includes the specified item. The group name is limited to 256 characters.
is_hidden_in_commandsBooleanDetermines whether or not this item can be used with commands. Commands can use items by default
Example​
{
"format_version": "1.20.20",
"minecraft:item": {
"description": {
"identifier": "minecraft:blaze_rod",
"menu_category": {
"group": "itemGroup.name.blaze",
"category": "equipment",
"is_hidden_in_commands": true
}
},
"components": {
"minecraft:fuel": {
"duration": 120.0
},
"minecraft:max_stack_size": 64,
"minecraft:icon": {
"texture": "blaze_rod"
},
"minecraft:hand_equipped": true,
"minecraft:display_name": {
"value": "Blaze Rod"
}
}
}
}

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

Item Components Documentation​

Item ComponentsDescription
minecraft:allow_off_handThe allow_off_hand component determines whether the item can be placed in the off hand slot of the inventory.
minecraft:block_placerSets the item as a placer item component for blocks.
minecraft:bundle_interactionEnables the bundle-specific interaction scheme and tooltip for an item.
minecraft:can_destroy_in_creativeThe can_destroy_in_creative component determines if the item can be used by a player to break blocks when in creative mode.
minecraft:compostableSpecifies that an item is compostable and provides the chance of creating a composting layer in the composter
minecraft:cooldownAdds a cooldown to an item, preventing it from being used again for a specified duration.
minecraft:damageThe damage component determines how much extra damage the item does on attack.
minecraft:damage_absorptionIt allows an item to absorb damage that would otherwise be dealt to its wearer.
minecraft:diggerConfigures an item as a digging tool, allowing it to break specific blocks faster than normal.
minecraft:display_nameSets the item display name within Minecraft: Bedrock Edition.
minecraft:durabilitySets how much damage the item can take before breaking, and allows the item to be combined at an anvil, grindstone, or crafting table.
minecraft:durability_sensorEnables an item to emit effects when it receives damage.
minecraft:durability_sensor durability_thresholdDefines both the durability threshold, and the effects emitted when that threshold is met.
minecraft:dyeableEnables players to dye this item using dyes in a crafting grid, like leather armor.
minecraft:enchantableDetermines what enchantments can be applied to the item.
minecraft:entity_placerAllows an item to place entities into the world.
minecraft:fire_resistantDetermines whether the item is immune to burning when dropped in fire or lava.
minecraft:foodSets the item as a food component, allowing it to be edible to the player.
minecraft:fuelAllows this item to be used as fuel in a furnace to 'cook' other items.
minecraft:glintDetermines whether the item has the enchanted glint render effect on it.
minecraft:hand_equippedThe hand_equipped component determines if an item is rendered like a tool while it is in a player's hand.
minecraft:hover_text_colorDetermines the color of the item name when hovering over it.
minecraft:iconDetermines the icon to represent the item in the UI and elsewhere.
minecraft:interact_buttonA boolean or string that determines if the interact button is shown in touch controls, and what text is displayed on the button.
minecraft:item v1.26.0Refers to the item definition, which includes the 'description' and 'components' sections of the file.
minecraft:item v1.21.90Item definition includes the "description" and "components" sections.
minecraft:item v1.26.0Item definition includes the "description" and "components" sections.
minecraft:kinetic_weaponAllows an item to deal kinetic damage and its effects.
minecraft:kinetic_weapon kinetic_effect_conditionsConditions that need to be satisfied for a specific effect of a kinetic weapon to be applied.
minecraft:liquid_clippedThe liquid_clipped component determines whether the item interacts with liquid blocks on use.
minecraft:max_stack_sizeDetermines how many of an item can be stacked together.
minecraft:piercing_weaponAllows an item to deal damage to all entities detected in a straight line along the user's view vector.
minecraft:projectileDefines an item as a projectile that can be shot from dispensers or used as ammunition with minecraft:shooter.
minecraft:raritySpecifies the base rarity and subsequently color of the item name when the player hovers the cursor over the item.
minecraft:recordUsed by record items to play music.
minecraft:repairableDefines the items that can be used to repair a defined item, and the amount of durability each item restores upon repair.
minecraft:seedSets the item as a seed that can be planted to grow crops.
minecraft:shooterCompels an item to shoot projectiles, similarly to a bow or crossbow.
minecraft:should_despawnShould_despawn component determines if the item should eventually despawn while floating in the world
minecraft:stacked_by_dataThe stacked_by_data component determines whether the same items with different aux values can stack.
minecraft:storage_itemEnables an item to store data of the dynamic container associated with it.
minecraft:storage_weight_limitSpecifies the maximum weight limit that a storage item can hold
minecraft:storage_weight_modifierSpecifies the maximum weight limit that a storage item can hold
minecraft:swing_durationDuration, in seconds, of the item's swing animation played when mining or attacking.
minecraft:swing_soundsOverrides the swing sounds emitted by the user.
minecraft:tagsDetermines which tags are included on a given item
minecraft:throwableMakes an item throwable by the player, similar to a snowball or ender pearl.
minecraft:use_animationUse_animation specifies which animation is played when the player uses the item.
minecraft:use_modifiersDetermines how long an item takes to use in combination with components such as Shooter, Throwable, or Food.
minecraft:wearableSets the wearable item component, which allows an item to be worn by a player in a specified equipment slot.

Internal/Deprecated Components​

These components are either deprecated or internal to Minecraft and not usable in custom content.

Item ComponentsDescription
chargeableEvent trigger for when the item has completed its use duration.
custom_componentsSpecifies an array of custom components defined in a script that should be added to this item.
render_offsetsRender offsets component: optional values can be given to offset the way the item is rendered.
use_durationThis component determines how long the item takes to use when used in combination with components like "shooter", "throwable", or "food".
weaponDeprecated weapon item component.

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

Custom Item Use Priority​

When using a custom item, there is a defined priority to how behaviors occur.

  • use on behaviors: First, minecraft:entity_placer tries to place entities; next, minecraft:block_placer tries to place blocks.
  • use behaviors: Components with set 'use' behaviors are initiated, such as minecraft:food, minecraft:wearable, minecraft:shooter, and minecraft:throwable.

Certain components have a 'dispensed' behavior. For these items, first minecraft:projectile attempts to shoot from the dispenser, and then minecraft:entity_placer tries to spawn entities.

[!NOTE] Unexpected behavior may occur when items attempt to initiate multiple component behaviors.

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

Item Documentation - description​

description is a list of characters representing an item. The description MUST contain an identifier; other fields are optional.

Parameters​

NameDefault ValueTypeDescription
identifiernot setStringThe identifier for this item; must include a namespace. The 'Minecraft' namespace must not be used, unless overriding a Vanilla item.
menu_categorynot setJSON objectThe creative group name and category for this item.

The menu_category parameter details the creative group name and category for an item, and has three parameters of its own:

NameDefault ValueTypeDescription
categoryitemsStringThe creative category that this item belongs to. Options include "construction", "nature", "equipment", "items", and "none"
group--EnumeratorThe creative group that this item belongs to. Group name is limited to 256 characters.
is_hidden_in_commands--BooleanDetermines whether or not this item can be used with commands. Commands can use items by default.
group​

Here are the following item groups that can be set for the value of group.

  • itemGroup.name.anvil
  • itemGroup.name.arrow
  • itemGroup.name.axe
  • itemGroup.name.banner
  • itemGroup.name.banner_pattern
  • itemGroup.name.beacon
  • itemGroup.name.bed
  • itemGroup.name.bell
  • itemGroup.name.boat
  • itemGroup.name.boots
  • itemGroup.name.brick
  • itemGroup.name.buttons
  • itemGroup.name.cactus
  • itemGroup.name.camera
  • itemGroup.name.candles
  • itemGroup.name.chemistrytable
  • itemGroup.name.chest
  • itemGroup.name.chestboat
  • itemGroup.name.chestplate
  • itemGroup.name.chiseledBookshelf
  • itemGroup.name.clay
  • itemGroup.name.climbing
  • itemGroup.name.cobblestone
  • itemGroup.name.composter
  • itemGroup.name.compounds
  • itemGroup.name.concrete
  • itemGroup.name.concretePowder
  • itemGroup.name.constructionMisc
  • itemGroup.name.cookedFood
  • itemGroup.name.copper
  • itemGroup.name.coral
  • itemGroup.name.coral_decorations
  • itemGroup.name.craftingTables
  • itemGroup.name.crop
  • itemGroup.name.door
  • itemGroup.name.dirt
  • itemGroup.name.dye
  • itemGroup.name.eggBlocks
  • itemGroup.name.element
  • itemGroup.name.enchantedBook
  • itemGroup.name.enchantingTable
  • itemGroup.name.endPortalFrame
  • itemGroup.name.endRod
  • itemGroup.name.fence
  • itemGroup.name.fenceGate
  • itemGroup.name.fireworkStars
  • itemGroup.name.firework
  • itemGroup.name.flower
  • itemGroup.name.furnaces
  • itemGroup.name.goatHorn
  • itemGroup.name.glassPane
  • itemGroup.name.glass
  • itemGroup.name.glazedTerracotta
  • itemGroup.name.glowstone
  • itemGroup.name.grass
  • itemGroup.name.gravel
  • itemGroup.name.greenery
  • itemGroup.name.grindStone
  • itemGroup.name.hanging_sign
  • itemGroup.name.helmet
  • itemGroup.name.hoe
  • itemGroup.name.horseArmor
  • itemGroup.name.ice
  • itemGroup.name.ironFence
  • itemGroup.name.leaves
  • itemGroup.name.lectern
  • itemGroup.name.leggings
  • itemGroup.name.lights
  • itemGroup.name.lingeringPotion
  • itemGroup.name.log
  • itemGroup.name.minecart
  • itemGroup.name.miscFood
  • itemGroup.name.mobEgg
  • itemGroup.name.monsterStoneEgg
  • itemGroup.name.mushroom
  • itemGroup.name.musicBlocks
  • itemGroup.name.natureBuildingBlocks
  • itemGroup.name.natureMisc
  • itemGroup.name.ore
  • itemGroup.name.oreBlocks
  • itemGroup.name.permission
  • itemGroup.name.pickaxe
  • itemGroup.name.pistons
  • itemGroup.name.potion
  • itemGroup.name.potterySherds
  • itemGroup.name.planks
  • itemGroup.name.pressurePlate
  • itemGroup.name.products
  • itemGroup.name.pumpkins
  • itemGroup.name.purpur
  • itemGroup.name.rail
  • itemGroup.name.rawFood
  • itemGroup.name.record
  • itemGroup.name.redstone
  • itemGroup.name.redstoneContainers
  • itemGroup.name.redstoneProducers
  • itemGroup.name.sand
  • itemGroup.name.sandstone
  • itemGroup.name.sapling
  • itemGroup.name.sculk
  • itemGroup.name.seed
  • itemGroup.name.shovel
  • itemGroup.name.shulkerBox
  • itemGroup.name.sign
  • itemGroup.name.skull
  • itemGroup.name.slab
  • itemGroup.name.smithing_templates
  • itemGroup.name.splashPotion
  • itemGroup.name.stairs
  • itemGroup.name.stainedClay
  • itemGroup.name.stone
  • itemGroup.name.stoneBrick
  • itemGroup.name.sword
  • itemGroup.name.tnt
  • itemGroup.name.torch
  • itemGroup.name.trapdoor
  • itemGroup.name.walls
  • itemGroup.name.wood
  • itemGroup.name.wool
  • itemGroup.name.woolCarpet
Example​
{
"format_version": "1.20.20",
"minecraft:item": {
"description": {
"identifier": "minecraft:blaze_rod",
"menu_category": {
"group": "itemGroup.name.blaze",
"category": "equipment",
"is_hidden_in_commands": true
}
},
"components": {
"minecraft:fuel": {
"duration": 120.0
},
"minecraft:max_stack_size": 64,
"minecraft:icon": {
"texture": "blaze_rod"
},
"minecraft:hand_equipped": true,
"minecraft:display_name": {
"value": "Blaze Rod"
}
}
}
}

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

Items Documentation - minecraft:allow_off_hand​

The allow_off_hand component determines whether the item can be placed in the off hand slot of the inventory.

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

Alternate Simple Representations​

This item can also be represented as a Boolean true/false.

Allow Off Hand Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseDetermines whether the item can be placed in the off hand slot.

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

Items Documentation - minecraft:block_placer​

Sets the item as a placer item component for blocks. Items with this component will place a block when used.

[!Note] This component can also be used instead of the minecraft:icon component to render the block this item will place as the icon.

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

Item Block Placer Properties​

NameDefault ValueTypeDescriptionExample Values
aligned_placementfalseBoolean true/falseWhen true, block placement through this item is aligned while the interaction button is held down.
blocknot setStringDefines the block that will be placed.Ice Crystal: "minecraft:ice_crystal", Icicle: "minecraft:icicle", Red Shrub: "minecraft:red_shrub"
replace_block_itemfalseBoolean true/falseIf true, the item will be registered as the item for this block.Ice Crystal: true
use_on (Use On)[]Array of Use On itemsList of block descriptors of the blocks that this item can be used on. If left empty, all blocks will be allowed. Value must have at most 256 items.
use_on (as String)not setString
use_on (as Object)not setObject
aligned_placement​

When true, block placement through this item is aligned while the interaction button is held down. Supported from format_version 1.26.0 onward. This item requires a format version of at least 1.26.10.

replace_block_item​

If true, the item will be registered as the item for this block. This item will be returned by default when the block is broken/picked. Note: the identifier for this item must match the block's identifier for this field to be valid. Defaults to false.

Use On​

Use On Properties​

JSON path: use_on

NameDefault ValueTypeDescription
nameString
states{}Integer number
states (as String)not setString
states (as Boolean true/false)not setBoolean true/false
tagsString

Samples​

"minecraft:block_placer": {
"block": "seeds",
"use_on": [
"dirt",
"grass"
],
"replace_block_item": true
}

Ice Crystal​

"minecraft:block_placer": {
"block": "minecraft:ice_crystal",
"replace_block_item": true
}

Icicle​

"minecraft:block_placer": {
"block": "minecraft:icicle",
"replace_block_item": true
}

Red Shrub​

"minecraft:block_placer": {
"block": "minecraft:red_shrub",
"replace_block_item": true
}

Shelf Mushroom​

"minecraft:block_placer": {
"block": "minecraft:shelf_mushroom",
"replace_block_item": true
}

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

Items Documentation - minecraft:bundle_interaction​

Enables the bundle-specific interaction scheme and tooltip for an item.

[!Note] To use this component, the item must have a minecraft:storage_item item component defined.

[!Note] In /textures/textures_list.json, the following code needs to be added for an item named my_custom_bundle: [ '<resource pack>/textures/items/my_custom_bundle.png', '<resource pack>/textures/items/my_custom_bundle_open_front.png','<resource pack>/textures/items/my_custom_bundle_open_back.png']. The respective icon textures would need to be added: my_custom_bundle.png, my_custom_bundle_open_front.png, my_custom_bundle_open_back.png. Note that it's important that the filenames are the item name, plus _open_front and _open_back respectively.

[!Note] Available without experimental toggle in 1.21.110.

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

Item Bundle Interaction Properties​

NameDefault ValueTypeDescriptionExample Values
num_viewable_slots12Integer numberThe maximum number of slots in the bundle viewable by the plater. Can be from 1 to 64. Default is 12. Value must be >= 1. Value must be <= 64.Black Bundle: 12

Samples​

"minecraft:bundle_interaction": {
"format_version": "1.21.30",
"minecraft:item": {
"description": {
"identifier": "minecraft:bundle"
},
"components": {
"minecraft:icon": {
"textures": {
"default": "bundle"
}
},
"minecraft:max_stack_size": 1,
"minecraft:storage_item": {
"max_slots": 64,
"max_weight_limit": 64,
"weight_in_storage_item": 4,
"allow_nested_storage_items": true,
"banned_items": [
"minecraft:shulker_box"
]
},
"minecraft:bundle_interaction": {
"num_viewable_slots": 8
}
}
}
}

Black Bundle​

"minecraft:bundle_interaction": {
"num_viewable_slots": 12
}

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

Items Documentation - minecraft:can_destroy_in_creative​

The can_destroy_in_creative component determines if the item can be used by a player to break blocks when in creative mode.

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

Alternate Simple Representations​

This item can also be represented as a Boolean true/false.

Can Destroy In Creative Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseDetermines whether the item can be used to destroy blocks while in creative mode.
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13