Vivian’s Minecraft ToolsSMALL TOOLS. BIG ADVENTURES.

Components

This list covers item components in Java Edition 1.20.5 and later.

How to read the syntax

<…> marks a value to supply, [,…] marks an optional field, and | separates alternatives.

Numeric values are labeled with types such as int, long, float, and double. Boolean values use true or false.

minecraft:attack_animation

Sets the animation that plays when attacking with the item.

Syntax and examples by version

26.3+

Syntax

minecraft:attack_animation={type:"<animation type>",duration:<Non-negative integer (int)>}

Example (all fields)

minecraft:attack_animation={type:"stab",duration:12}
Values for attack_animation
FieldTypeAccepted formsExample values
type String Animation type. Optional. The default is "whack".
Animation types
ValueMeaning
"none"Play no attack animation.
"whack"Play the standard swing animation.
"stab"Play a thrust animation.
duration Integer (int) Animation length in ticks. Use a non-negative integer. Optional, with a default of 6 ticks. 12

In 26.3, the previous minecraft:swing_animation was split into minecraft:attack_animation and minecraft:interact_animation.

Official 26.3 release notes · Official 1.21.11 release notes

minecraft:attack_range

Sets the range of attacks made with the item. It overrides the player’s normal entity interaction reach for attacks and also affects mob attack range checks.

Syntax and examples by version

1.21.11+

Syntax

minecraft:attack_range={min_reach:<Number (float)>,max_reach:<Number (float)>,min_creative_reach:<Number (float)>,max_creative_reach:<Number (float)>,hitbox_margin:<Number (float)>,mob_factor:<Number (float)>}

Example (all fields)

minecraft:attack_range={min_reach:1.5,max_reach:5.0,min_creative_reach:0.0,max_creative_reach:6.0,hitbox_margin:0.25,mob_factor:1.0}
Values for attack_range
FieldTypeAccepted formsExample values
min_reach Number (float) Minimum reach in blocks outside Creative mode. Range: 0.0–64.0. Default: 0.0. 1.5
max_reach Number (float) Maximum reach in blocks outside Creative mode. Range: 0.0–64.0. Default: 3.0. 5.0
min_creative_reach Number (float) Minimum reach in blocks in Creative mode. Range: 0.0–64.0. Default: 0.0. 0.0
max_creative_reach Number (float) Maximum reach in blocks in Creative mode. Range: 0.0–64.0. Default: 5.0. 6.0
hitbox_margin Number (float) Margin applied to the target hitbox. Range: 0.0–1.0. Default: 0.3. 0.25
mob_factor Number (float) Multiplier on minimum and maximum reach for mobs. Range: 0.0–2.0. Default: 1.0. 1.0

Official 1.21.11 release notes

minecraft:attribute_modifiers

Changes attributes such as attack damage or movement speed while the item is equipped. The supplied list replaces the item’s default modifiers.

Syntax and examples by version

1.21.6+

Syntax

minecraft:attribute_modifiers=[{type:"<attribute ID>",id:"<modifier ID>",amount:<Number (double)>,operation:"<operation>"[,slot:"<slot>"][,display:<display settings>]}]

Example (all fields)

minecraft:attribute_modifiers=[{type:"minecraft:attack_damage",id:"example:bonus_damage",amount:3.0,operation:"add_value",slot:"mainhand",display:{type:"override",value:{text:"Bonus damage"}}}]
1.21.5

Syntax

minecraft:attribute_modifiers=[{type:"<attribute ID>",id:"<modifier ID>",amount:<Number (double)>,operation:"<operation>"[,slot:"<slot>"]}]

Example (all fields)

minecraft:attribute_modifiers=[{type:"minecraft:attack_damage",id:"example:bonus_damage",amount:3.0,operation:"add_value",slot:"mainhand"}]
1.21.2–1.21.4

Syntax

minecraft:attribute_modifiers={modifiers:[{type:"<attribute ID>",id:"<modifier ID>",amount:<Number (double)>,operation:"<operation>"[,slot:"<slot>"]}][,show_in_tooltip:<Boolean>]}

Example (all fields)

minecraft:attribute_modifiers={modifiers:[{type:"minecraft:attack_damage",id:"example:bonus_damage",amount:3.0,operation:"add_value",slot:"mainhand"}],show_in_tooltip:true}
1.21–1.21.1

Syntax

minecraft:attribute_modifiers={modifiers:[{type:"<legacy attribute ID>",id:"<modifier ID>",amount:<Number (double)>,operation:"<operation>"[,slot:"<slot>"]}][,show_in_tooltip:<Boolean>]}

Example (all fields)

minecraft:attribute_modifiers={modifiers:[{type:"minecraft:generic.attack_damage",id:"example:bonus_damage",amount:3.0,operation:"add_value",slot:"mainhand"}],show_in_tooltip:true}
1.20.5–1.20.6

Syntax

minecraft:attribute_modifiers={modifiers:[{type:"<legacy attribute ID>",uuid:[I;<Integer (int)>,<Integer (int)>,<Integer (int)>,<Integer (int)>],name:"<name>",amount:<Number (double)>,operation:"<operation>"[,slot:"<slot>"]}][,show_in_tooltip:<Boolean>]}

Example (all fields)

minecraft:attribute_modifiers={modifiers:[{type:"minecraft:generic.attack_damage",uuid:[I;1,2,3,4],name:"Bonus damage",amount:3.0,operation:"add_value",slot:"mainhand"}],show_in_tooltip:true}

Through 1.21.4, the direct list form is also supported when omitting the tooltip setting.

Values for attribute_modifiers
FieldTypeAccepted formsExample values
modifiersList of objectsHolds the list in the object form (through 1.21.4)[]
typeStringAttribute ID. From 1.21.2, omit the generic., player., and zombie. prefixes.List of attribute IDs
uuidInteger array (int)Four-integer UUID identifying the modifier (1.20.5–1.20.6)[I;1,2,3,4]
nameStringModifier name (1.20.5–1.20.6)"Bonus damage"
idStringNamespaced modifier ID, unique within each attribute (1.21+)."example:bonus_damage"
amountNumber (double)Numeric amount. Negative values are allowed.3.0, -0.2
operationStringHow to calculate the modifier
All three operations
ValueMeaning
"add_value"Adds a flat amount. Example: 10 + 3 = 13.
"add_multiplied_base"Adds the value after flat additions multiplied by amount. Example: 10 + 10 × 0.2 = 12.
"add_multiplied_total"Multiplies the running total by 1 + amount. Example: 12 × (1 + 0.5) = 18.
slotStringEquipment slot that activates the modifier
Equipment slot values
ValueMeaning
"any"Any applicable slot (default)
"hand"Either hand
"armor"Armor slots
"mainhand"Main hand
"offhand"Off hand
"head"Head
"chest"Chest
"legs"Legs
"feet"Feet
"body"Animal body equipment
"saddle"Saddle (1.21.5+)
show_in_tooltip Boolean Modifier visibility in the object form through 1.21.4 true shows modifiers (default), and false hides them.
display Object Per-modifier visibility from 1.21.6 {type:"default"} uses the default display, {type:"hidden"} hides the entry, and {type:"override",value:{text:"Bonus damage"}} replaces the displayed text.

Attribute IDs for type

Built-in attribute IDs for versions 1.20.5–26.3. A modifier applies when the entity equipping the item has that attribute.

Attribute ID (1.21.2+)Legacy ID (through 1.21.1)MeaningAvailability
minecraft:air_drag_modifier — Air drag multiplier 26.2+
minecraft:armor minecraft:generic.armor Armor points 1.20.5+
minecraft:armor_toughness minecraft:generic.armor_toughness Armor toughness 1.20.5+
minecraft:attack_damage minecraft:generic.attack_damage Attack damage 1.20.5+
minecraft:attack_knockback minecraft:generic.attack_knockback Knockback dealt by attacks 1.20.5+
minecraft:attack_speed minecraft:generic.attack_speed Attack recharge speed 1.20.5+
minecraft:below_name_distance — Visibility range of the score below a name 26.2+
minecraft:block_break_speed minecraft:player.block_break_speed Block breaking speed 1.20.5+
minecraft:block_interaction_range minecraft:player.block_interaction_range Block interaction reach 1.20.5+
minecraft:bounciness — Bounce on collision 26.2+
minecraft:burning_time minecraft:generic.burning_time Burning duration multiplier 1.21+
minecraft:camera_distance — Third-person camera distance 1.21.6+
minecraft:entity_interaction_range minecraft:player.entity_interaction_range Entity interaction reach 1.20.5+
minecraft:explosion_knockback_resistance minecraft:generic.explosion_knockback_resistance Resistance to explosion knockback 1.21+
minecraft:fall_damage_multiplier minecraft:generic.fall_damage_multiplier Fall damage multiplier 1.20.5+
minecraft:flying_speed minecraft:generic.flying_speed Movement speed of flying entities 1.20.5+
minecraft:follow_range minecraft:generic.follow_range Range at which mobs track targets 1.20.5+
minecraft:friction_modifier — Ground friction multiplier 26.2+
minecraft:gravity minecraft:generic.gravity Gravity strength 1.20.5+
minecraft:jump_strength minecraft:generic.jump_strength Upward strength of jumps 1.20.5+
minecraft:knockback_resistance minecraft:generic.knockback_resistance Knockback resistance 1.20.5+
minecraft:luck minecraft:generic.luck Luck used by applicable loot tables 1.20.5+
minecraft:max_absorption minecraft:generic.max_absorption Maximum absorption health 1.20.5+
minecraft:max_health minecraft:generic.max_health Maximum health 1.20.5+
minecraft:mining_efficiency minecraft:player.mining_efficiency Mining speed bonus when using a suitable tool 1.21+
minecraft:movement_efficiency minecraft:generic.movement_efficiency Reduction of movement penalties from terrain 1.21+
minecraft:movement_speed minecraft:generic.movement_speed Ground movement speed 1.20.5+
minecraft:name_tag_distance — Visibility range of the overhead name 26.2+
minecraft:oxygen_bonus minecraft:generic.oxygen_bonus Affects the chance of conserving air underwater 1.21+
minecraft:safe_fall_distance minecraft:generic.safe_fall_distance Distance an entity can fall without damage 1.20.5+
minecraft:scale minecraft:generic.scale Entity size multiplier 1.20.5+
minecraft:sneaking_speed minecraft:player.sneaking_speed Sneaking speed relative to normal movement 1.21+
minecraft:spawn_reinforcements minecraft:zombie.spawn_reinforcements Chance for a zombie to call reinforcements 1.20.5+
minecraft:step_height minecraft:generic.step_height Step height climbed without jumping 1.20.5+
minecraft:submerged_mining_speed minecraft:player.submerged_mining_speed Mining speed multiplier underwater 1.21+
minecraft:sweeping_damage_ratio minecraft:player.sweeping_damage_ratio Damage ratio applied to secondary sweep targets 1.21+
minecraft:tempt_range — Range at which mobs are tempted by items 1.21.2+
minecraft:water_movement_efficiency minecraft:generic.water_movement_efficiency Reduction of movement slowdown in water 1.21+
minecraft:waypoint_receive_range — Locator Bar waypoint reception range 1.21.6+
minecraft:waypoint_transmit_range — Locator Bar waypoint transmission range 1.21.6+

Official 1.20.5 · Official 1.21 · Official 1.21.2 · Official 1.21.5 · Official 1.21.6 · Official 26.2

minecraft:base_color

Sets the base color of a shield using a dye color name. Use banner_patterns for the colors of individual pattern layers.

Syntax and examples by version

1.20.5+

Syntax

minecraft:base_color="<color>"

Example (all fields)

minecraft:base_color="blue"
Values for base_color
FieldTypeAccepted formsExample values
<色> String A dye color name as a string.
All 16 dye colors
ValueMeaning
"white"White
"orange"Orange
"magenta"Magenta
"light_blue"Light blue
"yellow"Yellow
"lime"Lime
"pink"Pink
"gray"Gray
"light_gray"Light gray
"cyan"Cyan
"purple"Purple
"blue"Blue
"brown"Brown
"green"Green
"red"Red
"black"Black

Official 1.20.5 release notes

minecraft:bees

Stores bees inside a beehive or bee nest. The list is copied to the block when placed.

Syntax and examples by version

1.20.5+

Syntax

minecraft:bees=[{entity_data:{id:"<entity ID>"},ticks_in_hive:<Integer (int)>,min_ticks_in_hive:<Integer (int)>},…]

Example (all fields)

minecraft:bees=[{entity_data:{id:"minecraft:bee"},ticks_in_hive:0,min_ticks_in_hive:600}]
Values for bees
FieldTypeAccepted formsExample values
entity_data Object Bee entity data. Use id for the entity type; other NBT fields are applied when it leaves the hive. {id:"minecraft:bee"}
ticks_in_hive Integer (int) Time already spent in the hive, in ticks. 0
min_ticks_in_hive Integer (int) Minimum time the bee must stay in the hive, in ticks. 600

Use [] for an empty hive. Add one list entry per bee.

Official 1.20.5 release notes

minecraft:block_entity_data

Provides the block entity type and additional NBT data to apply when placing a block with a block entity.

Syntax and examples by version

1.20.5+

Syntax

minecraft:block_entity_data={id:"<block entity ID>"[,<NBT key>:<NBT value>,…]}

Example (all fields)

minecraft:block_entity_data={id:"minecraft:command_block",Command:"say Ready"}
Values for block_entity_data
FieldTypeAccepted formsExample values
id String Required. The block entity type for the block being placed. "minecraft:command_block"
<追加NBT項目> NBT value (depends on the field) Data applied on placement. Valid fields depend on the block entity type. Command:"say Ready"

Applying this data on placement is restricted by operator permissions for block entities such as command blocks, lecterns, and spawners.

Use a dedicated item component for data with its own component, such as container for inventory contents.

From 26.3, newly created signs default to allow_op_features:false. Their text click events and text resolution are disabled by default. The dedicated sign_text_front, sign_text_back, and waxed components are also available.

Official 1.20.5 release notes · Official 26.3 release notes

minecraft:block_state

Sets block state properties when placing a block. The block type determines the available properties and values.

Syntax and examples by version

1.20.5+

Syntax

minecraft:block_state={<property name>:"<value>",…}

Example (all fields)

minecraft:block_state={eggs:"3",hatch:"1"}
Values for block_state
FieldTypeAccepted formsExample values
eggs String Number of turtle eggs. Use strings from 1 to 4. "3"
hatch String Turtle egg hatching stage. Use strings from 0 to 2. "1"
axis String Axis for blocks such as logs. Use one of the strings x, y, or z. "x"

The example is for the turtle egg item. Quote property values even when they represent numbers or booleans.

Official 1.20.5 release notes

minecraft:block_transformer

Selects the block transformation rules used when a player interacts with a block using the item.

Syntax and examples by version

26.3+

Syntax

minecraft:block_transformer="<block transformer ID>"

Example (all fields)

minecraft:block_transformer="minecraft:axe"
FieldTypeAccepted formsExample values
<ブロック変換ID>StringA namespaced ID registered in the block transformer registry."minecraft:axe"

Vanilla transformer IDs

ValueMeaning
"minecraft:axe"Axe transformations, including stripping logs and scraping or unwaxing copper.
"minecraft:hoe"Hoe transformations, including tilling and removing roots from rooted dirt.
"minecraft:shovel"Shovel transformations, including making dirt paths and extinguishing campfires.

Register custom rules in a data pack and refer to the registered ID here.

Official 26.3 release notes

minecraft:blocks_attacks

Allows the item to block attacks like a shield. You can configure damage reduction and durability lost while blocking.

Syntax and examples by version

26.1+

Syntax

minecraft:blocks_attacks={block_delay_seconds:<Seconds (float)>,disable_cooldown_scale:<Multiplier (float)>,damage_reductions:[<damage reduction rule>,…],item_damage:<durability settings>,bypassed_by:<damage type selector>,block_sound:"<sound event ID>",disabled_sound:"<sound event ID>"}

Example (all fields)

minecraft:blocks_attacks={block_delay_seconds:0.25,disable_cooldown_scale:1.0,damage_reductions:[{horizontal_blocking_angle:90.0,type:"minecraft:arrow",base:0.0,factor:1.0}],item_damage:{threshold:3.0,base:1.0,factor:1.0},bypassed_by:["minecraft:magic"],block_sound:"minecraft:item.shield.block",disabled_sound:"minecraft:item.shield.break"}
1.21.5–1.21.11

Syntax

minecraft:blocks_attacks={block_delay_seconds:<Seconds (float)>,disable_cooldown_scale:<Multiplier (float)>,damage_reductions:[<damage reduction rule>,…],item_damage:<durability settings>,bypassed_by:"#<damage type tag>",block_sound:"<sound event ID>",disabled_sound:"<sound event ID>"}

