Item component reference (10/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_render_offsets.md)
Items Documentation - minecraft:render_offsets
[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.
Render offsets component: optional values can be given to offset the way the item is rendered.
Render Offsets Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| main_hand | not set | Object | Main hand transform data. |
| off_hand | not set | Object | Offhand hand transform data. |
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_repairable.md)
Items Documentation - minecraft:repairable
Defines the items that can be used to repair a defined item, and the amount of durability each item restores upon repair. Each entry needs to define a list of strings for 'items' that can be used for the repair and an optional 'repair_amount' for how much durability is repaired.
[!Note] This item requires a format version of at least 1.20.10.
Item Repairable Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| repair_items | [] | String | List of repair item entries. Each entry needs to define a list of strings for items that can be used for the repair and an optional repair_amount for how much durability is gained. |
| repair_items (Repair Items) | not set | Repair Items (Repair Items) item |
Repair Items (Repair Items)
Repair Items Properties
JSON path: repair_items
| Name | Default Value | Type | Description |
|---|---|---|---|
| items | not set | String | Items that may be used to repair an item. |
| items (as Keyed set of strings) | not set | Keyed set of strings | |
| repair_amount | Keyed set of strings | How much the item is repaired. | |
| repair_amount (as Named set of objects) | not set | Key/item pairs of Repair Amount (Legacy Molang Expression) items | |
| repair_amount (as Decimal number) | not set | Decimal number |
Legacy Molang Expression
Legacy Molang Expression Properties
JSON path: repair_items > repair_amount
| Name | Default Value | Type | Description |
|---|---|---|---|
| expression | not set | String | |
| version | not set | Integer number |
Samples
"minecraft:repairable": {
"on_repaired": "minecraft:celebrate",
"repair_items": [
"anvil"
]
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_seed.md)
Items Documentation - minecraft:seed
Sets the item as a seed that can be planted to grow crops. When used on valid ground, the seed will place the specified crop block.
[!Note] This item requires a format version of at least 1.10.0.
Seed Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| crop_result | not set | String | The block identifier that will be placed when the seed is planted (e.g., 'wheat', 'beetroot', 'cave_vines'). | Beetroot Seeds: "beetroot", Glow Berries: "cave_vines" |
| plant_at | not set | Array of strings | Array of block identifiers that this seed can be planted on or attached to. If not specified, standard farmland rules apply. | Glow Berries: ["cave_vines","cave_vines_head_with_berries"] |
| plant_at_any_solid_surface | false | Boolean true/false | Deprecated - no longer in use. | Glow Berries: true |
| plant_at_face | not set | (deprecated) Plant At Face choices | Deprecated - no longer in use. | Glow Berries: "DOWN" |
plant_at_any_solid_surface
Deprecated - no longer in use. If true, the seed can be planted on any solid surface, not just farmland or specified blocks. This property was deprecated and removed in versions after 1.18. This property no longer works after format versions of at least 1.19.0. This item requires a format version of at least 1.16.0. This property was available in versions 1.16.0 through 1.18.x for items like glow berries, but has been removed in later versions.
plant_at_face
Deprecated - no longer in use. The face of a block where this seed can be planted. Values: 'UP' for top of blocks (normal crops), 'DOWN' for bottom (hanging plants like glow berries). This property was deprecated and removed in versions after 1.18. This property no longer works after format versions of at least 1.19.0. This item requires a format version of at least 1.16.0. This property was available in versions 1.16.0 through 1.18.x for items like glow berries, but has been removed in later versions.
(deprecated) Plant At Face choices
| Value | Title | Description |
|---|---|---|
| UP | UP | |
| DOWN | DOWN | |
| NORTH | NORTH | |
| SOUTH | SOUTH | |
| EAST | EAST | |
| WEST | WEST |
Samples
Beetroot Seeds
"minecraft:seed": {
"crop_result": "beetroot"
}
Glow Berries
"minecraft:seed": {
"crop_result": "cave_vines",
"plant_at": [
"cave_vines",
"cave_vines_head_with_berries"
],
"plant_at_any_solid_surface": true,
"plant_at_face": "DOWN"
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_shooter.md)
Items Documentation - minecraft:shooter
Compels an item to shoot projectiles, similarly to a bow or crossbow. Must have the minecraft:use_modifiers component in order to function properly.
[!Note] Ammunition used by minecraft:shooter must have the minecraft:projectile component in order to function properly.
[!Note] Items equipped with the shooter component will only sustain damage while shooting. Durability will remain unaffected if the item is used for melee attacks.
[!Note] This item requires a format version of at least 1.20.10.
[!Note] Requires the following component in order to work properly:
- Projectile (minecraft:projectile)
Item Shooter Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| ammunition | [] | Array of Ammunition items | A list of ammunition entries that define which items can be used as projectiles for this shooter. |
| charge_on_draw | false | Boolean true/false | When true, the shooter begins charging when the player starts drawing, similar to a crossbow. Default is false. |
| max_draw_duration | 0 | Decimal number | The maximum time in seconds that a player can draw the shooter before it automatically fires or reaches maximum power. Default is 0. |
| scale_power_by_draw_duration | false | Boolean true/false | When true, the projectile's launch power increases based on how long the player holds the use button before releasing. Default is false. |
ammunition
A list of ammunition entries that define which items can be used as projectiles for this shooter. Each entry specifies the item, whether to search the offhand, inventory, and whether to use in creative mode.
Item Ammunition
Configures this item as ammunition consumed by ranged weapons like bows and crossbows. Reference compatible shooter items and specify search behavior for inventory slots. When players use the associated weapon, this item is consumed and its projectile is launched.
Item Ammunition Properties
JSON path: ammunition
| Name | Default Value | Type | Description |
|---|---|---|---|
| item | not set | String | Ammunition item description identifier. |
| item (as Keyed set of strings) | not set | Keyed set of strings | |
| search_inventory | false | Boolean true/false | Can search inventory? Default is set to false. |
| use_in_creative | false | Boolean true/false | Can use in creative mode? Default is set to false. |
| use_offhand | false | Boolean true/false | Can use off-hand? Default is set to false. |
Samples
"minecraft:shooter": {
"ammunition": [
{
"item": "custom_projectile",
"use_offhand": true,
"search_inventory": true,
"use_in_creative": true
}
],
"max_draw_duration": 1,
"scale_power_by_draw_duration": true,
"charge_on_draw": false
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_should_despawn.md)
Items Documentation - minecraft:should_despawn
Should_despawn component determines if the item should eventually despawn while floating in the world.
[!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.
Should Despawn Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | not set | Boolean true/false | Determines whether the item should eventually despawn while floating in the world. |
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_stacked_by_data.md)
Items Documentation - minecraft:stacked_by_data
The stacked_by_data component determines whether the same items with different aux values can stack. Also defines whether the item entities can merge while floating in the world.
[!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.
Stacked By Data Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | not set | Boolean true/false | Determines whether the same item with different aux values can stack. Also defines whether the item entities can merge while floating in the world. |
Samples
AppleEnchanted
"minecraft:stacked_by_data": true
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_storage_item.md)
Items Documentation - minecraft:storage_item
Enables an item to store data of the dynamic container associated with it. A dynamic container is a container for storing items that is linked to an item instead of a block or an entity.
[!Note] While this component can be defined on its own, to be able to interact with the item's storage container the item must have a
minecraft:bundle_interactionitem component defined.
[!Note] Available without experimental toggle in 1.21.110.
[!Note] In 1.26.0, equipping an item with this component into an armor or hand slot no longer deletes the storage contents.
[!Note] This item requires a format version of at least 1.21.40.
Item Storage Item Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| allow_nested_storage_items | true | Boolean true/false | Determines whether another Storage Item is allowed inside of this item. Default is true. | Black Bundle: true |
| allowed_items | [] | String | List of items that are exclusively allowed in this Storage Item. If empty all items are allowed. | |
| allowed_items (as Keyed set of strings) | not set | Keyed set of strings | ||
| banned_items | [] | String | List of items that are not allowed in this Storage Item. | Black Bundle: ["minecraft:shulker_box","minecraft:undyed_shulker_box"] |
| banned_items (as Keyed set of strings) | not set | Keyed set of strings | ||
| max_slots | 64 | Integer number | The maximum allowed weight of the sum of all contained items. Maximum is 64. Default is 64. Value must be <= 64. | Black Bundle: 64 |
Samples
Black Bundle
"minecraft:storage_item": {
"max_slots": 64,
"allow_nested_storage_items": true,
"banned_items": [
"minecraft:shulker_box",
"minecraft:undyed_shulker_box"
]
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_storage_weight_limit.md)
Items Documentation - minecraft:storage_weight_limit
Specifies the maximum weight limit that a storage item can hold.
[!Note] Available without experimental toggle in 1.21.110.
[!Note] This item requires a format version of at least 1.21.110.
Item Storage Weight Limit Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| max_weight_limit | 64 | Integer number | The maximum allowed weight of the sum of all contained items. Maximum is 64. Default is 64. Value must be <= 64. | Black Bundle: 64 |
Samples
Black Bundle
"minecraft:storage_weight_limit": {
"max_weight_limit": 64
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_storage_weight_modifier.md)
Items Documentation - minecraft:storage_weight_modifier
Specifies the maximum weight limit that a storage item can hold.
[!Note] Available without experimental toggle in 1.21.110.
[!Note] This item requires a format version of at least 1.21.110.
Item Storage Weight Modifier Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| weight_in_storage_item | 4 | Integer number | The weight of this item when inside another Storage Item. Default is 4. 0 means item is not allowed in another Storage Item. | Black Bundle: 4 |
Samples
Black Bundle
"minecraft:storage_weight_modifier": {
"weight_in_storage_item": 4
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_swing_duration.md)
Items Documentation - minecraft:swing_duration
Duration, in seconds, of the item's swing animation played when mining or attacking. Affects visuals only and does not impact attack frequency or other gameplay mechanics.
[!Note] This item requires a format version of at least 1.21.120.
Item Swing Duration Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | 0.30000001192092896 | Decimal number | Duration, in seconds, of the item's swing animation played when mining or attacking. Affects visuals only and does not impact attack frequency or other gameplay mechanics. |
Samples
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_swing_sounds.md)
Items Documentation - minecraft:swing_sounds
Overrides the swing sounds emitted by the user. Each field accepts the name of any sound event defined in sound_definitions.json, including the built-in vanilla sound events.
[!Note] This item requires a format version of at least 1.21.130.
Item Swing Sounds Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| attack_critical_hit | not set | String | Sound played when an attack hits and deals critical damage. |
| attack_hit | not set | String | Sound played when an attack hits. |
| attack_miss | not set | String | Sound played when an attack misses or deals no damage due to invulnerability. |
Samples
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_tags.md)
Items Documentation - minecraft:tags
Determines which tags are included on a given item.
[!Note] This item requires a format version of at least 1.20.50.
Item Tags Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| tags | [] | Array of strings | An array that can contain multiple item tags. | Apple: ["minecraft:is_food"], Shelf Mushroom: ["minecraft:mushrooms_for_stew"] |
Samples
"minecraft:tags": {
"do_swing_animation": false,
"launch_power_scale": 1,
"max_draw_duration": 0,
"max_launch_power": 1,
"min_draw_duration": 0,
"scale_power_by_draw_duration": false
}
Apple
"minecraft:tags": {
"tags": [
"minecraft:is_food"
]
}
Shelf Mushroom
"minecraft:tags": {
"tags": [
"minecraft:mushrooms_for_stew"
]
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_throwable.md)
Items Documentation - minecraft:throwable
Makes an item throwable by the player, similar to a snowball or ender pearl. Use with minecraft:projectile to specify which entity is spawned when thrown.
[!Note] Combine with minecraft:projectile to define the projectile entity. For charged throws (like tridents), set scale_power_by_draw_duration to true and configure min/max draw durations.
[!Note] This item requires a format version of at least 1.20.10.
Item Throwable Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| do_swing_animation | false | Boolean true/false | Determines whether the item should use the swing animation when thrown. Default is set to false. | Ice Ball: true |
| launch_power_scale | 1 | Decimal number | The scale at which the power of the throw increases. Default is set to 1.0. | Wind Charge: 1.5 |
| max_draw_duration | 0 | Decimal number | The maximum duration to draw a throwable item. Default is set to 0.0. | |
| max_launch_power | 1 | Decimal number | The maximum power to launch the throwable item. Default is set to 1.0. | Wind Charge: 1.5 |
| min_draw_duration | 0 | Decimal number | The minimum duration to draw a throwable item. Default is set to 0.0. | |
| scale_power_by_draw_duration | false | Boolean true/false | Whether or not the power of the throw increases with duration charged. Default is set to false. |
Samples
Ice Ball
"minecraft:throwable": {
"do_swing_animation": true
}
Wind Charge
"minecraft:throwable": {
"do_swing_animation": true,
"launch_power_scale": 1.5,
"max_launch_power": 1.5
}
(Source: ms-learn, creator/Reference/Content/ItemReference/Examples/ItemComponents/minecraft_use_animation.md)
Items Documentation - minecraft:use_animation
Use_animation specifies which animation is played when the player uses the item.
[!Note] This item requires a format version of at least 1.20.30.
Alternate Simple Representations
This item can also be represented as a String.
Use Animation Properties
| Name | Default Value | Type | Description |
|---|---|---|---|
| value | not set | String | Specifies which animation to play when the item is used. |
Samples
Apple
"minecraft:use_animation": "eat"
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |