Skip to main content

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

Items Documentation - minecraft:durability_sensor_durability_threshold​

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

Item Durability Sensor Durability Threshold Properties​

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

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

Items Documentation - minecraft:dyeable​

Enables players to dye this item using dyes in a crafting grid, like leather armor. Configure the default color when undyed. The item stores its color in NBT data and renders with the player-chosen tint, enabling customizable cosmetic appearances for armor and equipment.

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

Item Dyeable Properties​

NameDefault ValueTypeDescription
default_color[255, 255, 255]String
default_color (as Array of numbers)not setArray of numbers

Samples​

"minecraft:dyeable": {
"default_color": "#175882"
}

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

Items Documentation - minecraft:enchantable​

Determines what enchantments can be applied to the item. Not all enchantments will have an effect on all item components.

[!Note] The following enchantment slot types that can be set for the value of slot: sword, bow, pickaxe, armor_head, armor_torso, armor_legs, armor_feet.

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

Item Enchantable Properties​

NameDefault ValueTypeDescription
slotnot setStringSpecifies which types of enchantments can be applied.
valuenot setInteger numberSpecifies the value of the enchantment (minimum of 0).
slot​

Specifies which types of enchantments can be applied. For example, bow would allow this item to be enchanted as if it were a bow. Value must match a regular expression pattern of "none|all|g_armor|armor_head|armor_torso|armor_feet|armor_legs|sword|bow|spear|crossbow|melee_spear|g_tool|hoe|shears|flintsteel|shield|g_digging|axe|pickaxe|shovel|fishing_rod|carrot_stick|elytra|cosmetic_head".

Samples​

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

Items Documentation - minecraft:entity_placer​

Allows an item to place entities into the world. Additionally, in version 1.19.80 and above, the component allows the item to set the spawn type of a monster spawner.

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

Item Entity Placer Properties​

NameDefault ValueTypeDescription
dispense_on (Dispense On)[]Array of Dispense On itemsList of block descriptors of the blocks that this item can be dispensed on. If left empty, all blocks will be allowed.
dispense_on (as String)not setString
dispense_on (as Object)not setObject
entityStringThe entity to be placed in the world. Value must match a regular expression pattern of "^(?:\w+(?:.\w+):(?=\w))?(?:\w+(?:.\w+))(?:<((?:\w+(?:.\w+):(?=\w))?\w+(?:.\w+))*>)?$".
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.
use_on (as String)not setString
use_on (as Object)not setObject
Dispense On​

Dispense On Properties​

JSON path: dispense_on

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

Same structure as Dispense On.

Samples​

"minecraft:entity_placer": {
"entity": "minecraft:spider",
"dispense_on": [
"minecraft:web"
],
"use_on": [
"minecraft:web"
]
}

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

Items Documentation - minecraft:fire_resistant​

Determines whether the item is immune to burning when dropped in fire or lava.

Item Fire Resistant Properties​

NameDefault ValueTypeDescription
valuetrueBoolean true/falseDetermines whether the item is immune to burning when dropped in fire or lava.

Samples​

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

Items Documentation - minecraft:food​

Sets the item as a food component, allowing it to be edible to the player.

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

[!Note] Requires the following component in order to work properly:

  • Use Modifiers (minecraft:use_modifiers)

Item Food Properties​

NameDefault ValueTypeDescription
can_always_eatfalseBoolean true/falseIf true you can always eat this item (even when not hungry). Default is set to false.
nutrition0Integer numberValue that is added to the entity's nutrition when the item is used. Default is set to 0.
saturation_modifier0.6000000238418579Decimal numbersaturation_modifier is used in this formula: (nutrition * saturation_modifier * 2) when applying the saturation buff. Default is set to 0.6.
using_converts_to{}StringWhen used, converts to the item specified by the string in this field. Default does not convert item.
using_converts_to (as Keyed set of strings)not setKeyed set of strings
remove_effectsnot setArray of stringsDeprecated - no longer in use.
remove_effects​

Deprecated - no longer in use. Array of effect names to remove when eating this food. This property was deprecated and is no longer supported in newer versions. This property no longer works after format versions of at least 1.20.0. This property was available in versions 1.14 through 1.18 but has been removed in later versions.

Samples​

"minecraft:food": {
"can_always_eat": false,
"nutrition": 3,
"saturation_modifier": 0.6,
"using_converts_to": "bowl"
}

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

Items Documentation - minecraft:fuel​

Allows this item to be used as fuel in a furnace to 'cook' other items.

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

Alternate Simple Representations​

This item can also be represented as a Decimal number.

Fuel Properties​

NameDefault ValueTypeDescriptionExample Values
durationnot setDecimal numberHow long in seconds will this fuel cook items for. Value must be >= 0.05.My Sword Chuck: 3

Samples​

My Sword Chuck​

"minecraft:fuel": {
"duration": 3
}

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

Items Documentation - minecraft:glint​

Determines whether the item has the enchanted glint render effect on it.

[!Note] Renamed from foil and released without an experimental toggle in 1.20.30.

[!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.

Glint Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseWhether the item has the enchanted glint render effect.

Samples​

Item Depleted Gray Shard​

"minecraft:glint": true

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

Items Documentation - minecraft:hand_equipped​

The hand_equipped component determines if an item is rendered like a tool while it is in a player's hand.

[!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.

Hand Equipped Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseDetermines whether the item is rendered like a tool while in the player's hand.

Samples​

AppleEnchanted​

"minecraft:hand_equipped": false

Breeze Rod​

"minecraft:hand_equipped": true

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

Items Documentation - minecraft:hand_equippped​

Determines if an item is rendered like a tool while in-hand.

Item Properties​

NameDefault ValueTypeDescriptionExample Values
valuenot setBoolean true/falseDetermines if the item is rendered like a tool in-hand.

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

Items Documentation - minecraft:hover_text_color​

Determines the color of the item name when hovering over it.

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

Alternate Simple Representations​

This item can also be represented as a String.

Hover Text Color Properties​

NameDefault ValueTypeDescription
valuenot setStringThe color of the item hover text.
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13