Example (all fields)

minecraft:blocks_attacks={block_delay_seconds:0.25,disable_cooldown_scale:1.0,damage_reductions:[{horizontal_blocking_angle:90.0,type:"minecraft:arrow",base:0.0,factor:1.0}],item_damage:{threshold:3.0,base:1.0,factor:1.0},bypassed_by:"#minecraft:bypasses_shield",block_sound:"minecraft:item.shield.block",disabled_sound:"minecraft:item.shield.break"}
FieldTypeAccepted formsExample values
block_delay_secondsNumber (float)Seconds before blocking takes effect. Non-negative; default 0.0.25
disable_cooldown_scaleNumber (float)Cooldown multiplier when an attack disables blocking. Non-negative; default 1. Zero prevents attacks from disabling it.1.0
damage_reductionsList of objectsList of rules defining how much damage to block.[{horizontal_blocking_angle:90.0,type:"minecraft:arrow",base:0.0,factor:1.0}]
item_damageObjectDetermines the durability damage based on how much damage was blocked.{threshold:3.0,base:1.0,factor:1.0}
bypassed_byString or list of stringsDamage types that bypass blocking. Use a tag through 1.21.11. From 26.1, an ID or list of IDs is also accepted."#minecraft:bypasses_shield"
block_soundSound eventSound event played when blocking succeeds."minecraft:item.shield.block"
disabled_soundSound eventSound event played when an attack disables blocking."minecraft:item.shield.break"

Damage reduction fields

FieldTypeMeaning
horizontal_blocking_angleNumber (float)Allowed angle between the defender facing and the incoming attack. Default: 90 degrees.
typeString or list of strings Damage type ID, list of IDs, or tag. Defaults to all types.
Vanilla damage type IDs · Vanilla damage type tags
baseNumber (float)Flat amount of damage blocked.
factorNumber (float)Fraction of the incoming damage to add to the blocked amount.

Durability damage fields

FieldTypeMeaning
thresholdNumber (float)Minimum blocked damage before durability damage applies. Non-negative.
baseNumber (float)Flat durability damage when the threshold is met.
factorNumber (float)Durability damage multiplier applied to blocked damage.

Each matching rule contributes a flat amount plus a fraction of incoming damage. Once the durability threshold is met, the flat amount plus a fraction of blocked damage is rounded down.

By default, damage_reductions blocks all damage that would be blocked, and item_damage removes one durability point per point of damage blocked.

damage_reductions[].type accepts the IDs and tags below. The bypassed_by field accepts tags from 1.21.5 and IDs from 26.1.

Vanilla damage type IDs
ValueAvailable versions
minecraft:arrow1.21.5+
minecraft:bad_respawn_point1.21.5+
minecraft:cactus1.21.5+
minecraft:campfire1.21.5+
minecraft:cramming1.21.5+
minecraft:dragon_breath1.21.5+
minecraft:drown1.21.5+
minecraft:dry_out1.21.5+
minecraft:ender_pearl1.21.5+
minecraft:explosion1.21.5+
minecraft:fall1.21.5+
minecraft:falling_anvil1.21.5+
minecraft:falling_block1.21.5+
minecraft:falling_stalactite1.21.5+
minecraft:fireball1.21.5+
minecraft:fireworks1.21.5+
minecraft:fly_into_wall1.21.5+
minecraft:freeze1.21.5+
minecraft:generic1.21.5+
minecraft:generic_kill1.21.5+
minecraft:hot_floor1.21.5+
minecraft:in_fire1.21.5+
minecraft:in_wall1.21.5+
minecraft:indirect_magic1.21.5+
minecraft:lava1.21.5+
minecraft:lightning_bolt1.21.5+
minecraft:mace_smash1.21.5+
minecraft:magic1.21.5+
minecraft:mob_attack1.21.5+
minecraft:mob_attack_no_aggro1.21.5+
minecraft:mob_projectile1.21.5+
minecraft:on_fire1.21.5+
minecraft:out_of_world1.21.5+
minecraft:outside_border1.21.5+
minecraft:player_attack1.21.5+
minecraft:player_explosion1.21.5+
minecraft:sonic_boom1.21.5+
minecraft:spear1.21.11+
minecraft:spit1.21.5+
minecraft:stalagmite1.21.5+
minecraft:starve1.21.5+
minecraft:sting1.21.5+
minecraft:sulfur_cube_hot26.2+
minecraft:sweet_berry_bush1.21.5+
minecraft:thorns1.21.5+
minecraft:thrown1.21.5+
minecraft:trident1.21.5+
minecraft:unattributed_fireball1.21.5+
minecraft:wind_charge1.21.5+
minecraft:wither1.21.5+
minecraft:wither_skull1.21.5+
Vanilla damage type tags
ValueAvailable versions
#minecraft:always_hurts_ender_dragons1.21.5+
#minecraft:always_kills_armor_stands1.21.5+
#minecraft:always_most_significant_fall1.21.5+
#minecraft:always_triggers_silverfish1.21.5+
#minecraft:avoids_guardian_thorns1.21.5+
#minecraft:burn_from_stepping1.21.5+
#minecraft:burns_armor_stands1.21.5+
#minecraft:bypasses_armor1.21.5+
#minecraft:bypasses_cooldown26.3+
#minecraft:bypasses_effects1.21.5+
#minecraft:bypasses_enchantments1.21.5+
#minecraft:bypasses_invulnerability1.21.5+
#minecraft:bypasses_resistance1.21.5+
#minecraft:bypasses_shield1.21.5+
#minecraft:bypasses_wolf_armor1.21.5+
#minecraft:can_break_armor_stand1.21.5+
#minecraft:damages_helmet1.21.5+
#minecraft:ignites_armor_stands1.21.5+
#minecraft:is_drowning1.21.5+
#minecraft:is_explosion1.21.5+
#minecraft:is_fall1.21.5+
#minecraft:is_fire1.21.5+
#minecraft:is_freezing1.21.5+
#minecraft:is_lightning1.21.5+
#minecraft:is_player_attack1.21.5+
#minecraft:is_projectile1.21.5+
#minecraft:mace_smash1.21.5+
#minecraft:no_anger1.21.5+
#minecraft:no_impact1.21.5+
#minecraft:no_knockback1.21.5+
#minecraft:no_wolf_retaliation26.3+
#minecraft:panic_causes1.21.5+
#minecraft:panic_environmental_causes1.21.5+
#minecraft:sulfur_cube_with_block_immune_to26.2+
#minecraft:witch_resistant_to1.21.5+
#minecraft:wither_immune_to1.21.5+

Official 1.21.5 release notes · Official 26.1 release notes

minecraft:break_sound

Sets the sound played when the item runs out of durability and breaks.

Syntax and examples by version

1.21.5+

Syntax

minecraft:break_sound="<sound event ID>"

Example (all fields)

minecraft:break_sound="minecraft:item.wolf_armor.break"
FieldTypeAccepted formsExample values
<サウンドID>StringA sound event ID."minecraft:entity.item.break"

Official 1.21.5 release notes

minecraft:brewing_fuel

Makes the item usable as brewing stand fuel, with a configurable number of brews and brewing speed.

Syntax and examples by version

26.3+

Syntax

minecraft:brewing_fuel={uses:<Integer (int) or provider ID>,speed_multiplier:<Number (float) or provider ID>}

Example (all fields)

minecraft:brewing_fuel={uses:10,speed_multiplier:1.25}
FieldTypeAccepted formsExample values
usesInteger (int) or stringBrews per fuel item. Use an integer or a registered context_int_provider ID.10
speed_multiplierNumber (float) or stringBrewing speed multiplier. Use a number or a registered context_float_provider ID.1.25

Vanilla provider IDs

ValueMeaning
"minecraft:brewing/uses_default"Returns the default number of brews.
"minecraft:brewing/speed_default"Returns the default brewing speed multiplier.

Quote IDs when using registered number providers.

Official 26.3 release notes

minecraft:bucket_entity_data

Applies additional data such as health and AI settings to an entity released from a bucket.

Syntax and examples by version

1.20.5+

Syntax

minecraft:bucket_entity_data={<NBT key>:<NBT value>,…}

Example (all fields)

minecraft:bucket_entity_data={NoAI:1b,Health:3.0f}
FieldTypeAccepted formsExample values
NoAIBooleanBoolean disabling AI behavior.1b
SilentBooleanBoolean silencing the entity.1b
NoGravityBooleanBoolean disabling gravity.1b
GlowingBooleanBoolean enabling the glowing outline.1b
InvulnerableBooleanBoolean setting invulnerability.1b
HealthNumber (float)Health when released from the bucket.3.0f
AgeInteger (int)Age data for entities that grow.-1200
HuntingCooldownInteger (long)Hunting cooldown for an axolotl.2400L
Variant / BucketVariantTagNBT value (depends on the field)Mob-specific variant fields documented in 1.20.5.Variant:0

An empty compound is {}. From 1.21.5, tropical fish patterns and colors can also be set with tropical_fish/pattern, tropical_fish/base_color, and tropical_fish/pattern_color.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:bundle_contents

Stores the items inside a bundle as a list of item stacks.

Syntax and examples by version

1.20.5+

Syntax

minecraft:bundle_contents=[{id:"<item ID>"[,count:<Count (int)>][,components:<component map>]},…]

Example (all fields)

minecraft:bundle_contents=[{id:"minecraft:apple",count:2,components:{"minecraft:custom_data":{sample:1b}}}]
FieldTypeAccepted formsExample values
idStringItem ID for the stack."minecraft:apple"
countInteger (int)Stack count. Defaults to 1.2
componentsObjectComponents to add or override on the item.{"minecraft:custom_data":{sample:1b}}

Use [] for an empty bundle. The list cannot contain empty stacks or minecraft:air.

The normal inventory interaction holds one stack’s worth of items, typically 64 items that stack to 64.

The component is documented in 1.20.5. Bundles became available in standard gameplay in 1.21.2.

Official 1.20.5 release notes · Official 1.21.2 release notes

minecraft:can_break

Specifies which blocks the item can break in Adventure mode.

Syntax and examples by version

1.21.5+

Syntax

minecraft:can_break={blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>][,components:<exact component conditions>][,predicates:<predicate map>]} | [{blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>][,components:<exact component conditions>][,predicates:<predicate map>]},…]

Example (all fields)

minecraft:can_break=[{blocks:"minecraft:chest",state:{facing:"north"},nbt:{},components:{"minecraft:custom_name":{text:"Supply"}},predicates:{}}]
1.20.5–1.21.4

Syntax

minecraft:can_break={predicates:[{blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>]},…][,show_in_tooltip:<boolean>]} | {blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>]}

Example (all fields)

minecraft:can_break={predicates:[{blocks:"minecraft:chest",state:{facing:"north"},nbt:{}}],show_in_tooltip:true}
FieldTypeAccepted formsExample values
blocksString or list of stringsA block ID, a list of block IDs, or a # prefixed block tag."minecraft:chest"
stateObjectConditions for block state properties. Several properties may be tested.{facing:"north"}
nbtObjectMatches block entity NBT.{}
componentsObjectFrom 1.21.5, matches the exact values of listed block entity components.{"minecraft:custom_name":{text:"Supply"}}
predicatesObjectFrom 1.21.5, matches block entity components using component-specific predicates.{}
show_in_tooltipBooleanUsed by the object form through 1.21.4; defaults to true. From 1.21.5, use tooltip_display.false

Specify only the block predicate fields you need. Within a predicate, all specified conditions must match. A list accepts a block if any entry matches.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:can_place_on

Specifies which blocks the item can be placed against in Adventure mode.

Syntax and examples by version

1.21.5+

Syntax

minecraft:can_place_on={blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>][,components:<exact component conditions>][,predicates:<predicate map>]} | [{blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>][,components:<exact component conditions>][,predicates:<predicate map>]},…]

Example (all fields)

minecraft:can_place_on=[{blocks:"minecraft:chest",state:{facing:"north"},nbt:{},components:{"minecraft:custom_name":{text:"Supply"}},predicates:{}}]
1.20.5–1.21.4

Syntax

minecraft:can_place_on={predicates:[{blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>]},…][,show_in_tooltip:<boolean>]} | {blocks:<blocks selector>[,state:<state conditions>][,nbt:<NBT conditions>]}

Example (all fields)

minecraft:can_place_on={predicates:[{blocks:"minecraft:chest",state:{facing:"north"},nbt:{}}],show_in_tooltip:true}
FieldTypeAccepted formsExample values
blocksString or list of stringsA block ID, a list of block IDs, or a # prefixed block tag."minecraft:chest"
stateObjectConditions for block state properties. Several properties may be tested.{facing:"north"}
nbtObjectMatches block entity NBT.{}
componentsObjectFrom 1.21.5, matches the exact values of listed block entity components.{"minecraft:custom_name":{text:"Supply"}}
predicatesObjectFrom 1.21.5, matches block entity components using component-specific predicates.{}
show_in_tooltipBooleanUsed by the object form through 1.21.4; defaults to true. From 1.21.5, use tooltip_display.false

Specify only the block predicate fields you need. Within a predicate, all specified conditions must match. A list accepts a block if any entry matches.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:charged_projectiles

Stores the projectiles loaded in a crossbow as a list of item stacks.

Syntax and examples by version

1.20.5+

Syntax

minecraft:charged_projectiles=[{id:"<item ID>"[,count:<Count (int)>][,components:<component map>]},…]

Example (all fields)

minecraft:charged_projectiles=[{id:"minecraft:arrow",count:1,components:{"minecraft:custom_data":{sample:1b}}}]
FieldTypeAccepted formsExample values
idStringItem ID of the loaded projectile."minecraft:arrow"
countInteger (int)Stack count. Defaults to 1.1
componentsObjectComponents to add or override on the item.{"minecraft:custom_data":{sample:1b}}

List projectiles as separate entries. Empty stacks and minecraft:air are invalid.

Official 1.20.5 release notes

minecraft:compostable

Sets how many composter layers an item adds when used in a composter.

Syntax and examples by version

26.3+

Syntax

minecraft:compostable={layers:<Integer (int) or provider ID>}

Example (all fields)

minecraft:compostable={layers:"minecraft:compostable/medium"}
FieldTypeAccepted formsExample values
layersInteger (int) or stringProvide a fixed number of layers as an integer, or a registered context_int_provider ID.1

Vanilla provider IDs

ValueMeaning
"minecraft:compostable/low"Adds one layer to an empty composter; otherwise has a 30% chance to add one.
"minecraft:compostable/low_medium"Adds one layer to an empty composter; otherwise has a 50% chance to add one.
"minecraft:compostable/medium"Adds one layer to an empty composter; otherwise has a 65% chance to add one.
"minecraft:compostable/medium_high"Adds one layer to an empty composter; otherwise has an 85% chance to add one.
"minecraft:compostable/always_add_one"Always supplies one layer.

Official 26.3 release notes

minecraft:consumable

Makes an item consumable on use and configures the timing, animation, sound, and effects.

Syntax and examples by version

26.3+

Syntax

minecraft:consumable={consume_seconds:<Seconds (float)>,animation:"<animation>",sound:"<sound event ID>",has_consume_particles:<boolean>,on_consume_effects:[<consumption effect>,…]}

Example (all fields)

minecraft:consumable={consume_seconds:1.2,animation:"drink",sound:"minecraft:entity.generic.drink",has_consume_particles:true,on_consume_effects:[{type:"minecraft:teleport_randomly",diameter:8.0,directional_particles:false}]}
1.21.11–26.2

Syntax

minecraft:consumable={consume_seconds:<Seconds (float)>,animation:"<animation>",sound:"<sound event ID>",has_consume_particles:<boolean>,on_consume_effects:[<consumption effect>,…]}

Example (all fields)

minecraft:consumable={consume_seconds:1.2,animation:"trident",sound:"minecraft:entity.generic.drink",has_consume_particles:true,on_consume_effects:[{type:"minecraft:teleport_randomly",diameter:8.0}]}
1.21.2–1.21.10

Syntax

minecraft:consumable={consume_seconds:<Seconds (float)>,animation:"<animation>",sound:"<sound event ID>",has_consume_particles:<boolean>,on_consume_effects:[<consumption effect>,…]}

Example (all fields)

