Skip to main content

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

Items Documentation - minecraft:chargeable​

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Event trigger for when the item has completed its use duration.

[!Note] Released without an experimental toggle in 1.20.30; renamed to minecraft:use_modifiers in 1.20.50.

[!Note] This item no longer works after format versions of at least 1.20.50.

This item requires a format version of at least 1.20.30.

Chargeable Properties​

NameDefault ValueTypeDescription
movement_modifiernot setDecimal numberModifier value to scale the players movement speed when item is in use.
on_completenot setObjectEvent trigger for when the item has completed its use duration.

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

Items Documentation - minecraft:compostable​

Specifies that an item is compostable and provides the chance of creating a composting layer in the composter.

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

Item Compostable Properties​

NameDefault ValueTypeDescriptionExample Values
composting_chancenot setInteger numberThe chance of this item to create a layer upon composting with the composter. Valid value range is 1 - 100 inclusive Value must be >= 1. Value must be <= 100.Red Shrub: 30, Shelf Mushroom: 65

Samples​

Red Shrub​

"minecraft:compostable": {
"composting_chance": 30
}

Shelf Mushroom​

"minecraft:compostable": {
"composting_chance": 65
}

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

Items Documentation - minecraft:cooldown​

Adds a cooldown to an item, preventing it from being used again for a specified duration. Items sharing the same category will enter cooldown together when any one of them is used.

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

Item Cooldown Properties​

NameDefault ValueTypeDescription
categorynot setStringA string identifier that groups items together. When an item with a cooldown is used, all items sharing the same category also enter cooldown.
durationnot setDecimal numberThe duration of time in seconds that items with the matching category will spend cooling down before becoming usable again.
typeuseType choicesThe type of action that triggers the cooldown. Use 'use' for items consumed on use, or 'attack' for weapons. Default is 'use'. This item requires a format version of at least 1.21.130.
Type choices​
ValueTitleDescription
attackAttack
useUse

Samples​

"minecraft:cooldown": {
"category": "attack",
"duration": 0.2
}

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

Items Documentation - minecraft:custom_components​

[!IMPORTANT] This type is now deprecated, and no longer in use in the latest versions of Minecraft.

Specifies an array of custom components defined in a script that should be added to this item.

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

Items Documentation - minecraft:damage​

The damage component determines how much extra damage the item does on attack.

[!Note] From 1.26.0 onward, value supports the full int16 range of 0 to 32767.

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

Alternate Simple Representations​

This item can also be represented as a Integer number.

Damage Properties​

NameDefault ValueTypeDescription
valuenot setInteger numberThe amount of extra damage this item deals when attacking. This value is added to the base attack damage. Must be a positive integer.

Samples​

"minecraft:damage": {
"minecraft:damage": 2
}

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

Items Documentation - minecraft:damage_absorption​

It allows an item to absorb damage that would otherwise be dealt to its wearer. For this to happen, the item needs to be equipped in an armor slot. The absorbed damage reduces the item's durability, with any excess damage being ignored. Because of this, the item also needs a minecraft:durability component.

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

Item Damage Absorption Properties​

NameDefault ValueTypeDescription
absorbable_causesnot setArray of stringsList of damage causes that can be absorbed by the item. By default, no damage cause is absorbed. Value must have at least 1 items.

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

Items Documentation - minecraft:digger​

Configures an item as a digging tool, allowing it to break specific blocks faster than normal. Define which blocks are affected and the speed multiplier for each.

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

Item Digger Properties​

NameDefault ValueTypeDescription
destroy_speeds[]Array of Destroy Speeds itemsAn array of objects that define which blocks this item can dig and at what speed. Each entry specifies a block (by ID or tag query) and a speed multiplier.
use_efficiencyfalseBoolean true/falseWhen true, the Efficiency enchantment will increase the dig speed of this item. Default is false.
Item BlockInfo​

Associates a block type with a custom digging speed multiplier for the minecraft:digger component. Map blocks to speed values so pickaxes mine stone quickly, axes chop wood faster, and custom tools excel at specific materials. Enables tool specialization matching vanilla Minecraft conventions.

Item BlockInfo Properties​

JSON path: destroy_speeds

NameDefault ValueTypeDescription
block (Block)not setBlock itemBlock to be dug.
block (as String)not setString
block (Alternate 2)not setObject
speednot setInteger numberDigging speed for the correlating block(s).

Block​

Block Properties​

JSON path: destroy_speeds > block

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

Samples​

"minecraft:digger": {
"minecraft:digger": {
"use_efficiency": true,
"destroy_speeds": [
{
"speed": 6,
"block": {
"tags": "query.any_tag( 'wood' )"
}
},
{
"block": "minecraft:coal_ore",
"speed": 2
}
]
}
}

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

Items Documentation - minecraft:display_name​

Sets the item display name within Minecraft: Bedrock Edition. This component may also be used to pull from the localization file by referencing a key from it.

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

Item Display Name Properties​

NameDefault ValueTypeDescriptionExample Values
valueStringName shown for an item.Apple: "item.apple.name", Breeze Rod: "item.breeze_rod.name", Ice Ball: "item.ice_ball.name"

Samples​

At sample:

"minecraft:display_name": {
"value": "secret_weapon"
}

At sample with localication key:

"minecraft:display_name": {
"value": "item.snowball.name"
}

Apple​

"minecraft:display_name": {
"value": "item.apple.name"
}