minecraft:consumable={consume_seconds:1.2,animation:"spear",sound:"minecraft:entity.generic.drink",has_consume_particles:true,on_consume_effects:[{type:"minecraft:teleport_randomly",diameter:8.0}]}
FieldTypeAccepted formsExample values
consume_secondsNumber (float)Time to consume in seconds. Non-negative; default 1.6.1.2
animationStringConsumption animation. Defaults to eat."drink"
soundSound eventSound during and on completion of consumption. Defaults to minecraft:entity.generic.eat."minecraft:entity.generic.drink"
has_consume_particlesBooleanWhether consumption emits particles. Defaults to true.false
on_consume_effectsList of objectsList of effects triggered on consumption. Each entry uses type to select an effect.[{type:"minecraft:clear_all_effects"}]

Animation values

ValueMeaning
"none"No animation.
"eat"Eating.
"drink"Drinking.
"block"Blocking.
"bow"Drawing a bow.
"spear"Trident animation through 1.21.10; spear animation from 1.21.11.
"trident"Trident animation from 1.21.11.
"crossbow"Loading a crossbow.
"spyglass"Looking through a spyglass.
"toot_horn"Playing a horn.
"brush"Brushing.

Consumption effect types

ValueMeaning
minecraft:apply_effectsApplies the effects list with probability, which defaults to 1.0. Vanilla status effect IDs
minecraft:remove_effectsRemoves effects selected by an ID, list of IDs, or tag in effects. Vanilla status effect IDs
minecraft:clear_all_effectsClears all status effects.
minecraft:teleport_randomlyTeleports randomly. The positive diameter defaults to 16.0. From 26.3, directional_particles controls the particle trail and defaults to true.
minecraft:play_soundPlays the sound event specified by sound.

Set nutrition in food. The consumable component enables consumption and configures its behavior.

Vanilla status effect IDs
ValueAvailable versions
minecraft:absorption1.21.2+
minecraft:bad_omen1.21.2+
minecraft:blindness1.21.2+
minecraft:breath_of_the_nautilus1.21.11+
minecraft:conduit_power1.21.2+
minecraft:darkness1.21.2+
minecraft:dolphins_grace1.21.2+
minecraft:fire_resistance1.21.2+
minecraft:glowing1.21.2+
minecraft:haste1.21.2+
minecraft:health_boost1.21.2+
minecraft:hero_of_the_village1.21.2+
minecraft:hunger1.21.2+
minecraft:infested1.21.2+
minecraft:instant_damage1.21.2+
minecraft:instant_health1.21.2+
minecraft:invisibility1.21.2+
minecraft:jump_boost1.21.2+
minecraft:levitation1.21.2+
minecraft:luck1.21.2+
minecraft:mining_fatigue1.21.2+
minecraft:nausea1.21.2+
minecraft:night_vision1.21.2+
minecraft:oozing1.21.2+
minecraft:poison1.21.2+
minecraft:raid_omen1.21.2+
minecraft:regeneration1.21.2+
minecraft:resistance1.21.2+
minecraft:saturation1.21.2+
minecraft:slow_falling1.21.2+
minecraft:slowness1.21.2+
minecraft:speed1.21.2+
minecraft:strength1.21.2+
minecraft:trial_omen1.21.2+
minecraft:unluck1.21.2+
minecraft:water_breathing1.21.2+
minecraft:weakness1.21.2+
minecraft:weaving1.21.2+
minecraft:wind_charged1.21.2+
minecraft:wither1.21.2+

Official 1.21.2 release notes · Official 1.21.11 release notes · Official 26.3 release notes

minecraft:container

Stores the contents of blocks such as chests and shulker boxes on the item, then transfers them on placement.

Syntax and examples by version

1.20.5+

Syntax

minecraft:container=[{slot:<Slot index (int)>,item:{id:"<item ID>"[,count:<Count (int)>][,components:<component map>]}},…]

Example (all fields)

minecraft:container=[{slot:0,item:{id:"minecraft:apple",count:2,components:{"minecraft:custom_data":{sample:1b}}}}]
FieldTypeAccepted formsExample values
slotInteger (int)Slot index from 0 to 255. Use an index within the capacity of the destination container.0
itemObjectStack in the slot. id identifies the item, count is its quantity, and components adds item settings.{id:"minecraft:apple",count:2}

Use [] for an empty container.

Official 1.20.5 release notes

minecraft:container_loot

Stores an unresolved loot table and random seed for the container placed from the item.

Syntax and examples by version

1.20.5+

Syntax

minecraft:container_loot={loot_table:"<loot table ID>"[,seed:<Seed (long)>]}

Example (all fields)

minecraft:container_loot={loot_table:"minecraft:chests/simple_dungeon",seed:31415L}
FieldTypeAccepted formsExample values
loot_tableStringID of the loot table that generates the contents."minecraft:chests/simple_dungeon"
seedInteger (long)64-bit random seed. If omitted or zero, a random seed is chosen when evaluating the table.31415L

Official 1.20.5 release notes

minecraft:cooking_fuel

Makes an item usable in furnaces, smokers, and blast furnaces and sets its burn time and cooking speed.

Syntax and examples by version

26.3+

Syntax

minecraft:cooking_fuel={burn_time:<Integer (int) or provider ID>,speed_multiplier:<Number (float) or provider ID>}

Example (all fields)

minecraft:cooking_fuel={burn_time:400,speed_multiplier:1.25}
FieldTypeAccepted formsExample values
burn_timeInteger (int) or stringBurn time in ticks, as an integer or a registered context_int_provider ID.400
speed_multiplierNumber (float) or stringCooking speed multiplier, as a number or a registered context_float_provider ID.1.25

Vanilla provider examples

ValueMeaning
"minecraft:cooking/time_coal"Burn time used by coal.
"minecraft:cooking/time_blaze_rod"Burn time used by blaze rods.
"minecraft:cooking/speed_default"Default cooking speed multiplier.

Official 26.3 release notes

minecraft:custom_data

Stores arbitrary NBT data on an item for use by commands and data packs.

Syntax and examples by version

1.20.5+

Syntax

minecraft:custom_data={<key>:<NBT value>,…}

Example (all fields)

minecraft:custom_data={quest:"starter",points:3,flags:{claimed:0b}}
Values for custom_data
FieldTypeAccepted formsExample values
<キー> String A key you choose for your data. quest
<NBT値> NBT value (depends on the field) An NBT value such as a string, number, list, or compound. "starter", 3, {claimed:0b}

Keys are freely chosen. From 1.21.5, regular SNBT lists can contain elements of different types.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:custom_model_data

Supplies values for resource-pack item model and color selection.

Syntax and examples by version

1.21.4+

Syntax

minecraft:custom_model_data={floats:[<Number (float)>,…],flags:[<boolean>,…],strings:["<string>",…],colors:[<RGB color>,…]}

Example (all fields)

minecraft:custom_model_data={floats:[12.5],flags:[true],strings:["winter"],colors:[255]}
1.20.5–1.21.3

Syntax

minecraft:custom_model_data=<Integer (int)>

Example (all fields)

minecraft:custom_model_data=12
FieldTypeAccepted formsExample values
floatsList of floatsFrom 1.21.4, a list of floating-point numbers.[12.5]
flagsList of booleansFrom 1.21.4, a list of booleans.[true]
stringsList of stringsFrom 1.21.4, a list of strings.["winter"]
colorsList of RGB colorsFrom 1.21.4, a list of RGB colors.[255]
旧形式 / Legacy formInteger (int)A single integer through 1.21.3.12

Official 1.20.5 release notes · Official 1.21.4 release notes

minecraft:custom_name

Sets the displayed item name using a text component, with optional formatting such as color.

Syntax and examples by version

1.21.5+

Syntax

minecraft:custom_name=<text component>

Example (all fields)

minecraft:custom_name={text:"Frost Kit",color:"aqua",italic:false}
1.20.5–1.21.4

Syntax

minecraft:custom_name='<JSON text>'

Example (all fields)

minecraft:custom_name='{"text":"Frost Kit","color":"aqua","italic":false}'
FieldTypeAccepted formsExample values
textStringDisplayed text."Frost Kit"
colorStringText color. Use a color name or a hexadecimal color."aqua"
italicBooleanWhether the text is italic.false

From 1.21.5, write plain names as strings and formatted names directly as compounds or other text component forms.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:damage

Sets how much durability a damageable item has already lost.

Syntax and examples by version

1.20.5+

Syntax

minecraft:damage=<Non-negative integer (int)>

Example (all fields)

minecraft:damage=12
FieldTypeAccepted formsExample values
<消費済み耐久値>Integer (int)Non-negative integer. Zero means undamaged; larger values leave less remaining durability.12

The maximum durability is set by max_damage.

Official 1.20.5 release notes

minecraft:damage_resistant

Controls which damage types an item resists when dropped or worn.

Syntax and examples by version

26.1+

Syntax

minecraft:damage_resistant={types:<damage type selector>}

Example (all fields)

minecraft:damage_resistant={types:["minecraft:in_fire","minecraft:on_fire"]}
1.21.2–1.21.11

Syntax

minecraft:damage_resistant={types:"#<damage type tag>"}

Example (all fields)

minecraft:damage_resistant={types:"#minecraft:is_fire"}
FieldTypeAccepted formsExample values
typesString or list of stringsUse a tag through 1.21.11. From 26.1, a tag, damage type ID, or list of IDs is accepted."#minecraft:is_fire"

The resistance applies to the item itself, including its durability when worn.

Vanilla damage type IDs
ValueAvailable versions
minecraft:arrow26.1+
minecraft:bad_respawn_point26.1+
minecraft:cactus26.1+
minecraft:campfire26.1+
minecraft:cramming26.1+
minecraft:dragon_breath26.1+
minecraft:drown26.1+
minecraft:dry_out26.1+
minecraft:ender_pearl26.1+
minecraft:explosion26.1+
minecraft:fall26.1+
minecraft:falling_anvil26.1+
minecraft:falling_block26.1+
minecraft:falling_stalactite26.1+
minecraft:fireball26.1+
minecraft:fireworks26.1+
minecraft:fly_into_wall26.1+
minecraft:freeze26.1+
minecraft:generic26.1+
minecraft:generic_kill26.1+
minecraft:hot_floor26.1+
minecraft:in_fire26.1+
minecraft:in_wall26.1+
minecraft:indirect_magic26.1+
minecraft:lava26.1+
minecraft:lightning_bolt26.1+
minecraft:mace_smash26.1+
minecraft:magic26.1+
minecraft:mob_attack26.1+
minecraft:mob_attack_no_aggro26.1+
minecraft:mob_projectile26.1+
minecraft:on_fire26.1+
minecraft:out_of_world26.1+
minecraft:outside_border26.1+
minecraft:player_attack26.1+
minecraft:player_explosion26.1+
minecraft:sonic_boom26.1+
minecraft:spear26.1+
minecraft:spit26.1+
minecraft:stalagmite26.1+
minecraft:starve26.1+
minecraft:sting26.1+
minecraft:sulfur_cube_hot26.2+
minecraft:sweet_berry_bush26.1+
minecraft:thorns26.1+
minecraft:thrown26.1+
minecraft:trident26.1+
minecraft:unattributed_fireball26.1+
minecraft:wind_charge26.1+
minecraft:wither26.1+
minecraft:wither_skull26.1+
Vanilla damage type tags
ValueAvailable versions
#minecraft:always_hurts_ender_dragons1.21.2+
#minecraft:always_kills_armor_stands1.21.2+
#minecraft:always_most_significant_fall1.21.2+
#minecraft:always_triggers_silverfish1.21.2+
#minecraft:avoids_guardian_thorns1.21.2+
#minecraft:burn_from_stepping1.21.2+
#minecraft:burns_armor_stands1.21.2+
#minecraft:bypasses_armor1.21.2+
#minecraft:bypasses_cooldown26.3+
#minecraft:bypasses_effects1.21.2+
#minecraft:bypasses_enchantments1.21.2+
#minecraft:bypasses_invulnerability1.21.2+
#minecraft:bypasses_resistance1.21.2+
#minecraft:bypasses_shield1.21.2+
#minecraft:bypasses_wolf_armor1.21.2+
#minecraft:can_break_armor_stand1.21.2+
#minecraft:damages_helmet1.21.2+
#minecraft:ignites_armor_stands1.21.2+
#minecraft:is_drowning1.21.2+
#minecraft:is_explosion1.21.2+
#minecraft:is_fall1.21.2+
#minecraft:is_fire1.21.2+
#minecraft:is_freezing1.21.2+
#minecraft:is_lightning1.21.2+
#minecraft:is_player_attack1.21.2+
#minecraft:is_projectile1.21.2+
#minecraft:mace_smash1.21.2+
#minecraft:no_anger1.21.2+
#minecraft:no_impact1.21.2+
#minecraft:no_knockback1.21.2+
#minecraft:no_wolf_retaliation26.3+
#minecraft:panic_causes1.21.2+
#minecraft:panic_environmental_causes1.21.2+
#minecraft:sulfur_cube_with_block_immune_to26.2+
#minecraft:witch_resistant_to1.21.2+
#minecraft:wither_immune_to1.21.2+

Official 1.21.2 release notes · Official 26.1 release notes

minecraft:damage_type

Sets the damage type dealt by attacks with the item.

Syntax and examples by version

1.21.11+

Syntax

minecraft:damage_type="<damage type ID>"

Example (all fields)

minecraft:damage_type="minecraft:spear"
FieldTypeAccepted formsExample values
<ダメージタイプID>StringNamespaced ID in the damage type registry."minecraft:spear"

This selects the type of damage. Attack damage can be configured with attribute_modifiers.

Vanilla damage type IDs
ValueAvailable versions
minecraft:arrow1.21.11+
minecraft:bad_respawn_point1.21.11+
minecraft:cactus1.21.11+
minecraft:campfire1.21.11+
minecraft:cramming1.21.11+
minecraft:dragon_breath1.21.11+
minecraft:drown1.21.11+
minecraft:dry_out1.21.11+
minecraft:ender_pearl1.21.11+
minecraft:explosion1.21.11+
minecraft:fall1.21.11+
minecraft:falling_anvil1.21.11+
minecraft:falling_block1.21.11+
minecraft:falling_stalactite1.21.11+
minecraft:fireball1.21.11+
minecraft:fireworks1.21.11+
minecraft:fly_into_wall1.21.11+
minecraft:freeze1.21.11+
minecraft:generic1.21.11+
minecraft:generic_kill1.21.11+
minecraft:hot_floor1.21.11+
minecraft:in_fire1.21.11+
minecraft:in_wall1.21.11+
minecraft:indirect_magic1.21.11+
minecraft:lava1.21.11+
minecraft:lightning_bolt1.21.11+
minecraft:mace_smash1.21.11+
minecraft:magic1.21.11+
minecraft:mob_attack1.21.11+
minecraft:mob_attack_no_aggro1.21.11+
minecraft:mob_projectile1.21.11+
minecraft:on_fire1.21.11+
minecraft:out_of_world1.21.11+
minecraft:outside_border1.21.11+
minecraft:player_attack1.21.11+
minecraft:player_explosion1.21.11+
minecraft:sonic_boom1.21.11+
minecraft:spear1.21.11+
minecraft:spit1.21.11+
minecraft:stalagmite1.21.11+
minecraft:starve1.21.11+
minecraft:sting1.21.11+
minecraft:sulfur_cube_hot26.2+
minecraft:sweet_berry_bush1.21.11+
minecraft:thorns1.21.11+
minecraft:thrown1.21.11+
minecraft:trident1.21.11+
minecraft:unattributed_fireball1.21.11+
minecraft:wind_charge1.21.11+
minecraft:wither1.21.11+
minecraft:wither_skull1.21.11+

Official 1.21.11 release notes

minecraft:death_protection

Lets an item protect its holder from lethal damage by restoring health to one point.

Syntax and examples by version

1.21.2+

Syntax

minecraft:death_protection={death_effects:[<activation effect>,…]}

Example (all fields)

minecraft:death_protection={death_effects:[{type:"minecraft:apply_effects",effects:[{id:"minecraft:regeneration",duration:100,amplifier:0}],probability:1.0}]}
FieldTypeAccepted formsExample values
death_effectsList of objectsOptional list of effects on activation. Uses the same effect formats as consumable on_consume_effects.[{type:"minecraft:clear_all_effects"}]
Vanilla status effect IDs
ValueAvailable versions
minecraft:absorption1.21.2+
minecraft:bad_omen1.21.2+
minecraft:blindness1.21.2+
minecraft:breath_of_the_nautilus1.21.11+
minecraft:conduit_power1.21.2+
minecraft:darkness1.21.2+
minecraft:dolphins_grace1.21.2+
minecraft:fire_resistance1.21.2+
minecraft:glowing1.21.2+
minecraft:haste1.21.2+
minecraft:health_boost1.21.2+
minecraft:hero_of_the_village1.21.2+
minecraft:hunger1.21.2+
minecraft:infested1.21.2+
minecraft:instant_damage1.21.2+
minecraft:instant_health1.21.2+
minecraft:invisibility1.21.2+
minecraft:jump_boost1.21.2+
minecraft:levitation1.21.2+
minecraft:luck1.21.2+
minecraft:mining_fatigue1.21.2+
minecraft:nausea1.21.2+
minecraft:night_vision1.21.2+
minecraft:oozing1.21.2+
minecraft:poison1.21.2+
minecraft:raid_omen1.21.2+
minecraft:regeneration1.21.2+
minecraft:resistance1.21.2+
minecraft:saturation1.21.2+
minecraft:slow_falling1.21.2+
minecraft:slowness1.21.2+
minecraft:speed1.21.2+
minecraft:strength1.21.2+
minecraft:trial_omen1.21.2+
minecraft:unluck1.21.2+
minecraft:water_breathing1.21.2+
minecraft:weakness1.21.2+
minecraft:weaving1.21.2+
minecraft:wind_charged1.21.2+
minecraft:wither1.21.2+

Official 1.21.2 release notes

minecraft:debug_stick_state

Stores the block-state property selected by a debug stick for each block type.

Syntax and examples by version

1.20.5+

Syntax

minecraft:debug_stick_state={"<block ID>":"<property name>",…}

Example (all fields)

minecraft:debug_stick_state={"minecraft:oak_log":"axis","minecraft:oak_stairs":"facing"}
FieldTypeAccepted formsExample values
<ブロックID>StringID of the block whose selection is stored."minecraft:oak_log"
<プロパティ名>StringName of the property to select for that block."axis"

Official 1.20.5 release notes

minecraft:dye

Makes the item act as a dye and specifies the color it applies.

Syntax and examples by version

26.1+

Syntax

minecraft:dye="<dye color name>"

Example (all fields)

minecraft:dye="cyan"
FieldTypeAccepted formsExample values
<色>StringDye color name. Choose one of the 16 values below."cyan"

All 16 dye colors

ValueMeaning
"white"White
"orange"Orange
"magenta"Magenta
"light_blue"Light blue
"yellow"Yellow
"lime"Lime
"pink"Pink
"gray"Gray
"light_gray"Light gray
"cyan"Cyan
"purple"Purple
"blue"Blue
"brown"Brown
"green"Green
"red"Red
"black"Black

Official 26.1 release notes

minecraft:dyed_color

Sets the RGB color applied to a dyeable item.

Syntax and examples by version

1.21.5+

Syntax

minecraft:dyed_color=<RGB integer (int)> | [<Red (float)>,<Green (float)>,<Blue (float)>]

Example (all fields)

minecraft:dyed_color=[0.0,0.5,1.0]
1.20.5–1.21.4

Syntax

minecraft:dyed_color={rgb:<RGB integer (int)>[,show_in_tooltip:<boolean>]} | <RGB integer (int)>

Example (all fields)

minecraft:dyed_color={rgb:33023,show_in_tooltip:false}
FieldTypeAccepted formsExample values
RGB整数Integer (int)Packed red, green, and blue integer from 0 to 16777215.33023
RGB配列List of three floatsFrom 1.21.5, red, green, and blue channels in order, each from 0.0 to 1.0.[0.0,0.5,1.0]
show_in_tooltipBooleanToggles the color line in the object form through 1.21.4. Defaults to true.false

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:enchantable

Enables enchanting the item at an enchanting table when applicable enchantments exist.

Syntax and examples by version

1.21.2+

Syntax

minecraft:enchantable={value:<Positive integer (int)>}

Example (all fields)

minecraft:enchantable={value:15}
FieldTypeAccepted formsExample values
valueInteger (int)Positive enchantability value. Higher values allow higher-cost enchantments to be selected.15

Official 1.21.2 release notes

minecraft:enchantment_glint_override

Overrides whether the item displays an enchantment glint.

Syntax and examples by version

1.20.5+

Syntax

minecraft:enchantment_glint_override=<boolean>

Example (all fields)

minecraft:enchantment_glint_override=true
FieldTypeAccepted formsExample values
trueBooleanShow the glint.true
falseBooleanHide the glint.false

Official 1.20.5 release notes

minecraft:enchantments

Stores the enchantments on the item and their levels.

Syntax and examples by version

1.21.5+

Syntax

minecraft:enchantments={"<enchantment ID>":<Level (int)>,…}

Example (all fields)

minecraft:enchantments={"minecraft:sharpness":4,"minecraft:unbreaking":2}
1.20.5–1.21.4

Syntax

minecraft:enchantments={levels:{"<enchantment ID>":<Level (int)>,…}[,show_in_tooltip:<boolean>]} | {"<enchantment ID>":<Level (int)>,…}

Example (all fields)

minecraft:enchantments={levels:{"minecraft:sharpness":4,"minecraft:unbreaking":2},show_in_tooltip:true}
FieldTypeAccepted formsExample values
<エンチャントID>StringRegistered enchantment ID."minecraft:sharpness"
<レベル>Integer (int)Integer level from 0 to 255.4
show_in_tooltipBooleanControls tooltip visibility in the object form through 1.21.4. Defaults to true.true

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:entity_data

Sets the entity type and additional NBT for entities spawned by items such as spawn eggs and armor stands.

Syntax and examples by version

1.20.5+

Syntax

minecraft:entity_data={id:"<entity ID>"[,<NBT key>:<NBT value>,…]}

Example (all fields)

minecraft:entity_data={id:"minecraft:pig",Health:4.0f}
FieldTypeAccepted formsExample values
idStringRequired entity type ID."minecraft:pig"
<追加NBT項目>NBT value (depends on the field)Data applied on spawning. Valid fields and values depend on the entity type and game version.Health:4.0f

From 1.21.5, some appearances and variants can also be set through dedicated components.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:equippable

Makes an item equippable in a slot and controls its equip sound, appearance, and eligible wearers.

Syntax and examples by version

1.21.6+

Syntax

minecraft:equippable={slot:"<slot>",equip_sound:"<sound event ID>",asset_id:"<equipment asset ID>",camera_overlay:"<texture ID>",allowed_entities:<entity selector>,dispensable:<boolean>,swappable:<boolean>,damage_on_hurt:<boolean>,equip_on_interact:<boolean>,can_be_sheared:<boolean>,shearing_sound:"<sound event ID>"}

Example (all fields)

minecraft:equippable={slot:"chest",equip_sound:"minecraft:item.armor.equip_iron",asset_id:"minecraft:iron",camera_overlay:"minecraft:misc/pumpkinblur",allowed_entities:"minecraft:player",dispensable:true,swappable:true,damage_on_hurt:true,equip_on_interact:false,can_be_sheared:false,shearing_sound:"minecraft:item.shears.snip"}
1.21.5

Syntax

minecraft:equippable={slot:"<slot>",equip_sound:"<sound event ID>",asset_id:"<equipment asset ID>",camera_overlay:"<texture ID>",allowed_entities:<entity selector>,dispensable:<boolean>,swappable:<boolean>,damage_on_hurt:<boolean>,equip_on_interact:<boolean>}

Example (all fields)

minecraft:equippable={slot:"chest",equip_sound:"minecraft:item.armor.equip_iron",asset_id:"minecraft:iron",camera_overlay:"minecraft:misc/pumpkinblur",allowed_entities:"minecraft:player",dispensable:true,swappable:true,damage_on_hurt:true,equip_on_interact:false}
1.21.4

Syntax

minecraft:equippable={slot:"<slot>",equip_sound:"<sound event ID>",asset_id:"<equipment asset ID>",camera_overlay:"<texture ID>",allowed_entities:<entity selector>,dispensable:<boolean>,swappable:<boolean>,damage_on_hurt:<boolean>}

Example (all fields)

minecraft:equippable={slot:"chest",equip_sound:"minecraft:item.armor.equip_iron",asset_id:"minecraft:iron",camera_overlay:"minecraft:misc/pumpkinblur",allowed_entities:"minecraft:player",dispensable:true,swappable:true,damage_on_hurt:true}
1.21.2–1.21.3

Syntax

minecraft:equippable={slot:"<slot>",equip_sound:"<sound event ID>",model:"<equipment asset ID>",camera_overlay:"<texture ID>",allowed_entities:<entity selector>,dispensable:<boolean>,swappable:<boolean>,damage_on_hurt:<boolean>}

Example (all fields)

minecraft:equippable={slot:"chest",equip_sound:"minecraft:item.armor.equip_iron",model:"minecraft:iron",camera_overlay:"minecraft:misc/pumpkinblur",allowed_entities:"minecraft:player",dispensable:true,swappable:true,damage_on_hurt:true}
FieldTypeAccepted formsExample values
slotStringEquipment slot. head, chest, legs, feet, body, mainhand, or offhand. saddle is available from 1.21.5."chest"
equip_soundSound eventEquipment sound. Defaults to the standard armor equip sound."minecraft:item.armor.equip_iron"
asset_idStringResource-pack equipment asset ID. Named model through 1.21.3."minecraft:iron"
camera_overlayStringTexture shown over the first-person view while equipped."minecraft:misc/pumpkinblur"
allowed_entitiesString or list of stringsAllowed wearers as an entity ID, a list of IDs, or a tag."minecraft:player"
dispensableBooleanWhether a dispenser can equip it. Defaults to true.true
swappableBooleanWhether right-clicking can equip it. Defaults to true.true
damage_on_hurtBooleanWhether damage to the wearer can reduce durability. Defaults to true.true
equip_on_interactBooleanFrom 1.21.5, allows right-clicking a mob to equip it in a vacant slot. Defaults to false.false
can_be_shearedBooleanFrom 1.21.6, allows shears to remove it from eligible mobs. Defaults to false.false
shearing_soundSound eventFrom 1.21.6, sound when removed with shears. Defaults to item.shears.snip."minecraft:item.shears.snip"

Specify the slot and add the other fields as needed.

Official 1.21.2 release notes · Official 1.21.4 release notes · Official 1.21.5 release notes · Official 1.21.6 release notes

minecraft:fire_resistant

Prevents a dropped item from burning up in fire.

Syntax and examples by version

1.20.5–1.21.1

Syntax

minecraft:fire_resistant={}

Example (all fields)

minecraft:fire_resistant={}
Values for fire_resistant
FieldTypeAccepted formsExample values
ValueCompoundUse an empty compound.{}

In 1.21.2, it was replaced by minecraft:damage_resistant . Use the damage type tag #minecraft:is_fire for fire resistance.

Official 1.20.5 release notes · Official 1.21.2 release notes

minecraft:firework_explosion

Sets a firework star’s explosion shape, starting and fade colors, trail, and twinkle.

Syntax and examples by version

1.20.5+

Syntax

minecraft:firework_explosion={shape:"<shape>",colors:[<RGB integer (int)>,…],fade_colors:[<RGB integer (int)>,…],has_trail:<boolean>,has_twinkle:<boolean>}

Example (all fields)

minecraft:firework_explosion={shape:"star",colors:[16711680,255],fade_colors:[16777215],has_trail:true,has_twinkle:true}
FieldTypeAccepted formsExample values
shapeStringExplosion shape. Choose one of the five values below."star"
colorsInteger array (int)Packed integer RGB values for starting colors. Defaults to an empty list.[16711680,255]
fade_colorsInteger array (int)Packed integer RGB values for fade colors. Defaults to an empty list.[16777215]
has_trailBooleanWhether particles leave a trail. Defaults to false.true
has_twinkleBooleanWhether particles twinkle. Defaults to false.true

Explosion shapes

ValueMeaning
"small_ball"Small ball
"large_ball"Large ball
"star"Star
"creeper"Creeper face
"burst"Burst

Official 1.20.5 release notes

minecraft:fireworks

Sets a firework rocket’s flight duration and its list of explosions.

Syntax and examples by version

1.20.5+

Syntax

minecraft:fireworks={flight_duration:<Flight duration (unsigned byte)>,explosions:[<explosion>,…]}

Example (all fields)

minecraft:fireworks={flight_duration:2,explosions:[{shape:"star",colors:[16711680,255],fade_colors:[16777215],has_trail:true,has_twinkle:true}]}
FieldTypeAccepted formsExample values
flight_durationUnsigned byte (integer)Flight duration setting from 0 to 255. A standard rocket defaults to 1.2
explosionsList of objectsUp to 256 explosions, each using the firework_explosion format.{shape:"star",colors:[16711680,255],fade_colors:[16777215],has_trail:true,has_twinkle:true}

Official 1.20.5 release notes

minecraft:food

Sets food properties such as hunger and saturation restored on consumption.

Syntax and examples by version

1.21.2+

Syntax

minecraft:food={nutrition:<Integer (int)>,saturation:<Number (float)>,can_always_eat:<boolean>}

Example (all fields)

minecraft:food={nutrition:5,saturation:2.4,can_always_eat:false}
1.21–1.21.1

Syntax

minecraft:food={nutrition:<Integer (int)>,saturation:<Number (float)>,can_always_eat:<boolean>,eat_seconds:<Seconds (float)>,effects:[{effect:<status effect>,probability:<Chance (float)>},…][,using_converts_to:<item stack>]}

Example (all fields)

minecraft:food={nutrition:5,saturation:2.4,can_always_eat:false,eat_seconds:1.2,effects:[{effect:{id:"minecraft:speed",duration:100,amplifier:0},probability:0.5}],using_converts_to:{id:"minecraft:bowl"}}
1.20.5–1.20.6

Syntax

minecraft:food={nutrition:<Integer (int)>,saturation:<Number (float)>,can_always_eat:<boolean>,eat_seconds:<Seconds (float)>,effects:[{effect:<status effect>,probability:<Chance (float)>},…]}

Example (all fields)

minecraft:food={nutrition:5,saturation:2.4,can_always_eat:false,eat_seconds:1.2,effects:[{effect:{id:"minecraft:speed",duration:100,amplifier:0},probability:0.5}]}
FieldTypeAccepted formsExample values
nutritionInteger (int)Hunger points restored. Non-negative integer.5
saturationNumber (float)Saturation points restored.2.4
can_always_eatBooleanWhether it can be eaten at full hunger. Defaults to false.false
eat_secondsNumber (float)Through 1.21.1, time to eat in seconds. Defaults to 1.6.1.2
effectsList of objectsThrough 1.21.1, effects on eating. probability is from 0 to 1 and defaults to 1.[{effect:{id:"minecraft:speed",duration:100,amplifier:0},probability:0.5}]
using_converts_toObjectFrom 1.21 through 1.21.1, the item that remains after eating.{id:"minecraft:bowl"}

From 1.21.2, add consumable to make a new item edible. Configure duration and effects there, and use use_remainder for leftovers.

Vanilla status effect IDs
ValueAvailable versions
minecraft:absorption1.20.5–1.21.1
minecraft:bad_omen1.20.5–1.21.1
minecraft:blindness1.20.5–1.21.1
minecraft:conduit_power1.20.5–1.21.1
minecraft:darkness1.20.5–1.21.1
minecraft:dolphins_grace1.20.5–1.21.1
minecraft:fire_resistance1.20.5–1.21.1
minecraft:glowing1.20.5–1.21.1
minecraft:haste1.20.5–1.21.1
minecraft:health_boost1.20.5–1.21.1
minecraft:hero_of_the_village1.20.5–1.21.1
minecraft:hunger1.20.5–1.21.1
minecraft:infested1.20.5–1.21.1
minecraft:instant_damage1.20.5–1.21.1
minecraft:instant_health1.20.5–1.21.1
minecraft:invisibility1.20.5–1.21.1
minecraft:jump_boost1.20.5–1.21.1
minecraft:levitation1.20.5–1.21.1
minecraft:luck1.20.5–1.21.1
minecraft:mining_fatigue1.20.5–1.21.1
minecraft:nausea1.20.5–1.21.1
minecraft:night_vision1.20.5–1.21.1
minecraft:oozing1.20.5–1.21.1
minecraft:poison1.20.5–1.21.1
minecraft:raid_omen1.20.5–1.21.1
minecraft:regeneration1.20.5–1.21.1
minecraft:resistance1.20.5–1.21.1
minecraft:saturation1.20.5–1.21.1
minecraft:slow_falling1.20.5–1.21.1
minecraft:slowness1.20.5–1.21.1
minecraft:speed1.20.5–1.21.1
minecraft:strength1.20.5–1.21.1
minecraft:trial_omen1.20.5–1.21.1
minecraft:unluck1.20.5–1.21.1
minecraft:water_breathing1.20.5–1.21.1
minecraft:weakness1.20.5–1.21.1
minecraft:weaving1.20.5–1.21.1
minecraft:wind_charged1.20.5–1.21.1
minecraft:wither1.20.5–1.21.1

Official 1.20.5 release notes · Official 1.21 release notes · Official 1.21.2 release notes

minecraft:glider