Breeze Rod​

"minecraft:display_name": {
"value": "item.breeze_rod.name"
}

Ice Ball​

"minecraft:display_name": {
"value": "item.ice_ball.name"
}

Ice Crystal​

"minecraft:display_name": {
"value": "tile.ice_crystal.name"
}

Icicle​

"minecraft:display_name": {
"value": "tile.icicle.name"
}

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

Items Documentation - minecraft:durability​

Sets how much damage the item can take before breaking, and allows the item to be combined at an anvil, grindstone, or crafting table.

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

Item Durability Properties​

NameDefault ValueTypeDescription
damage_chance{"max":100,"min":100}Damage Chance itemSpecifies the percentage chance of this item losing durability.
max_durabilitynot setInteger numberMax durability is the amount of damage that this item can take before breaking. This is a required parameter and has a minimum of 0.
damage_chance​

Specifies the percentage chance of this item losing durability. Default is set to 100. Defined as an int range with min and max value. Check that the limits imposed on the range (minimum, maximum and maximum distance between values) are respected.

Block IntRange​

Block IntRange Properties​

JSON path: damage_chance

NameDefault ValueTypeDescription
max0Integer number
min0Integer number

Samples​

"minecraft:durability": {
"damage_chance": {
"min": 10,
"max": 50
},
"max_durability": 36
}

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

Items Documentation - minecraft:durability_sensor​

Enables an item to emit effects when it receives damage. Because of this, the item also needs a minecraft:durability component.

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

Item Durability Sensor Properties​

NameDefault ValueTypeDescription
durability_thresholdsnot setArray of Durability Thresholds itemsThe list of both durability thresholds and effects emitted when each threshold is met.
sound_eventnot setStringSound effect to emit when the threshold is met.
durability_thresholds​

The list of both durability thresholds and effects emitted when each threshold is met. When multiple thresholds are met, only the threshold with the lowest durability after applying the damage is considered. Value must have at least 1 items.

Item Durability Sensor Durability Threshold​

Defines both the durability threshold, and the effects emitted when that threshold is met.

Item Durability Sensor Durability Threshold Properties​

JSON path: durability_thresholds

NameDefault ValueTypeDescription
durability0Integer numberThe effects are emitted when the item durability value is less than or equal to this value.
particle_typenoneParticle Type choicesParticle effect to emit when the threshold is met.
sound_eventStringSound effect to emit when the threshold is met.
Particle Type choices​
ValueTitleDescription
balloongasBalloongas
bleachBleach
blockforcefieldBlockforcefield
blueflameBlueflame
breezewindexplosionBreezewindexplosion
bubbleBubble
bubblecolumndownBubblecolumndown
bubblecolumnupBubblecolumnup
bubblemanualBubblemanual
campfiresmokeCampfiresmoke
campfiresmoketallCampfiresmoketall
candleflameCandleflame
carrotboostCarrotboost
coloredflameColoredflame
conduitConduit
creakingcrumbleCreakingcrumble
critCrit
dragonbreathDragonbreath
dragonbreathfireDragonbreathfire
dragonbreathtrailDragonbreathtrail
dragondestroyblockDragondestroyblock
driphoneyDriphoney
driplavaDriplava
dripwaterDripwater
dustplumeDustplume
electricsparkElectricspark
enchantingtableEnchantingtable
endrodEndrod
evaporationEvaporation
explodeExplode
eyeblossomcloseEyeblossomclose
eyeblossomopenEyeblossomopen
fallingborderdustFallingborderdust
fallingdustFallingdust
fireworksFireworks
fireworksoverlayFireworksoverlay
fireworksstarterFireworksstarter
flameFlame
foodFood
greenflameGreenflame
heartHeart
hugeexplosionHugeexplosion
iceballbreakIceballbreak
iconcrackIconcrack
inkInk
largeexplodeLargeexplode
largesmokeLargesmoke
lavaLava
mobappearanceMobappearance
mobflameMobflame
mobspellMobspell
mobspellambientMobspellambient
mobspellinstantaneousMobspellinstantaneous
myceliumdustMyceliumdust
noneNone
noteNote
obsidiantearObsidiantear
orangepoplarleavesOrangepoplarleaves
paleoakleavesPaleoakleaves
pausemobgrowthPausemobgrowth
portalPortal
portalreversePortalreverse
rainsplashRainsplash
reddustReddust
redpoplarleavesRedpoplarleaves
resetmobgrowthResetmobgrowth
risingborderdustRisingborderdust
sculksoulSculksoul
shriekShriek
shulkerbulletShulkerbullet
slimeSlime
smokeSmoke
sneezeSneeze
snowballpoofSnowballpoof
snowflakeSnowflake
sonicexplosionSonicexplosion
soulSoul
sparklerSparkler
spitSpit
stalactitedriplavaStalactitedriplava
stalactitedripwaterStalactitedripwater
sulfurcubeSulfurcube
terrainTerrain
totemTotem
townauraTownaura
trackingemitterTrackingemitter
vaultconnectionVaultconnection
villagerangryVillagerangry
villagerhappyVillagerhappy
watersplashWatersplash
watersplashmanualWatersplashmanual
waterwakeWaterwake
waxWax
whitesmokeWhitesmoke
windexplosionWindexplosion
witchspellWitchspell
wolfarmorcrackWolfarmorcrack
yellowpoplarleavesYellowpoplarleaves
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13