Allows the wearer to glide like they would with an elytra.

Syntax and examples by version

1.21.2+

Syntax

minecraft:glider={}

Example (all fields)

minecraft:glider={}
Values for glider
FieldTypeAccepted formsExample values
ValueCompoundUse an empty compound.{}

Pair this with minecraft:equippable to give an item an equipment slot.

Official 1.21.2 release notes

minecraft:hide_additional_tooltip

Hides the additional tooltip information supplied for the item type.

Syntax and examples by version

1.20.5–1.21.4

Syntax

minecraft:hide_additional_tooltip={}

Example (all fields)

minecraft:hide_additional_tooltip={}
Values for hide_additional_tooltip
FieldTypeAccepted formsExample values
ValueCompoundUse an empty compound.{}

Removed in 1.21.5. From that version, use minecraft:tooltip_display and list the component IDs to hide in hidden_components .

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:hide_tooltip

Hides the entire tooltip, including the item name. It can still be displayed and searched in the Creative inventory.

Syntax and examples by version

1.20.5–1.21.4

Syntax

minecraft:hide_tooltip={}

Example (all fields)

minecraft:hide_tooltip={}
Values for hide_tooltip
FieldTypeAccepted formsExample values
ValueCompoundUse an empty compound.{}

Removed in 1.21.5. From that version, use minecraft:tooltip_display with hide_tooltip:true .

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:instrument

Sets the instrument used by a goat horn. Specify an instrument ID or define its sound and duration inline.

Syntax and examples by version

26.3+

Syntax

minecraft:instrument="<instrument ID>" | {sound_event:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]},use_duration:<duration in seconds (float)>,range:<number (float)>,description:<text component>[,durability_damage:<non-negative integer (int)>]}

Example (all fields)

minecraft:instrument="minecraft:ponder_goat_horn"
minecraft:instrument={sound_event:{sound_id:"minecraft:item.goat_horn.sound.0",range:16.0f},use_duration:2.5f,range:32.0f,description:{text:"Signal Horn",color:"gold"},durability_damage:1}
1.21.2–26.2

Syntax

minecraft:instrument="<instrument ID>" | {sound_event:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]},use_duration:<duration in seconds (float)>,range:<number (float)>,description:<text component>}

Example (all fields)

minecraft:instrument="minecraft:ponder_goat_horn"
minecraft:instrument={sound_event:{sound_id:"minecraft:item.goat_horn.sound.0",range:16.0f},use_duration:2.5f,range:32.0f,description:{text:"Signal Horn",color:"gold"}}
1.20.5–1.21.1

Syntax

minecraft:instrument="<instrument ID>" | {sound_event:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]},use_duration:<duration in ticks (int)>,range:<number (float)>}

Example (all fields)

minecraft:instrument="minecraft:ponder_goat_horn"
minecraft:instrument={sound_event:{sound_id:"minecraft:item.goat_horn.sound.0",range:16.0f},use_duration:140,range:32.0f}
Values for instrument
FieldTypeAccepted formsExample values
ValueNamespaced ID or compoundAn instrument ID or an inline definition with the fields below. Data packs can register new instruments from 1.21.2."minecraft:ponder_goat_horn"
sound_eventNamespaced ID or compoundThe sound event to play, given by ID or defined inline."minecraft:item.goat_horn.sound.0"
sound_event.sound_idNamespaced IDSound ID in an inline definition."minecraft:item.goat_horn.sound.0"
sound_event.rangeNumber (float)Fixed audible distance in blocks for an inline definition. Optional.16.0f
use_durationInteger (int)In 1.20.5–1.21.1, the use duration in ticks.140
use_durationNumber (float)From 1.21.2, the use duration and cooldown in seconds. From 26.3, zero disables the cooldown.2.5f
rangeNumber (float)Audible range in blocks.32.0f
descriptionText componentFrom 1.21.2, the instrument description displayed in the tooltip.{text:"Signal Horn",color:"gold"}
durability_damageInteger (int)From 26.3, the durability cost per use. Optional and non-negative.1

Official 1.20.5 release notes · Official 1.21.2 release notes · Official 26.3 release notes

minecraft:intangible_projectile

Marks ammunition fired from a crossbow as collectible only by players in Creative mode. Apply it to the projectile item.

Syntax and examples by version

1.20.5+

Syntax

minecraft:intangible_projectile={}

Example (all fields)

minecraft:intangible_projectile={}
Values for intangible_projectile
FieldTypeAccepted formsExample values
ValueCompoundUse an empty compound.{}

Apply it to ammunition inside minecraft:charged_projectiles . From 1.21.11, it also appears in the tooltip.

Official 1.20.5 release notes · Official 1.21.11 release notes

minecraft:interact_animation

Sets the animation played when the item is used to interact with something.

Syntax and examples by version

26.3+

Syntax

minecraft:interact_animation={type:"<animation type>"[,duration:<non-negative integer (int)>]}

Example (all fields)

minecraft:interact_animation={type:"stab",duration:12}
Values for interact_animation
FieldTypeAccepted formsExample values
typeStringAnimation type. Defaults to "whack".
ValueMeaning
"none"Play no swing animation.
"whack"Play the standard swing animation.
"stab"Play a thrust animation.
durationInteger (int)Animation length in ticks. Non-negative and defaults to 6.12

In 26.3, minecraft:swing_animation was split into minecraft:attack_animation and minecraft:interact_animation .

Official 26.3 release notes · Official 1.21.11 release notes

minecraft:item_model

Selects the model used to render an item.

Syntax and examples by version

1.21.2+

Syntax

minecraft:item_model="<model ID>"

Example (all fields)

minecraft:item_model="minecraft:iron_sword"
Values for item_model
FieldTypeAccepted formsExample values
ValueNamespaced IDThe model ID resolved from the resource pack."minecraft:iron_sword"

From 1.21.4, the ID refers to an item definition at assets/<名前空間>/items/<パス>.json . In 1.21.2–1.21.3, it refers to a model at assets/<名前空間>/models/item/<パス>.json .

Official 1.21.2 release notes · Official 1.21.4 release notes

minecraft:item_name

Sets the item’s base display name. Renaming an item at an anvil sets minecraft:custom_name , which takes display precedence.

Syntax and examples by version

1.21.5+

Syntax

minecraft:item_name=<text component>

Example (all fields)

minecraft:item_name={text:"Field Compass",color:"gold"}
1.20.5–1.21.4

Syntax

minecraft:item_name='<JSON text>'

Example (all fields)

minecraft:item_name='{"text":"Field Compass","color":"gold"}'
Values for item_name
FieldTypeAccepted formsExample values
ValueText componentFrom 1.21.5, write the text component directly as SNBT.{text:"Field Compass",color:"gold"}
ValueString containing JSON textIn 1.20.5–1.21.4, put the JSON text component inside a string.'{"text":"Field Compass","color":"gold"}'

The name is displayed without italics by default and does not produce labels such as item frame labels.

From 1.21.2, names provided by other components, such as potion names or written book titles, also take precedence.

Official 1.20.5 release notes · Official 1.21.2 release notes · Official 1.21.5 release notes

minecraft:jukebox_playable

Lets an item be inserted into a jukebox to play the specified song.

Syntax and examples by version

1.21.5+

Syntax

minecraft:jukebox_playable="<jukebox song ID>"

Example (all fields)

minecraft:jukebox_playable="minecraft:cat"
1.21–1.21.4

Syntax

minecraft:jukebox_playable={song:"<jukebox song ID>"[,show_in_tooltip:<boolean>]}

Example (all fields)

minecraft:jukebox_playable={song:"minecraft:cat",show_in_tooltip:false}
Values for jukebox_playable
FieldTypeAccepted formsExample values
ValueNamespaced IDFrom 1.21.5, specify the song ID directly."minecraft:cat"
songNamespaced IDIn 1.21–1.21.4, the ID of the song to play."minecraft:cat"
show_in_tooltipBooleanIn 1.21–1.21.4, whether to display the song name in the tooltip. Defaults to true.false

From 1.21.5, use minecraft:tooltip_display to control visibility in the tooltip.

Official 1.21 release notes · Official 1.21.5 release notes

minecraft:kinetic_weapon

Holding use enables a charge attack along the line of sight. Damage scales with the relative speed of the attacker and target.

Syntax and examples by version

1.21.11+

Syntax

minecraft:kinetic_weapon={contact_cooldown_ticks:<integer (int)>[,delay_ticks:<integer (int)>][,damage_conditions:{max_duration_ticks:<integer (int)>[,min_speed:<number (float)>][,min_relative_speed:<number (float)>]}][,knockback_conditions:{max_duration_ticks:<integer (int)>[,min_speed:<number (float)>][,min_relative_speed:<number (float)>]}][,dismount_conditions:{max_duration_ticks:<integer (int)>[,min_speed:<number (float)>][,min_relative_speed:<number (float)>]}][,forward_movement:<number (float)>][,damage_multiplier:<number (float)>][,sound:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]}][,hit_sound:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]}]}

Example (all fields)

minecraft:kinetic_weapon={contact_cooldown_ticks:10,delay_ticks:12,damage_conditions:{max_duration_ticks:200,min_speed:0.0f,min_relative_speed:4.6f},knockback_conditions:{max_duration_ticks:140,min_speed:0.0f,min_relative_speed:6.3f},dismount_conditions:{max_duration_ticks:60,min_speed:10.0f,min_relative_speed:0.0f},forward_movement:0.38f,damage_multiplier:1.0f,sound:{sound_id:"minecraft:item.spear.use",range:16.0f},hit_sound:{sound_id:"minecraft:item.spear.hit",range:16.0f}}
Values for kinetic_weapon
FieldTypeAccepted formsExample values
contact_cooldown_ticksInteger (int)Ticks before the weapon can hit the same target again after hitting it and breaking contact. Defaults to 10.10
delay_ticksInteger (int)Ticks before the attack becomes active. Defaults to 0.12
damage_conditionsCompoundCondition for dealing damage. Omit to disable charge damage.{max_duration_ticks:200,min_speed:0.0f,min_relative_speed:4.6f}
knockback_conditionsCompoundCondition for knockback. Omit to disable it.{max_duration_ticks:140,min_speed:0.0f,min_relative_speed:6.3f}
dismount_conditionsCompoundCondition for dismounting the target. Omit to disable it.{max_duration_ticks:60,min_speed:10.0f,min_relative_speed:0.0f}
max_duration_ticksInteger (int)Required in each condition. Number of ticks the condition is checked after the attack becomes active.200
min_speedNumber (float)Optional minimum attacker speed in the aiming direction, in blocks per second. Defaults to 0.10.0f
min_relative_speedNumber (float)Optional minimum relative speed along the aiming direction, in blocks per second. Defaults to 0.4.6f
forward_movementNumber (float)Distance the item moves forward from the hand during the animation. Defaults to 0.0.38f
damage_multiplierNumber (float)Multiplier for the damage calculated from relative speed. Defaults to 1.1.0f
soundNamespaced ID or compoundSound when the charge attack starts. Optional."minecraft:item.spear.use"
sound.sound_idNamespaced IDSound ID in an inline definition."minecraft:item.spear.use"
sound.rangeNumber (float)Fixed audible distance in blocks for an inline definition. Optional.16.0f
hit_soundNamespaced ID or compoundSound when the weapon hits a target. Optional."minecraft:item.spear.hit"
hit_sound.sound_idNamespaced IDSound ID in an inline definition."minecraft:item.spear.hit"
hit_sound.rangeNumber (float)Fixed audible distance in blocks for an inline definition. Optional.16.0f

Use minecraft:attack_range to configure reach.

Official 1.21.11 release notes

minecraft:lock

Locks a container when its block is placed. Hold an item that meets the requirements in the main hand to open it.

Syntax and examples by version

1.21.5+

Syntax

minecraft:lock={items:"<item ID or #tag ID>" | ["<item ID>",…][,count:<non-negative integer (int)> | {min:<non-negative integer (int)>[,max:<non-negative integer (int)>]}][,components:{"<component ID>":<component value>}][,predicates:{"<component predicate ID>":<predicate value>}]}

Example (all fields)

minecraft:lock={items:"minecraft:tripwire_hook",count:{min:1,max:4},components:{"minecraft:custom_name":{text:"Vault Key"}},predicates:{"minecraft:custom_data":{key:1b}}}
1.21.2–1.21.4

Syntax

minecraft:lock={items:"<item ID or #tag ID>" | ["<item ID>",…][,count:<non-negative integer (int)> | {min:<non-negative integer (int)>[,max:<non-negative integer (int)>]}][,components:{"<component ID>":<component value>}][,predicates:{"<component predicate ID>":<predicate value>}]}

Example (all fields)

minecraft:lock={items:"minecraft:tripwire_hook",count:{min:1,max:4},components:{"minecraft:custom_name":'{"text":"Vault Key"}'},predicates:{"minecraft:custom_data":{key:1b}}}
1.20.5–1.21.1

Syntax

minecraft:lock="<custom name of the key>"

Example (all fields)

minecraft:lock="Vault Key"
Values for lock
FieldTypeAccepted formsExample values
ValueStringIn 1.20.5–1.21.1, the custom name required on the key item."Vault Key"
itemsString or listFrom 1.21.2, an item ID, list of IDs, or tag prefixed with #."minecraft:tripwire_hook"
countInteger (int) or compoundFrom 1.21.2, the required stack size. Use an integer for an exact count or min and max for a range. Either bound may be omitted.{min:1,max:4}
componentsCompoundFrom 1.21.2, matches the exact values of the specified components.{"minecraft:custom_name":{text:"Vault Key"}}
predicatesCompoundFrom 1.21.2, checks conditions using component-specific predicates.{"minecraft:custom_data":{key:1b}}

All item-predicate fields can be omitted from 1.21.2. The components value in the table uses the text format introduced in 1.21.5.

Official 1.20.5 release notes · Official 1.21.2 release notes · Official 1.21.5 release notes

minecraft:lodestone_tracker

Turns a compass into a lodestone compass pointing to a location in a specified dimension.

Syntax and examples by version

1.20.5+

Syntax

minecraft:lodestone_tracker={target:{dimension:"<dimension ID>",pos:[I;<X coordinate (int)>,<Y coordinate (int)>,<Z coordinate (int)>]}[,tracked:<boolean>]}

Example (all fields)

minecraft:lodestone_tracker={target:{dimension:"minecraft:overworld",pos:[I;120,64,-40]},tracked:false}
Values for lodestone_tracker
FieldTypeAccepted formsExample values
targetCompoundTarget location. The needle spins if omitted.{dimension:"minecraft:overworld",pos:[I;120,64,-40]}
target.dimensionNamespaced IDTarget dimension ID."minecraft:overworld"
target.posInteger array (int)Target block coordinates in X, Y, Z order.[I;120,64,-40]
trackedBooleanWhether to track a lodestone at the target. Defaults to true. If true, removing the lodestone clears the target.false

The example uses tracked:false so the target is retained even if there is no lodestone there.

Official 1.20.5 release notes

minecraft:lore

Adds descriptive lines to the item’s tooltip.

Syntax and examples by version

1.21.5+

Syntax

minecraft:lore=[<text component>,…]

Example (all fields)

minecraft:lore=[{text:"Expedition gear",color:"gray",italic:false},{text:"Keep dry",color:"aqua"}]
1.20.5–1.21.4

Syntax

minecraft:lore=['<JSON text>',…]

Example (all fields)

minecraft:lore=['{"text":"Expedition gear","color":"gray","italic":false}','{"text":"Keep dry","color":"aqua"}']
Values for lore
FieldTypeAccepted formsExample values
ValueListList of tooltip lines, up to 256. An empty list gives no lore.[]
Each lineText componentFrom 1.21.5, write each text component directly as SNBT.{text:"Keep dry",color:"aqua"}
Each lineString containing JSON textIn 1.20.5–1.21.4, put the JSON for each line inside a string.'{"text":"Keep dry","color":"aqua"}'

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:map_color

Sets the color of the markings on the filled map item model.

Syntax and examples by version

1.20.5–26.2

Syntax

minecraft:map_color=<packed RGB integer (int)>

Example (all fields)

minecraft:map_color=16711680
Values for map_color
FieldTypeAccepted formsExample values
ValueInteger (int)Packed 24-bit red, green and blue value. For example, 16711680 is red. A vanilla filled map defaults to 4603950.16711680

In 26.3, the tinted overlay and this component were removed. The game strips this setting when it loads older maps.

Official 1.20.5 release notes · Official 1.21.4 release notes · Official 26.3 release notes

minecraft:map_decorations

Adds markers to a filled map. Each marker ID specifies an icon type, world coordinates and rotation.

Syntax and examples by version

1.20.5+

Syntax

minecraft:map_decorations={"<marker ID>":{type:"<map decoration type ID>",x:<X coordinate (double)>,z:<Z coordinate (double)>,rotation:<rotation angle (float)>},…}

Example (all fields)

minecraft:map_decorations={"camp":{type:"minecraft:target_x",x:123.0d,z:-45.0d,rotation:0.0f}}
Values for map_decorations
FieldTypeAccepted formsExample values
Marker IDStringUnique key for a marker in this component."camp"
typeNamespaced IDMarker icon, selected by map decoration type ID.
ValueMeaning
"minecraft:target_x"X-shaped target icon.
"minecraft:red_x"Red X icon.
"minecraft:banner_red"Red banner icon.
"minecraft:village_plains"Plains village icon.
"minecraft:trial_chambers"Trial chambers icon.
xNumber (double)World X coordinate.123.0d
zNumber (double)World Z coordinate.-45.0d
rotationNumber (float)Clockwise rotation in degrees from north.0.0f

Official 1.20.5 release notes

minecraft:map_id

Links a filled map item to shared map data containing its drawing and markers such as banners.

Syntax and examples by version

1.20.5+

Syntax

minecraft:map_id=<integer (int)>

Example (all fields)

minecraft:map_id=1
Values for map_id
FieldTypeAccepted formsExample values
ValueInteger (int)Shared map ID. The item refers to the corresponding stored map.1

Official 1.20.5 release notes

minecraft:max_damage

Sets the item’s maximum durability. Its current wear is tracked by minecraft:damage .

Syntax and examples by version

1.20.5+

Syntax

minecraft:max_damage=<positive integer (int)>

Example (all fields)

minecraft:max_damage=250
Values for max_damage
FieldTypeAccepted formsExample values
ValueInteger (int)A positive integer. Damageable items have a default determined by their type.250

This component requires minecraft:damage and a minecraft:max_stack_size of 1.

Official 1.20.5 release notes

minecraft:max_stack_size

Sets the maximum number of items that can be grouped into one stack.

Syntax and examples by version

1.20.5+

Syntax

minecraft:max_stack_size=<integer from 1 to 99 (int)>

Example (all fields)

minecraft:max_stack_size=16
Values for max_stack_size
FieldTypeAccepted formsExample values
ValueInteger (int)An integer from 1 to 99. The default depends on the item type.16

Only 1 is allowed when minecraft:max_damage is present.

Official 1.20.5 release notes

minecraft:minimum_attack_charge

Sets the minimum fraction of the attack meter required to attack with the item.

Syntax and examples by version

1.21.11+

Syntax

minecraft:minimum_attack_charge=<number from 0.0 to 1.0 (float)>

Example (all fields)

minecraft:minimum_attack_charge=0.5f
Values for minimum_attack_charge
FieldTypeAccepted formsExample values
ValueNumber (float)0.0 to 1.0. Zero requires no charge. One requires a full meter.0.5f

Official 1.21.11 release notes

minecraft:mob_visibility

Changes the distance at which selected mobs can detect the wearer. Set the equipment slot with minecraft:equippable .

Syntax and examples by version

26.3+

Syntax

minecraft:mob_visibility={targeting_entity_types:"<entity ID or #tag ID>" | ["<entity ID>",…],visibility:<number from 0.0 to 10.0 (float)>}

Example (all fields)

minecraft:mob_visibility={targeting_entity_types:["minecraft:zombie","minecraft:husk"],visibility:0.5f}
Values for mob_visibility
FieldTypeAccepted formsExample values
targeting_entity_typesString or listEntity ID, list of IDs, or tag prefixed with #, identifying which mobs are affected.["minecraft:zombie","minecraft:husk"]
visibilityNumber (float)Detection range multiplier from 0.0 to 10.0. At 0.0, mobs still detect the wearer within 2 blocks. Combined gear effects are capped at ten times normal range.0.5f

Official 26.3 release notes

minecraft:note_block_sound

Sets the sound played by a player head on top of a note block. The sound setting is copied to the block when the head is placed.

Syntax and examples by version

1.20.5+

Syntax

minecraft:note_block_sound="<sound event ID>"

Example (all fields)

minecraft:note_block_sound="minecraft:ambient.cave"
Values for note_block_sound
FieldTypeAccepted formsExample values
ValueNamespaced IDID of the sound to play."minecraft:ambient.cave"

Official 1.20.5 release notes

minecraft:ominous_bottle_amplifier

Sets the level of Bad Omen granted by drinking an ominous bottle.

Syntax and examples by version

1.20.5+

Syntax

minecraft:ominous_bottle_amplifier=<integer from 0 to 4 (int)>

Example (all fields)

minecraft:ominous_bottle_amplifier=3
Values for ominous_bottle_amplifier
FieldTypeAccepted formsExample values
ValueInteger (int)An integer from 0 to 4. The effect level is one greater than the stored value.
ValueMeaning
0Bad Omen I
1Bad Omen II
2Bad Omen III
3Bad Omen IV
4Bad Omen V

The component was added in 1.20.5. Ominous bottles became part of standard gameplay in 1.21.

Official 1.20.5 release notes · Official 1.21 release notes

minecraft:piercing_weapon

Lets melee attacks with the item damage multiple entities along the line of sight.

Syntax and examples by version

1.21.11+

Syntax

minecraft:piercing_weapon={deals_knockback:<boolean>[,dismounts:<boolean>][,sound:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]}][,hit_sound:"<sound event ID>" | {sound_id:"<sound ID>"[,range:<number (float)>]}]}

Example (all fields)

minecraft:piercing_weapon={deals_knockback:true,dismounts:false,sound:{sound_id:"minecraft:item.spear.attack",range:16.0f},hit_sound:{sound_id:"minecraft:item.spear.hit",range:16.0f}}
Values for piercing_weapon
FieldTypeAccepted formsExample values
deals_knockbackBooleanWhether the attack applies knockback. Defaults to true.true
dismountsBooleanWhether the attack dismounts the target. Defaults to false.false
soundNamespaced ID or compoundSound when attacking. Optional."minecraft:item.spear.attack"
sound.sound_idNamespaced IDSound ID in an inline definition."minecraft:item.spear.attack"
sound.rangeNumber (float)Fixed audible distance in blocks for an inline definition. Optional.16.0f
hit_soundNamespaced ID or compoundSound when the weapon hits a target. Optional."minecraft:item.spear.hit"
hit_sound.sound_idNamespaced IDSound ID in an inline definition."minecraft:item.spear.hit"
hit_sound.rangeNumber (float)Fixed audible distance in blocks for an inline definition. Optional.16.0f

Use minecraft:attack_range to configure reach.

Official 1.21.11 release notes

minecraft:pot_decorations

Sets the decorations for the four faces of a decorated pot. The settings carry over when the pot is placed.

Syntax and examples by version

26.3+

Syntax

minecraft:pot_decorations={back:"<item ID>" | {id:"<item ID>"[,count:<positive integer (int)>][,components:{"<component ID>":<component value>,…}]}[,left:"<item ID>" | {id:"<item ID>"[,count:<positive integer (int)>][,components:{"<component ID>":<component value>,…}]}][,right:"<item ID>" | {id:"<item ID>"[,count:<positive integer (int)>][,components:{"<component ID>":<component value>,…}]}][,front:"<item ID>" | {id:"<item ID>"[,count:<positive integer (int)>][,components:{"<component ID>":<component value>,…}]}]}

Example (all fields)

minecraft:pot_decorations={back:{id:"minecraft:arms_up_pottery_sherd",count:1,components:{}},left:{id:"minecraft:angler_pottery_sherd",count:1,components:{}},right:{id:"minecraft:danger_pottery_sherd",count:1,components:{}},front:{id:"minecraft:shelter_pottery_sherd",count:1,components:{"minecraft:provides_pottery_pattern":"minecraft:shelter"}}}
1.20.5–26.2

Syntax

minecraft:pot_decorations=["<back item ID>","<left item ID>","<right item ID>","<front item ID>"]

Example (all fields)

minecraft:pot_decorations=["minecraft:arms_up_pottery_sherd","minecraft:angler_pottery_sherd","minecraft:danger_pottery_sherd","minecraft:shelter_pottery_sherd"]
Values for pot_decorations
FieldTypeAccepted formsExample values
ValueListIn 1.20.5–26.2, specify four item IDs in back, left, right, front order.["minecraft:brick","minecraft:brick","minecraft:brick","minecraft:heart_pottery_sherd"]
backNamespaced ID or compoundFrom 26.3, the optional decoration on the back face.{id:"minecraft:arms_up_pottery_sherd",count:1,components:{}}
leftNamespaced ID or compoundFrom 26.3, the optional decoration on the left face.{id:"minecraft:angler_pottery_sherd",count:1,components:{}}
rightNamespaced ID or compoundFrom 26.3, the optional decoration on the right face.{id:"minecraft:danger_pottery_sherd",count:1,components:{}}
frontNamespaced ID or compoundFrom 26.3, the optional decoration on the front face.{id:"minecraft:shelter_pottery_sherd",count:1,components:{}}
idNamespaced IDID of the item for the face."minecraft:shelter_pottery_sherd"
countInteger (int)Size of the item stack. Defaults to 1.1
componentsCompoundOptional item component patch for the stack.{"minecraft:provides_pottery_pattern":"minecraft:shelter"}

From 26.3, the selected stack’s minecraft:provides_pottery_pattern controls the design on its face. A brick gives a plain face.

Official 1.20.5 release notes · Official 26.3 release notes

minecraft:potion_contents

Defines the contents of a potion or tipped arrow. A base potion can be combined with a custom color and additional effects.

Syntax and examples by version

1.21.2+

Syntax

minecraft:potion_contents="<potion ID>" | {potion:"<potion ID>"[,custom_color:<packed RGB integer (int)>][,custom_effects:[{id:"<status effect ID>"[,amplifier:<integer from 0 to 255 (int)>[,duration:<tick count (int)>][,ambient:<boolean>][,show_particles:<boolean>][,show_icon:<boolean>]},…]][,custom_name:"<translation key suffix>"]}

Example (all fields)

minecraft:potion_contents="minecraft:swiftness"
minecraft:potion_contents={potion:"minecraft:swiftness",custom_color:65535,custom_effects:[{id:"minecraft:jump_boost",amplifier:1,duration:600,ambient:false,show_particles:true,show_icon:true}],custom_name:"expedition"}
1.20.5–1.21.1

Syntax

minecraft:potion_contents="<potion ID>" | {potion:"<potion ID>"[,custom_color:<packed RGB integer (int)>][,custom_effects:[{id:"<status effect ID>"[,amplifier:<integer from 0 to 255 (int)>[,duration:<tick count (int)>][,ambient:<boolean>][,show_particles:<boolean>][,show_icon:<boolean>]},…]]}

Example (all fields)

minecraft:potion_contents="minecraft:swiftness"
minecraft:potion_contents={potion:"minecraft:swiftness",custom_color:65535,custom_effects:[{id:"minecraft:jump_boost",amplifier:1,duration:600,ambient:false,show_particles:true,show_icon:true}]}
Values for potion_contents
FieldTypeAccepted formsExample values
potionNamespaced IDBase potion ID. It can also be given directly as the component value."minecraft:swiftness"
custom_colorInteger (int)Optional packed RGB override for the potion color.65535
custom_effectsListExtra status effects to apply. Defaults to an empty list.[{id:"minecraft:jump_boost",duration:600}]
custom_effects[].idNamespaced IDRequired ID of each added status effect."minecraft:jump_boost"
amplifierInteger (int)Effect level minus one. Accepts 0–255 and defaults to 0.1
durationInteger (int)Effect duration in ticks. Defaults to 0. Use -1 for an infinite effect.600
ambientBooleanWhether the effect is ambient. Defaults to false.false
show_particlesBooleanWhether to show particles. Defaults to true.true
show_iconBooleanWhether to show the effect icon. Defaults to true.true
custom_nameStringFrom 1.21.2, the suffix of the translation key used for the potion name. A resource pack can provide the displayed translation."expedition"

Each top-level compound field can be omitted independently. From 1.21.5, minecraft:potion_duration_scale controls the effect duration multiplier.

Vanilla status effect IDs
ValueAvailable versions
minecraft:absorption1.20.5+
minecraft:bad_omen1.20.5+
minecraft:blindness1.20.5+
minecraft:breath_of_the_nautilus1.21.11+
minecraft:conduit_power1.20.5+
minecraft:darkness1.20.5+
minecraft:dolphins_grace1.20.5+
minecraft:fire_resistance1.20.5+
minecraft:glowing1.20.5+
minecraft:haste1.20.5+
minecraft:health_boost1.20.5+
minecraft:hero_of_the_village1.20.5+
minecraft:hunger1.20.5+
minecraft:infested1.20.5+
minecraft:instant_damage1.20.5+
minecraft:instant_health1.20.5+
minecraft:invisibility1.20.5+
minecraft:jump_boost1.20.5+
minecraft:levitation1.20.5+
minecraft:luck1.20.5+
minecraft:mining_fatigue1.20.5+
minecraft:nausea1.20.5+
minecraft:night_vision1.20.5+
minecraft:oozing1.20.5+
minecraft:poison1.20.5+
minecraft:raid_omen1.20.5+
minecraft:regeneration1.20.5+
minecraft:resistance1.20.5+
minecraft:saturation1.20.5+
minecraft:slow_falling1.20.5+
minecraft:slowness1.20.5+
minecraft:speed1.20.5+
minecraft:strength1.20.5+
minecraft:trial_omen1.20.5+
minecraft:unluck1.20.5+
minecraft:water_breathing1.20.5+
minecraft:weakness1.20.5+
minecraft:weaving1.20.5+
minecraft:wind_charged1.20.5+
minecraft:wither1.20.5+

Official 1.20.5 release notes · Official 1.21.2 release notes · Official 1.21.5 release notes

minecraft:potion_duration_scale

Sets the duration multiplier for potion effects. It also applies to custom effects in minecraft:potion_contents .

Syntax and examples by version

1.21.5+

Syntax

minecraft:potion_duration_scale=<non-negative multiplier (float)>

Example (all fields)

minecraft:potion_duration_scale=0.25f
Values for potion_duration_scale
FieldTypeAccepted formsExample values
ValueNumber (float)Non-negative, defaulting to 1.0. Use 0.25 for one quarter of the duration.0.25f

Official 1.21.5 release notes

minecraft:profile

Sets the player profile or skin used by a player head or another item that renders a profile.

Syntax and examples by version

1.21.9+

Syntax

minecraft:profile="<player name>" | {name:"<player name>"[,id:[I;<integer (int)>,<integer (int)>,<integer (int)>,<integer (int)>]][,properties:[{name:"<property name>",value:"<property value>"[,signature:"<signature>"]},…]][,texture:"<texture ID>"][,cape:"<texture ID>"][,elytra:"<texture ID>"][,model:"wide" | "slim"]}

Example (all fields)

minecraft:profile="MHF_Sheep"
minecraft:profile={name:"ExampleSkin",id:[I;1,2,3,4],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkyMDA5YTQ5MjViNThmMDJjNzdkYWRjM2VjZWYwN2VhNGM3NDcyZjY0ZTBmZGMzMmNlNTUyMjQ4OTM2MjY4MCJ9fX0="}],texture:"minecraft:entity/player/wide/steve",cape:"example:entity/cape",elytra:"minecraft:entity/equipment/wings/elytra",model:"wide"}
1.20.5–1.21.8

Syntax

minecraft:profile="<player name>" | {name:"<player name>"[,id:[I;<integer (int)>,<integer (int)>,<integer (int)>,<integer (int)>]][,properties:[{name:"<property name>",value:"<property value>"[,signature:"<signature>"]},…]]}

Example (all fields)

minecraft:profile="MHF_Sheep"
minecraft:profile={name:"ExampleSkin",id:[I;1,2,3,4],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkyMDA5YTQ5MjViNThmMDJjNzdkYWRjM2VjZWYwN2VhNGM3NDcyZjY0ZTBmZGMzMmNlNTUyMjQ4OTM2MjY4MCJ9fX0="}]}
Values for profile
FieldTypeAccepted formsExample values
nameStringPlayer name, up to 16 characters. A name on its own can be used directly as the component value."MHF_Sheep"
idInteger array (int, 4 elements)Player UUID encoded as an array of four integers.[I;1,2,3,4]
propertiesListOptional list of profile properties.[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkyMDA5YTQ5MjViNThmMDJjNzdkYWRjM2VjZWYwN2VhNGM3NDcyZjY0ZTBmZGMzMmNlNTUyMjQ4OTM2MjY4MCJ9fX0="}]
properties[].nameStringProperty name. Use textures for skin data."textures"
properties[].valueStringProperty data. For textures, use a Base64-encoded string containing the texture information."eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkyMDA5YTQ5MjViNThmMDJjNzdkYWRjM2VjZWYwN2VhNGM3NDcyZjY0ZTBmZGMzMmNlNTUyMjQ4OTM2MjY4MCJ9fX0="
properties[].signatureStringOptional signature associated with a signed property value.署名済みプロパティの署名
textureNamespaced IDFrom 1.21.9, the skin texture ID."minecraft:entity/player/wide/steve"
capeNamespaced IDFrom 1.21.9, the cape texture ID."example:entity/cape"
elytraNamespaced IDFrom 1.21.9, the elytra texture ID."minecraft:entity/equipment/wings/elytra"
modelStringFrom 1.21.9, the skin model type.
ValueMeaning
"wide"Standard-width arms.
"slim"Slim arms.

From 1.21.9, specifying only a name or only a UUID makes the profile dynamic. It is static when properties are included, or when both identifiers are specified or both omitted.

The cape in the example requires a resource pack. The example uses an unsigned texture property. Use /fetchprofile from 1.21.9 to obtain signed profile data.

Official 1.20.5 release notes · Official 1.21.9 release notes

minecraft:provides_banner_patterns

Selects which banner patterns an item makes available in a loom.

Syntax and examples by version

26.1+

Syntax

minecraft:provides_banner_patterns="<#-prefixed banner pattern tag>" | "<banner pattern ID>" | ["<banner pattern ID>",…]

Example (all fields)

minecraft:provides_banner_patterns="#minecraft:pattern_item/globe"
minecraft:provides_banner_patterns="minecraft:globe"
minecraft:provides_banner_patterns=["minecraft:globe","minecraft:creeper"]
1.21.5–1.21.11

Syntax

minecraft:provides_banner_patterns="<#-prefixed banner pattern tag>"

Example (all fields)

minecraft:provides_banner_patterns="#minecraft:pattern_item/globe"
Values for provides_banner_patterns
FieldTypeAccepted formsExample values
ValueNamespaced IDA banner pattern tag prefixed with #. Patterns in the tag become available."#minecraft:pattern_item/globe"
ValueNamespaced IDFrom 26.1, one banner pattern ID."minecraft:globe"
ValueListFrom 26.1, a list of banner pattern IDs.["minecraft:globe","minecraft:creeper"]

Official 1.21.5 release notes · Official 26.1 release notes

minecraft:provides_pottery_pattern

Selects the design shown on a decorated pot face when the item is used for that face.

Syntax and examples by version

26.3+

Syntax

minecraft:provides_pottery_pattern="<decorated pot pattern ID>"

Example (all fields)

minecraft:provides_pottery_pattern="minecraft:angler"
Values for provides_pottery_pattern
FieldTypeAccepted formsExample values
ValueNamespaced IDAn ID in the minecraft:decorated_pot_pattern registry."minecraft:angler"

Use minecraft:pot_decorations to assign the item stack to a particular face.

Official 26.3 release notes

minecraft:provides_trim_material

Selects the trim material an item provides when used in a smithing trim recipe.

Syntax and examples by version

26.3+

Syntax

minecraft:provides_trim_material="<trim material ID>" | {palette_id:"<palette ID>",description:<text component>}

Example (all fields)

minecraft:provides_trim_material="minecraft:iron"
minecraft:provides_trim_material={palette_id:"minecraft:trim/iron",description:{text:"Iron",color:"#ECECEC"}}
1.21.5–26.2

Syntax

minecraft:provides_trim_material="<trim material ID>" | {asset_name:"<palette name>",description:<text component>[,override_armor_assets:{"<equipment type>":"<override palette name>",…}]}

Example (all fields)

minecraft:provides_trim_material="minecraft:iron"
minecraft:provides_trim_material={asset_name:"iron",description:{text:"Iron",color:"#ECECEC"},override_armor_assets:{"minecraft:iron":"iron_darker"}}
Values for provides_trim_material
FieldTypeAccepted formsExample values
ValueNamespaced ID or compoundA registered trim material ID or an inline material definition."minecraft:iron"
palette_idNamespaced IDFrom 26.3, the palette texture ID for the trim material."minecraft:trim/iron"
asset_nameStringThrough 26.2, the palette name for the trim material."iron"
descriptionText componentTooltip name and style of the material.{text:"Iron",color:"#ECECEC"}
override_armor_assetsCompoundIn 1.21.4–26.2, optional palette overrides keyed by equipment asset ID.{"minecraft:iron":"iron_darker"}

Vanilla smithing recipes also require the item to be in the #minecraft:trim_materials tag.

Official 1.21.5 release notes · Official 26.3 release notes

minecraft:rarity

Sets an item’s rarity, affecting its default name color.

Syntax and examples by version

1.20.5+

Syntax

minecraft:rarity="<rarity>"

Example (all fields)

minecraft:rarity="rare"
Values for rarity
FieldTypeAccepted formsExample values
ValueStringOne of four values. Items can have their own defaults, with common as the fallback.
ValueMeaning
"common"White, or aqua when enchanted.
"uncommon"Yellow, or aqua when enchanted.
"rare"Aqua, or light purple when enchanted.
"epic"Light purple.

Official 1.20.5 release notes

minecraft:recipes

Lists the crafting recipes unlocked by using a knowledge book.

Syntax and examples by version

1.20.5+

Syntax

minecraft:recipes=["<recipe ID>",…]

Example (all fields)

minecraft:recipes=["minecraft:acacia_boat","minecraft:anvil"]
Values for recipes
FieldTypeAccepted formsExample values
ValueListList of recipe IDs to unlock. Knowledge books default to an empty list.["minecraft:acacia_boat","minecraft:anvil"]
Each entryNamespaced IDAn ID of a recipe registered by the game or a data pack."minecraft:acacia_boat"

Official 1.20.5 release notes

minecraft:repair_cost

Sets the additional experience level cost when an item is worked on in an anvil.

Syntax and examples by version

1.20.5+

Syntax

minecraft:repair_cost=<non-negative integer (int)>

Example (all fields)

minecraft:repair_cost=12
Values for repair_cost
FieldTypeAccepted formsExample values
ValueInteger (int)A non-negative integer. Defaults to 0.12

Official 1.20.5 release notes

minecraft:repairable

Specifies ingredients that can repair a damageable item in an anvil.

Syntax and examples by version

1.21.2+

Syntax

minecraft:repairable={items:"<item ID>" | ["<item ID>",…] | "<#-prefixed item tag ID>"}

Example (all fields)

minecraft:repairable={items:"minecraft:leather"}
minecraft:repairable={items:["minecraft:iron_ingot","minecraft:copper_ingot"]}
minecraft:repairable={items:"#minecraft:planks"}
Values for repairable
FieldTypeAccepted formsExample values
itemsString or listAn item ID, a list of item IDs, or an item tag prefixed with #."#minecraft:planks"

Official 1.21.2 release notes

minecraft:sign_text_back

Sets the text on the back of a sign or hanging sign. The item tooltip also shows the text.

Syntax and examples by version

26.3+

Syntax

minecraft:sign_text_back={messages:[<line 1 text component>,<line 2 text component>,<line 3 text component>,<line 4 text component>][,filtered_messages:[<line 1 text component>,<line 2 text component>,<line 3 text component>,<line 4 text component>]][,color:"<dye color>"][,has_glowing_text:<boolean>]}

Example (all fields)

minecraft:sign_text_back={messages:["Return","to","the","village"],filtered_messages:["Return","to","the","***"],color:"blue",has_glowing_text:true}
Values for sign_text_back
FieldTypeAccepted formsExample values
messagesListFour text components, one per line. Use an empty string for a blank line.["Return","to","the","village"]
filtered_messagesListFour lines used when text filtering is enabled. Defaults to messages.["Return","to","the","***"]
colorStringDye color of the text. Defaults to black.
ValueMeaning
"white"White
"orange"Orange
"magenta"Magenta
"light_blue"Light blue
"yellow"Yellow
"lime"Lime
"pink"Pink
"gray"Gray
"light_gray"Light gray
"cyan"Cyan
"purple"Purple
"blue"Blue
"brown"Brown
"green"Green
"red"Red
"black"Black
has_glowing_textBooleanWhether the text glows. Defaults to false.true

Use minecraft:sign_text_front to set the text on the other side.

Official 26.3 release notes

minecraft:sign_text_front

Sets the text on the front of a sign or hanging sign. The item tooltip also shows the text.

Syntax and examples by version

26.3+

Syntax

minecraft:sign_text_front={messages:[<line 1 text component>,<line 2 text component>,<line 3 text component>,<line 4 text component>][,filtered_messages:[<line 1 text component>,<line 2 text component>,<line 3 text component>,<line 4 text component>]][,color:"<dye color>"][,has_glowing_text:<boolean>]}

Example (all fields)

minecraft:sign_text_front={messages:["Welcome","to","the","village"],filtered_messages:["Welcome","to","the","***"],color:"black",has_glowing_text:true}
Values for sign_text_front
FieldTypeAccepted formsExample values
messagesListFour text components, one per line. Use an empty string for a blank line.["Welcome","to","the","village"]
filtered_messagesListFour lines used when text filtering is enabled. Defaults to messages.["Welcome","to","the","***"]
colorStringDye color of the text. Defaults to black.
ValueMeaning
"white"White
"orange"Orange
"magenta"Magenta
"light_blue"Light blue
"yellow"Yellow
"lime"Lime
"pink"Pink
"gray"Gray
"light_gray"Light gray
"cyan"Cyan
"purple"Purple
"blue"Blue
"brown"Brown
"green"Green
"red"Red
"black"Black
has_glowing_textBooleanWhether the text glows. Defaults to false.true

Use minecraft:sign_text_back to set the text on the other side.

Official 26.3 release notes

minecraft:stored_enchantments

Stores enchantments and levels on an enchanted book so they can be applied to another item in an anvil.

Syntax and examples by version

1.21.5+

Syntax

minecraft:stored_enchantments={"<enchantment ID>":<level (int)>,…}

Example (all fields)

minecraft:stored_enchantments={"minecraft:sharpness":4,"minecraft:unbreaking":2}
1.20.5–1.21.4

Syntax

minecraft:stored_enchantments={levels:{"<enchantment ID>":<level (int)>,…}[,show_in_tooltip:<boolean>]} | {"<enchantment ID>":<level (int)>,…}

Example (all fields)

minecraft:stored_enchantments={levels:{"minecraft:sharpness":4,"minecraft:unbreaking":2},show_in_tooltip:true}
minecraft:stored_enchantments={"minecraft:sharpness":4,"minecraft:unbreaking":2}
Values for stored_enchantments
FieldTypeAccepted formsExample values
levelsCompoundEnchantment-to-level map in the wrapped 1.20.5–1.21.4 form.{"minecraft:sharpness":4,"minecraft:unbreaking":2}
Enchantment IDNamespaced IDEach key is a registered enchantment ID."minecraft:sharpness"
LevelInteger (int)An integer from 0 to 255.4
show_in_tooltipBooleanIn 1.20.5–1.21.4, whether to show the enchantments in the tooltip. Defaults to true.true

Use minecraft:enchantments to apply effects directly to an item. For visibility from 1.21.5, use minecraft:tooltip_display .

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:sulfur_cube_content

Records the item absorbed by a sulfur cube. On an item stack, the component displays the absorbed item in the tooltip.

Syntax and examples by version

26.2+

Syntax

minecraft:sulfur_cube_content="<item ID>" | {id:"<item ID>"[,count:<positive integer (int)>][,components:{"<component ID>":<component value>,…}]}

Example (all fields)

minecraft:sulfur_cube_content="minecraft:green_wool"
minecraft:sulfur_cube_content={id:"minecraft:green_wool",count:1,components:{"minecraft:custom_name":{text:"Absorbed Wool"}}}
Values for sulfur_cube_content
FieldTypeAccepted formsExample values
ValueNamespaced ID or compoundThe absorbed item, as an item ID or an item stack."minecraft:green_wool"
idNamespaced IDID of the absorbed item."minecraft:green_wool"
countInteger (int)Size of the item stack. Defaults to 1.1
componentsCompoundOptional item component patch for the stack.{"minecraft:custom_name":{text:"Absorbed Wool"}}

Official 26.2 release notes

minecraft:suspicious_stew_effects

Lists the status effects applied when suspicious stew is consumed.

Syntax and examples by version

1.20.5+

Syntax

minecraft:suspicious_stew_effects=[{id:"<status effect ID>"[,duration:<tick count (int)>]},…]

Example (all fields)

minecraft:suspicious_stew_effects=[{id:"minecraft:night_vision",duration:100},{id:"minecraft:saturation",duration:7}]
Values for suspicious_stew_effects
FieldTypeAccepted formsExample values
ValueListList of effects applied on consumption. Suspicious stew defaults to an empty list.[{id:"minecraft:night_vision",duration:100}]
idNamespaced IDStatus effect ID."minecraft:night_vision"
durationInteger (int)Effect duration in ticks. Defaults to 160.100
Vanilla status effect IDs
ValueAvailable versions
minecraft:absorption1.20.5+
minecraft:bad_omen1.20.5+
minecraft:blindness1.20.5+
minecraft:breath_of_the_nautilus1.21.11+
minecraft:conduit_power1.20.5+
minecraft:darkness1.20.5+
minecraft:dolphins_grace1.20.5+
minecraft:fire_resistance1.20.5+
minecraft:glowing1.20.5+
minecraft:haste1.20.5+
minecraft:health_boost1.20.5+
minecraft:hero_of_the_village1.20.5+
minecraft:hunger1.20.5+
minecraft:infested1.20.5+
minecraft:instant_damage1.20.5+
minecraft:instant_health1.20.5+
minecraft:invisibility1.20.5+
minecraft:jump_boost1.20.5+
minecraft:levitation1.20.5+
minecraft:luck1.20.5+
minecraft:mining_fatigue1.20.5+
minecraft:nausea1.20.5+
minecraft:night_vision1.20.5+
minecraft:oozing1.20.5+
minecraft:poison1.20.5+
minecraft:raid_omen1.20.5+
minecraft:regeneration1.20.5+
minecraft:resistance1.20.5+
minecraft:saturation1.20.5+
minecraft:slow_falling1.20.5+
minecraft:slowness1.20.5+
minecraft:speed1.20.5+
minecraft:strength1.20.5+
minecraft:trial_omen1.20.5+
minecraft:unluck1.20.5+
minecraft:water_breathing1.20.5+
minecraft:weakness1.20.5+
minecraft:weaving1.20.5+
minecraft:wind_charged1.20.5+
minecraft:wither1.20.5+

Official 1.20.5 release notes

minecraft:swing_animation

Sets the swing animation used when attacking or interacting with the item.

Syntax and examples by version

1.21.11–26.2

Syntax

minecraft:swing_animation={type:"<animation type>"[,duration:<positive integer (int)>]}

Example (all fields)

minecraft:swing_animation={type:"stab",duration:12}
Values for swing_animation
FieldTypeAccepted formsExample values
typeStringAnimation type. Defaults to whack.
ValueMeaning
"none"Play no swing animation.
"whack"Standard swing animation.
"stab"Thrust animation.
durationInteger (int)Animation length in ticks. Use a positive integer. Defaults to 6.12

In 26.3, this was split into minecraft:attack_animation for attacks and minecraft:interact_animation for interactions. Assign the old value to both to carry over the item’s settings.

Official 1.21.11 release notes · Official 26.3 release notes

minecraft:tool

Configures mining speed, which blocks the tool is suitable for, and the durability cost of breaking blocks.

Syntax and examples by version

1.21.5+

Syntax

minecraft:tool={rules:[{blocks:"<block ID>" | ["<block ID>",…] | "<#-prefixed block tag ID>"[,speed:<number (float)>][,correct_for_drops:<boolean>]},…][,default_mining_speed:<number (float)>][,damage_per_block:<non-negative integer (int)>][,can_destroy_blocks_in_creative:<boolean>]}

Example (all fields)

minecraft:tool={rules:[{blocks:"#minecraft:mineable/pickaxe",speed:6.0f,correct_for_drops:true}],default_mining_speed:1.0f,damage_per_block:2,can_destroy_blocks_in_creative:false}
1.20.5–1.21.4

Syntax

minecraft:tool={rules:[{blocks:"<block ID>" | ["<block ID>",…] | "<#-prefixed block tag ID>"[,speed:<number (float)>][,correct_for_drops:<boolean>]},…][,default_mining_speed:<number (float)>][,damage_per_block:<non-negative integer (int)>]}

Example (all fields)

minecraft:tool={rules:[{blocks:"#minecraft:mineable/pickaxe",speed:6.0f,correct_for_drops:true}],default_mining_speed:1.0f,damage_per_block:2}
Values for tool
FieldTypeAccepted formsExample values
rulesListList of block rules, checked in order.[{blocks:"#minecraft:mineable/pickaxe",speed:6.0f,correct_for_drops:true}]
rules[].blocksString or listA block ID, list of block IDs, or # prefixed block tag."#minecraft:mineable/pickaxe"
rules[].speedNumber (float)Optional mining speed override for matching blocks.6.0f
rules[].correct_for_dropsBooleanOptional override for whether the tool qualifies for drops.true
default_mining_speedNumber (float)Mining speed when no matching rule supplies one. Defaults to 1.0.1.0f
damage_per_blockInteger (int)Durability cost per block mined. Non-negative and defaults to 1.2
can_destroy_blocks_in_creativeBooleanFrom 1.21.5, whether Creative players can break blocks while holding the tool. Defaults to true.false

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:tooltip_display

Hides an entire item tooltip or entries supplied by specific components.

Syntax and examples by version

1.21.5+

Syntax

minecraft:tooltip_display={hide_tooltip:<boolean>[,hidden_components:["<component ID>",…]]}

Example (all fields)

minecraft:tooltip_display={hide_tooltip:false,hidden_components:["minecraft:enchantments","minecraft:attribute_modifiers"]}
Values for tooltip_display
FieldTypeAccepted formsExample values
hide_tooltipBooleanTrue hides the entire tooltip. Defaults to false.false
hidden_componentsListIDs of components whose entries should be hidden. Defaults to an empty list.["minecraft:enchantments","minecraft:attribute_modifiers"]

The example keeps the tooltip visible and hides enchantment and attribute modifier entries. Either field can be omitted.

Official 1.21.5 release notes

minecraft:tooltip_style

Changes the tooltip background and frame using resource pack sprites.

Syntax and examples by version

1.21.2+

Syntax

minecraft:tooltip_style="<tooltip style ID>"

Example (all fields)

minecraft:tooltip_style="example:relic"
Values for tooltip_style
FieldTypeAccepted formsExample values
ValueNamespaced IDTooltip style ID resolved from the resource pack."example:relic"

For example:relic , the two sprite IDs are example:tooltip/relic_background and example:tooltip/relic_frame .

Official 1.21.2 release notes

minecraft:trim

Sets a trim pattern and material. Each can be a registry ID or an inline definition.

Syntax and examples by version

26.3+

Syntax

minecraft:trim={material:"<trim material ID>" | {palette_id:"<palette ID>",description:<text component>},pattern:"<trim pattern ID>" | {asset_id:"<pattern texture ID>",description:<text component>[,decal:<boolean>]}}

Example (all fields)

minecraft:trim={material:"minecraft:iron",pattern:"minecraft:silence"}
minecraft:trim={material:{palette_id:"minecraft:trim/iron",description:{text:"Iron",color:"#ECECEC"}},pattern:{asset_id:"minecraft:silence",description:{text:"Silence"},decal:false}}
1.21.5–26.2

Syntax

minecraft:trim={material:"<trim material ID>" | {asset_name:"<palette name>",description:<text component>[,override_armor_assets:{"<equipment type>":"<override palette name>",…}]},pattern:"<trim pattern ID>" | {asset_id:"<pattern texture ID>",description:<text component>[,decal:<boolean>]}}

Example (all fields)

minecraft:trim={material:{asset_name:"iron",description:{text:"Iron",color:"#ECECEC"},override_armor_assets:{"minecraft:iron":"iron_darker"}},pattern:{asset_id:"minecraft:silence",description:{text:"Silence"},decal:false}}
1.21.4

Syntax

minecraft:trim={material:"<trim material ID>" | {asset_name:"<palette name>",ingredient:"<item ID>",description:<text component>[,override_armor_assets:{"<equipment type>":"<override palette name>",…}]},pattern:"<trim pattern ID>" | {asset_id:"<pattern texture ID>",template_item:"<item ID>",description:<text component>[,decal:<boolean>]}[,show_in_tooltip:<boolean>]}

Example (all fields)

minecraft:trim={material:{asset_name:"iron",ingredient:"minecraft:iron_ingot",description:{text:"Iron",color:"#ECECEC"},override_armor_assets:{"minecraft:iron":"iron_darker"}},pattern:{asset_id:"minecraft:silence",template_item:"minecraft:silence_armor_trim_smithing_template",description:{text:"Silence"},decal:false},show_in_tooltip:false}
1.20.5–1.21.3

Syntax

minecraft:trim={material:"<trim material ID>" | {asset_name:"<palette name>",ingredient:"<item ID>",item_model_index:<number (float)>,description:<text component>[,override_armor_materials:{"<equipment type>":"<override palette name>",…}]},pattern:"<trim pattern ID>" | {asset_id:"<pattern texture ID>",template_item:"<item ID>",description:<text component>[,decal:<boolean>]}[,show_in_tooltip:<boolean>]}

Example (all fields)

minecraft:trim={material:{asset_name:"iron",ingredient:"minecraft:iron_ingot",item_model_index:0.2f,description:{text:"Iron",color:"#ECECEC"},override_armor_materials:{iron:"iron_darker"}},pattern:{asset_id:"minecraft:silence",template_item:"minecraft:silence_armor_trim_smithing_template",description:{text:"Silence"},decal:false},show_in_tooltip:false}
Values for trim
FieldTypeAccepted formsExample values
materialNamespaced ID or compoundTrim material ID or inline definition defining the color."minecraft:iron"
material.palette_idNamespaced IDFrom 26.3, the palette texture ID for the trim material."minecraft:trim/iron"
material.asset_nameStringThrough 26.2, the palette name for the trim material."iron"
material.descriptionText componentTooltip name and style of the material.{text:"Iron",color:"#ECECEC"}
material.override_armor_assetsCompoundIn 1.21.4–26.2, optional palette overrides keyed by equipment asset ID.{"minecraft:iron":"iron_darker"}
material.ingredientNamespaced IDFrom 1.20.5 through 1.21.4, the item used as the trim material ingredient."minecraft:iron_ingot"
material.item_model_indexNumber (float)From 1.20.5 through 1.21.3, the value used to select an item model for the material.0.2f
material.override_armor_materialsCompoundFrom 1.20.5 through 1.21.3, optional palette overrides keyed by armor material.{iron:"iron_darker"}
patternNamespaced ID or compoundTrim pattern ID or inline definition."minecraft:silence"
pattern.asset_idNamespaced IDID used to locate the trim pattern texture."minecraft:silence"
pattern.descriptionText componentTrim pattern name displayed in the tooltip.{text:"Silence"}
pattern.decalBooleanWhether to mask the pattern to match transparent pixels in the underlying armor. Defaults to false.false
pattern.template_itemNamespaced IDFrom 1.20.5 through 1.21.4, the smithing template item for applying the pattern."minecraft:silence_armor_trim_smithing_template"
show_in_tooltipBooleanFrom 1.20.5 through 1.21.4, whether to show trim information in the tooltip. Defaults to true.false

From 1.21.5, minecraft:tooltip_display controls trim visibility. From 26.3, equipment assets in the resource pack define per-armor palette overrides.

Official 1.20.5 release notes · Official 1.21.4 release notes · Official 1.21.5 release notes · Official 26.3 release notes

minecraft:unbreakable

Prevents the item from losing durability through use.

Syntax and examples by version

1.21.5+

Syntax

minecraft:unbreakable={}

Example (all fields)

minecraft:unbreakable={}
1.20.5–1.21.4

Syntax

minecraft:unbreakable={show_in_tooltip:<boolean>} | {}

Example (all fields)

minecraft:unbreakable={show_in_tooltip:false}
Values for unbreakable
FieldTypeAccepted formsExample values
ValueCompoundFrom 1.21.5, use an empty compound.{}
show_in_tooltipBooleanIn 1.20.5–1.21.4, whether to show the Unbreakable line. Defaults to true.false

From 1.21.5, the minecraft:tooltip_display field hidden_components can include minecraft:unbreakable to hide the Unbreakable line.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:use_cooldown

Sets how long items of the same type or cooldown group must wait before they can be used again.

Syntax and examples by version

1.21.2+

Syntax

minecraft:use_cooldown={seconds:<positive duration in seconds (float)>[,cooldown_group:"<cooldown group ID>"]}

Example (all fields)

minecraft:use_cooldown={seconds:1.5f,cooldown_group:"example:healing_items"}
Values for use_cooldown
FieldTypeAccepted formsExample values
secondsNumber (float)Positive cooldown duration in seconds.1.5f
cooldown_groupNamespaced IDID of the group that shares the cooldown. Defaults to the base item ID."example:healing_items"

Official 1.21.2 release notes

minecraft:use_effects

Controls player movement while using the item and the vibration game events emitted during use.

Syntax and examples by version

1.21.11+

Syntax

minecraft:use_effects={can_sprint:<boolean>[,interact_vibrations:<boolean>][,speed_multiplier:<multiplier from 0.0 to 1.0 (float)>]}

Example (all fields)

minecraft:use_effects={can_sprint:true,interact_vibrations:false,speed_multiplier:0.75f}
Values for use_effects
FieldTypeAccepted formsExample values
can_sprintBooleanWhether the player can sprint during use. Defaults to false.true
interact_vibrationsBooleanWhether to emit item interaction start and finish game events. Defaults to true.false
speed_multiplierNumber (float)Movement speed multiplier during use, from 0.0 to 1.0. Defaults to 0.2.0.75f

Each field can be omitted independently. interact_vibrations controls minecraft:item_interact_start and minecraft:item_interact_finish .

Official 1.21.11 release notes

minecraft:use_remainder

Sets the item stack left behind when using the original item reduces its stack size.

Syntax and examples by version

1.21.2+

Syntax

minecraft:use_remainder={id:"<item ID>"[,count:<positive item count (int)>][,components:{"<component ID>":<value>,…}]}

Example (all fields)

minecraft:use_remainder={id:"minecraft:bowl",count:1,components:{"minecraft:custom_data":{returned:1b}}}
Values for use_remainder
FieldTypeAccepted formsExample values
idNamespaced IDID of the remainder item."minecraft:bowl"
countInteger (int)Size of the remainder stack. Defaults to 1.1
componentsCompoundOptional component patch for the remainder.{"minecraft:custom_data":{returned:1b}}

The remainder replaces an emptied stack. If the original stack still contains items, the remainder enters the inventory or drops if the inventory is full.

Official 1.21.2 release notes

minecraft:villager_food

Makes the item available for villagers to pick up and eat, and sets how much hunger it satisfies.

Syntax and examples by version

26.3+

Syntax

minecraft:villager_food={nutrition:<positive integer (int)>}

Example (all fields)

minecraft:villager_food={nutrition:4}
Values for villager_food
FieldTypeAccepted formsExample values
nutritionInteger (int)Villager hunger points satisfied by eating the item. Use a positive integer.4

Official 26.3 release notes

minecraft:waxed

Marks block contents as waxed. On signs and hanging signs, this prevents editing the text after placement.

Syntax and examples by version

26.3+

Syntax

minecraft:waxed={}

Example (all fields)

minecraft:waxed={}
Values for waxed
FieldTypeAccepted formsExample values
ValueCompoundUse an empty compound.{}

Use minecraft:sign_text_front and minecraft:sign_text_back to set the text itself.

Official 26.3 release notes

minecraft:weapon

Sets durability loss per attack and the duration for which an attack disables the target’s blocking.

Syntax and examples by version

1.21.5+

Syntax

minecraft:weapon={item_damage_per_attack:<non-negative integer (int)>[,disable_blocking_for_seconds:<non-negative duration in seconds (float)>]}

Example (all fields)

minecraft:weapon={item_damage_per_attack:2,disable_blocking_for_seconds:5.0f}
Values for weapon
FieldTypeAccepted formsExample values
item_damage_per_attackInteger (int)Durability points lost per attack. Non-negative and defaults to 1.2
disable_blocking_for_secondsNumber (float)Seconds that blocking is disabled when the attack is blocked. Non-negative and defaults to 0.5.0f

Each field can be omitted independently. Having the component also increments the item’s use statistic on attack.

Official 1.21.5 release notes

minecraft:writable_book_content

Sets the editable pages of a book and quill before it is signed.

Syntax and examples by version

1.21.5+

Syntax

minecraft:writable_book_content={pages:["<plain page text>" | {raw:"<plain page text>"[,filtered:"<filtered plain page text>"]},…]}

Example (all fields)

minecraft:writable_book_content={pages:["Field notes",{raw:"North trail is closed.",filtered:"North trail unavailable."}]}
1.20.5–1.21.4

Syntax

minecraft:writable_book_content={pages:["<plain page text>",…]} | {pages:[{raw:"<plain page text>"[,filtered:"<filtered plain page text>"]},…]}

Example (all fields)

minecraft:writable_book_content={pages:[{raw:"North trail is closed.",filtered:"North trail unavailable."}]}
Values for writable_book_content
FieldTypeAccepted formsExample values
pagesListUp to 100 pages. Each page is a string or a compound with raw and optional filtered. An empty list gives a blank book.[{raw:"North trail is closed.",filtered:"North trail unavailable."}]
pages[].rawStringPlain page text. A string used directly is treated as this value."North trail is closed."
pages[].filteredStringOptional plain text shown to players who have text filtering enabled."North trail unavailable."

Through 1.21.4, each list must use only strings or only compounds. Use minecraft:written_book_content for the cover and pages of a signed book.

Official 1.20.5 release notes · Official 1.21.5 release notes

minecraft:written_book_content

Sets the title, author, copy generation and pages of a written book. Pages can use formatting such as color.

Syntax and examples by version

1.21.5+

Syntax

minecraft:written_book_content={title:"<plain-text title>" | {raw:"<plain-text title>"[,filtered:"<filtered plain-text title>"]},author:"<author name>"[,generation:<integer from 0 to 3 (int)>][,pages:[<text component> | {raw:<text component>[,filtered:<filtered text component>]},…]][,resolved:<boolean>]}

Example (all fields)

minecraft:written_book_content={title:{raw:"Expedition Log",filtered:"Journey Log"},author:"Vivian",generation:1,pages:[{raw:{text:"Follow the north trail.",color:"dark_green"},filtered:{text:"Follow the marked trail.",color:"dark_green"}}],resolved:true}
1.20.5–1.21.4

Syntax

minecraft:written_book_content={title:"<plain-text title>" | {raw:"<plain-text title>"[,filtered:"<filtered plain-text title>"]},author:"<author name>"[,generation:<integer from 0 to 3 (int)>][,pages:['<JSON text>' | {raw:'<JSON text>'[,filtered:'<filtered JSON text>']},…]][,resolved:<boolean>]}

Example (all fields)

minecraft:written_book_content={title:{raw:"Expedition Log",filtered:"Journey Log"},author:"Vivian",generation:1,pages:[{raw:'{"text":"Follow the north trail.","color":"dark_green"}',filtered:'{"text":"Follow the marked trail.","color":"dark_green"}'}],resolved:true}
Values for written_book_content
FieldTypeAccepted formsExample values
titleString or compoundPlain-text title, or a compound with raw and optional filtered.{raw:"Expedition Log",filtered:"Journey Log"}
title.rawStringTitle shown by default, up to 32 characters."Expedition Log"
title.filteredStringOptional title shown to players who have text filtering enabled."Journey Log"
authorStringAuthor shown in the tooltip."Vivian"
generationInteger (int)Copy generation from 0 to 3. Defaults to 0.
ValueMeaning
0Original.
1Copy of original.
2Copy of a copy.
3Tattered.
pagesListPage contents. Give each page directly or use raw with optional filtered.[{raw:{text:"Follow the north trail.",color:"dark_green"},filtered:{text:"Follow the marked trail.",color:"dark_green"}}]
pages[].rawText componentFrom 1.21.5, write the page content directly as a text component in SNBT.{text:"Follow the north trail.",color:"dark_green"}
pages[].filteredText componentFrom 1.21.5, optional replacement page content in SNBT for players using the text filter.{text:"Follow the marked trail.",color:"dark_green"}
pages[].rawString containing JSON textIn 1.20.5–1.21.4, put the JSON page content inside a string.'{"text":"Follow the north trail.","color":"dark_green"}'
pages[].filteredString containing JSON textIn 1.20.5–1.21.4, optionally supply the filtered page as JSON inside a string.'{"text":"Follow the marked trail.","color":"dark_green"}'
resolvedBooleanWhether selectors, scores and similar text components have already been resolved. Defaults to false.true

The page format changed in 1.21.5. Titles use plain strings in both formats.

Official 1.20.5 release notes · Official 1.21.5 release notes

Ad space (preview)