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}
| Field | Type | Accepted forms | Example values | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
type |
String | Animation type. Optional. The default is "whack". |
|
||||||||
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}
| Field | Type | Accepted forms | Example 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 |
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.
| Field | Type | Accepted forms | Example values | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
modifiers | List of objects | Holds the list in the object form (through 1.21.4) | [] | ||||||||||||||||||||||||
type | String | Attribute ID. From 1.21.2, omit the generic., player., and zombie. prefixes. | List of attribute IDs | ||||||||||||||||||||||||
uuid | Integer array (int) | Four-integer UUID identifying the modifier (1.20.5–1.20.6) | [I;1,2,3,4] | ||||||||||||||||||||||||
name | String | Modifier name (1.20.5–1.20.6) | "Bonus damage" | ||||||||||||||||||||||||
id | String | Namespaced modifier ID, unique within each attribute (1.21+). | "example:bonus_damage" | ||||||||||||||||||||||||
amount | Number (double) | Numeric amount. Negative values are allowed. | 3.0, -0.2 | ||||||||||||||||||||||||
operation | String | How to calculate the modifier |
|
||||||||||||||||||||||||
slot | String | Equipment slot that activates the modifier |
|
||||||||||||||||||||||||
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) | Meaning | Availability |
|---|---|---|---|
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"
| Field | Type | Accepted forms | Example values | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<色> |
String | A dye color name as a string. |
|
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}]
| Field | Type | Accepted forms | Example 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.
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"}
| Field | Type | Accepted forms | Example 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.
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"}
| Field | Type | Accepted forms | Example 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.
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<ブロック変換ID> | String | A namespaced ID registered in the block transformer registry. | "minecraft:axe" |
Vanilla transformer IDs
| Value | Meaning |
|---|---|
"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.
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"}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
block_delay_seconds | Number (float) | Seconds before blocking takes effect. Non-negative; default 0. | 0.25 |
disable_cooldown_scale | Number (float) | Cooldown multiplier when an attack disables blocking. Non-negative; default 1. Zero prevents attacks from disabling it. | 1.0 |
damage_reductions | List of objects | List of rules defining how much damage to block. | [{horizontal_blocking_angle:90.0,type:"minecraft:arrow",base:0.0,factor:1.0}] |
item_damage | Object | Determines the durability damage based on how much damage was blocked. | {threshold:3.0,base:1.0,factor:1.0} |
bypassed_by | String or list of strings | Damage 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_sound | Sound event | Sound event played when blocking succeeds. | "minecraft:item.shield.block" |
disabled_sound | Sound event | Sound event played when an attack disables blocking. | "minecraft:item.shield.break" |
Damage reduction fields
| Field | Type | Meaning |
|---|---|---|
horizontal_blocking_angle | Number (float) | Allowed angle between the defender facing and the incoming attack. Default: 90 degrees. |
type | String or list of strings |
Damage type ID, list of IDs, or tag. Defaults to all types. Vanilla damage type IDs · Vanilla damage type tags |
base | Number (float) | Flat amount of damage blocked. |
factor | Number (float) | Fraction of the incoming damage to add to the blocked amount. |
Durability damage fields
| Field | Type | Meaning |
|---|---|---|
threshold | Number (float) | Minimum blocked damage before durability damage applies. Non-negative. |
base | Number (float) | Flat durability damage when the threshold is met. |
factor | Number (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
| Value | Available versions |
|---|---|
minecraft:arrow | 1.21.5+ |
minecraft:bad_respawn_point | 1.21.5+ |
minecraft:cactus | 1.21.5+ |
minecraft:campfire | 1.21.5+ |
minecraft:cramming | 1.21.5+ |
minecraft:dragon_breath | 1.21.5+ |
minecraft:drown | 1.21.5+ |
minecraft:dry_out | 1.21.5+ |
minecraft:ender_pearl | 1.21.5+ |
minecraft:explosion | 1.21.5+ |
minecraft:fall | 1.21.5+ |
minecraft:falling_anvil | 1.21.5+ |
minecraft:falling_block | 1.21.5+ |
minecraft:falling_stalactite | 1.21.5+ |
minecraft:fireball | 1.21.5+ |
minecraft:fireworks | 1.21.5+ |
minecraft:fly_into_wall | 1.21.5+ |
minecraft:freeze | 1.21.5+ |
minecraft:generic | 1.21.5+ |
minecraft:generic_kill | 1.21.5+ |
minecraft:hot_floor | 1.21.5+ |
minecraft:in_fire | 1.21.5+ |
minecraft:in_wall | 1.21.5+ |
minecraft:indirect_magic | 1.21.5+ |
minecraft:lava | 1.21.5+ |
minecraft:lightning_bolt | 1.21.5+ |
minecraft:mace_smash | 1.21.5+ |
minecraft:magic | 1.21.5+ |
minecraft:mob_attack | 1.21.5+ |
minecraft:mob_attack_no_aggro | 1.21.5+ |
minecraft:mob_projectile | 1.21.5+ |
minecraft:on_fire | 1.21.5+ |
minecraft:out_of_world | 1.21.5+ |
minecraft:outside_border | 1.21.5+ |
minecraft:player_attack | 1.21.5+ |
minecraft:player_explosion | 1.21.5+ |
minecraft:sonic_boom | 1.21.5+ |
minecraft:spear | 1.21.11+ |
minecraft:spit | 1.21.5+ |
minecraft:stalagmite | 1.21.5+ |
minecraft:starve | 1.21.5+ |
minecraft:sting | 1.21.5+ |
minecraft:sulfur_cube_hot | 26.2+ |
minecraft:sweet_berry_bush | 1.21.5+ |
minecraft:thorns | 1.21.5+ |
minecraft:thrown | 1.21.5+ |
minecraft:trident | 1.21.5+ |
minecraft:unattributed_fireball | 1.21.5+ |
minecraft:wind_charge | 1.21.5+ |
minecraft:wither | 1.21.5+ |
minecraft:wither_skull | 1.21.5+ |
Vanilla damage type tags
| Value | Available versions |
|---|---|
#minecraft:always_hurts_ender_dragons | 1.21.5+ |
#minecraft:always_kills_armor_stands | 1.21.5+ |
#minecraft:always_most_significant_fall | 1.21.5+ |
#minecraft:always_triggers_silverfish | 1.21.5+ |
#minecraft:avoids_guardian_thorns | 1.21.5+ |
#minecraft:burn_from_stepping | 1.21.5+ |
#minecraft:burns_armor_stands | 1.21.5+ |
#minecraft:bypasses_armor | 1.21.5+ |
#minecraft:bypasses_cooldown | 26.3+ |
#minecraft:bypasses_effects | 1.21.5+ |
#minecraft:bypasses_enchantments | 1.21.5+ |
#minecraft:bypasses_invulnerability | 1.21.5+ |
#minecraft:bypasses_resistance | 1.21.5+ |
#minecraft:bypasses_shield | 1.21.5+ |
#minecraft:bypasses_wolf_armor | 1.21.5+ |
#minecraft:can_break_armor_stand | 1.21.5+ |
#minecraft:damages_helmet | 1.21.5+ |
#minecraft:ignites_armor_stands | 1.21.5+ |
#minecraft:is_drowning | 1.21.5+ |
#minecraft:is_explosion | 1.21.5+ |
#minecraft:is_fall | 1.21.5+ |
#minecraft:is_fire | 1.21.5+ |
#minecraft:is_freezing | 1.21.5+ |
#minecraft:is_lightning | 1.21.5+ |
#minecraft:is_player_attack | 1.21.5+ |
#minecraft:is_projectile | 1.21.5+ |
#minecraft:mace_smash | 1.21.5+ |
#minecraft:no_anger | 1.21.5+ |
#minecraft:no_impact | 1.21.5+ |
#minecraft:no_knockback | 1.21.5+ |
#minecraft:no_wolf_retaliation | 26.3+ |
#minecraft:panic_causes | 1.21.5+ |
#minecraft:panic_environmental_causes | 1.21.5+ |
#minecraft:sulfur_cube_with_block_immune_to | 26.2+ |
#minecraft:witch_resistant_to | 1.21.5+ |
#minecraft:wither_immune_to | 1.21.5+ |
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<サウンドID> | String | A sound event ID. | "minecraft:entity.item.break" |
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
uses | Integer (int) or string | Brews per fuel item. Use an integer or a registered context_int_provider ID. | 10 |
speed_multiplier | Number (float) or string | Brewing speed multiplier. Use a number or a registered context_float_provider ID. | 1.25 |
Vanilla provider IDs
| Value | Meaning |
|---|---|
"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.
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
NoAI | Boolean | Boolean disabling AI behavior. | 1b |
Silent | Boolean | Boolean silencing the entity. | 1b |
NoGravity | Boolean | Boolean disabling gravity. | 1b |
Glowing | Boolean | Boolean enabling the glowing outline. | 1b |
Invulnerable | Boolean | Boolean setting invulnerability. | 1b |
Health | Number (float) | Health when released from the bucket. | 3.0f |
Age | Integer (int) | Age data for entities that grow. | -1200 |
HuntingCooldown | Integer (long) | Hunting cooldown for an axolotl. | 2400L |
Variant / BucketVariantTag | NBT 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}}}]
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
id | String | Item ID for the stack. | "minecraft:apple" |
count | Integer (int) | Stack count. Defaults to 1. | 2 |
components | Object | Components 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
blocks | String or list of strings | A block ID, a list of block IDs, or a # prefixed block tag. | "minecraft:chest" |
state | Object | Conditions for block state properties. Several properties may be tested. | {facing:"north"} |
nbt | Object | Matches block entity NBT. | {} |
components | Object | From 1.21.5, matches the exact values of listed block entity components. | {"minecraft:custom_name":{text:"Supply"}} |
predicates | Object | From 1.21.5, matches block entity components using component-specific predicates. | {} |
show_in_tooltip | Boolean | Used 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
blocks | String or list of strings | A block ID, a list of block IDs, or a # prefixed block tag. | "minecraft:chest" |
state | Object | Conditions for block state properties. Several properties may be tested. | {facing:"north"} |
nbt | Object | Matches block entity NBT. | {} |
components | Object | From 1.21.5, matches the exact values of listed block entity components. | {"minecraft:custom_name":{text:"Supply"}} |
predicates | Object | From 1.21.5, matches block entity components using component-specific predicates. | {} |
show_in_tooltip | Boolean | Used 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}}}]
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
id | String | Item ID of the loaded projectile. | "minecraft:arrow" |
count | Integer (int) | Stack count. Defaults to 1. | 1 |
components | Object | Components to add or override on the item. | {"minecraft:custom_data":{sample:1b}} |
List projectiles as separate entries. Empty stacks and minecraft:air are invalid.
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"}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
layers | Integer (int) or string | Provide a fixed number of layers as an integer, or a registered context_int_provider ID. | 1 |
Vanilla provider IDs
| Value | Meaning |
|---|---|
"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. |
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}]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
consume_seconds | Number (float) | Time to consume in seconds. Non-negative; default 1.6. | 1.2 |
animation | String | Consumption animation. Defaults to eat. | "drink" |
sound | Sound event | Sound during and on completion of consumption. Defaults to minecraft:entity.generic.eat. | "minecraft:entity.generic.drink" |
has_consume_particles | Boolean | Whether consumption emits particles. Defaults to true. | false |
on_consume_effects | List of objects | List of effects triggered on consumption. Each entry uses type to select an effect. | [{type:"minecraft:clear_all_effects"}] |
Animation values
| Value | Meaning |
|---|---|
"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
| Value | Meaning |
|---|---|
minecraft:apply_effects | Applies the effects list with probability, which defaults to 1.0. Vanilla status effect IDs |
minecraft:remove_effects | Removes effects selected by an ID, list of IDs, or tag in effects. Vanilla status effect IDs |
minecraft:clear_all_effects | Clears all status effects. |
minecraft:teleport_randomly | Teleports randomly. The positive diameter defaults to 16.0. From 26.3, directional_particles controls the particle trail and defaults to true. |
minecraft:play_sound | Plays the sound event specified by sound. |
Set nutrition in food. The consumable component enables consumption and configures its behavior.
Vanilla status effect IDs
| Value | Available versions |
|---|---|
minecraft:absorption | 1.21.2+ |
minecraft:bad_omen | 1.21.2+ |
minecraft:blindness | 1.21.2+ |
minecraft:breath_of_the_nautilus | 1.21.11+ |
minecraft:conduit_power | 1.21.2+ |
minecraft:darkness | 1.21.2+ |
minecraft:dolphins_grace | 1.21.2+ |
minecraft:fire_resistance | 1.21.2+ |
minecraft:glowing | 1.21.2+ |
minecraft:haste | 1.21.2+ |
minecraft:health_boost | 1.21.2+ |
minecraft:hero_of_the_village | 1.21.2+ |
minecraft:hunger | 1.21.2+ |
minecraft:infested | 1.21.2+ |
minecraft:instant_damage | 1.21.2+ |
minecraft:instant_health | 1.21.2+ |
minecraft:invisibility | 1.21.2+ |
minecraft:jump_boost | 1.21.2+ |
minecraft:levitation | 1.21.2+ |
minecraft:luck | 1.21.2+ |
minecraft:mining_fatigue | 1.21.2+ |
minecraft:nausea | 1.21.2+ |
minecraft:night_vision | 1.21.2+ |
minecraft:oozing | 1.21.2+ |
minecraft:poison | 1.21.2+ |
minecraft:raid_omen | 1.21.2+ |
minecraft:regeneration | 1.21.2+ |
minecraft:resistance | 1.21.2+ |
minecraft:saturation | 1.21.2+ |
minecraft:slow_falling | 1.21.2+ |
minecraft:slowness | 1.21.2+ |
minecraft:speed | 1.21.2+ |
minecraft:strength | 1.21.2+ |
minecraft:trial_omen | 1.21.2+ |
minecraft:unluck | 1.21.2+ |
minecraft:water_breathing | 1.21.2+ |
minecraft:weakness | 1.21.2+ |
minecraft:weaving | 1.21.2+ |
minecraft:wind_charged | 1.21.2+ |
minecraft:wither | 1.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}}}}]
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
slot | Integer (int) | Slot index from 0 to 255. Use an index within the capacity of the destination container. | 0 |
item | Object | Stack 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.
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
loot_table | String | ID of the loot table that generates the contents. | "minecraft:chests/simple_dungeon" |
seed | Integer (long) | 64-bit random seed. If omitted or zero, a random seed is chosen when evaluating the table. | 31415L |
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
burn_time | Integer (int) or string | Burn time in ticks, as an integer or a registered context_int_provider ID. | 400 |
speed_multiplier | Number (float) or string | Cooking speed multiplier, as a number or a registered context_float_provider ID. | 1.25 |
Vanilla provider examples
| Value | Meaning |
|---|---|
"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. |
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}}
| Field | Type | Accepted forms | Example 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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
floats | List of floats | From 1.21.4, a list of floating-point numbers. | [12.5] |
flags | List of booleans | From 1.21.4, a list of booleans. | [true] |
strings | List of strings | From 1.21.4, a list of strings. | ["winter"] |
colors | List of RGB colors | From 1.21.4, a list of RGB colors. | [255] |
旧形式 / Legacy form | Integer (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}'
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
text | String | Displayed text. | "Frost Kit" |
color | String | Text color. Use a color name or a hexadecimal color. | "aqua" |
italic | Boolean | Whether 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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<消費済み耐久値> | Integer (int) | Non-negative integer. Zero means undamaged; larger values leave less remaining durability. | 12 |
The maximum durability is set by max_damage.
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"}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
types | String or list of strings | Use 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
| Value | Available versions |
|---|---|
minecraft:arrow | 26.1+ |
minecraft:bad_respawn_point | 26.1+ |
minecraft:cactus | 26.1+ |
minecraft:campfire | 26.1+ |
minecraft:cramming | 26.1+ |
minecraft:dragon_breath | 26.1+ |
minecraft:drown | 26.1+ |
minecraft:dry_out | 26.1+ |
minecraft:ender_pearl | 26.1+ |
minecraft:explosion | 26.1+ |
minecraft:fall | 26.1+ |
minecraft:falling_anvil | 26.1+ |
minecraft:falling_block | 26.1+ |
minecraft:falling_stalactite | 26.1+ |
minecraft:fireball | 26.1+ |
minecraft:fireworks | 26.1+ |
minecraft:fly_into_wall | 26.1+ |
minecraft:freeze | 26.1+ |
minecraft:generic | 26.1+ |
minecraft:generic_kill | 26.1+ |
minecraft:hot_floor | 26.1+ |
minecraft:in_fire | 26.1+ |
minecraft:in_wall | 26.1+ |
minecraft:indirect_magic | 26.1+ |
minecraft:lava | 26.1+ |
minecraft:lightning_bolt | 26.1+ |
minecraft:mace_smash | 26.1+ |
minecraft:magic | 26.1+ |
minecraft:mob_attack | 26.1+ |
minecraft:mob_attack_no_aggro | 26.1+ |
minecraft:mob_projectile | 26.1+ |
minecraft:on_fire | 26.1+ |
minecraft:out_of_world | 26.1+ |
minecraft:outside_border | 26.1+ |
minecraft:player_attack | 26.1+ |
minecraft:player_explosion | 26.1+ |
minecraft:sonic_boom | 26.1+ |
minecraft:spear | 26.1+ |
minecraft:spit | 26.1+ |
minecraft:stalagmite | 26.1+ |
minecraft:starve | 26.1+ |
minecraft:sting | 26.1+ |
minecraft:sulfur_cube_hot | 26.2+ |
minecraft:sweet_berry_bush | 26.1+ |
minecraft:thorns | 26.1+ |
minecraft:thrown | 26.1+ |
minecraft:trident | 26.1+ |
minecraft:unattributed_fireball | 26.1+ |
minecraft:wind_charge | 26.1+ |
minecraft:wither | 26.1+ |
minecraft:wither_skull | 26.1+ |
Vanilla damage type tags
| Value | Available versions |
|---|---|
#minecraft:always_hurts_ender_dragons | 1.21.2+ |
#minecraft:always_kills_armor_stands | 1.21.2+ |
#minecraft:always_most_significant_fall | 1.21.2+ |
#minecraft:always_triggers_silverfish | 1.21.2+ |
#minecraft:avoids_guardian_thorns | 1.21.2+ |
#minecraft:burn_from_stepping | 1.21.2+ |
#minecraft:burns_armor_stands | 1.21.2+ |
#minecraft:bypasses_armor | 1.21.2+ |
#minecraft:bypasses_cooldown | 26.3+ |
#minecraft:bypasses_effects | 1.21.2+ |
#minecraft:bypasses_enchantments | 1.21.2+ |
#minecraft:bypasses_invulnerability | 1.21.2+ |
#minecraft:bypasses_resistance | 1.21.2+ |
#minecraft:bypasses_shield | 1.21.2+ |
#minecraft:bypasses_wolf_armor | 1.21.2+ |
#minecraft:can_break_armor_stand | 1.21.2+ |
#minecraft:damages_helmet | 1.21.2+ |
#minecraft:ignites_armor_stands | 1.21.2+ |
#minecraft:is_drowning | 1.21.2+ |
#minecraft:is_explosion | 1.21.2+ |
#minecraft:is_fall | 1.21.2+ |
#minecraft:is_fire | 1.21.2+ |
#minecraft:is_freezing | 1.21.2+ |
#minecraft:is_lightning | 1.21.2+ |
#minecraft:is_player_attack | 1.21.2+ |
#minecraft:is_projectile | 1.21.2+ |
#minecraft:mace_smash | 1.21.2+ |
#minecraft:no_anger | 1.21.2+ |
#minecraft:no_impact | 1.21.2+ |
#minecraft:no_knockback | 1.21.2+ |
#minecraft:no_wolf_retaliation | 26.3+ |
#minecraft:panic_causes | 1.21.2+ |
#minecraft:panic_environmental_causes | 1.21.2+ |
#minecraft:sulfur_cube_with_block_immune_to | 26.2+ |
#minecraft:witch_resistant_to | 1.21.2+ |
#minecraft:wither_immune_to | 1.21.2+ |
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<ダメージタイプID> | String | Namespaced 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
| Value | Available versions |
|---|---|
minecraft:arrow | 1.21.11+ |
minecraft:bad_respawn_point | 1.21.11+ |
minecraft:cactus | 1.21.11+ |
minecraft:campfire | 1.21.11+ |
minecraft:cramming | 1.21.11+ |
minecraft:dragon_breath | 1.21.11+ |
minecraft:drown | 1.21.11+ |
minecraft:dry_out | 1.21.11+ |
minecraft:ender_pearl | 1.21.11+ |
minecraft:explosion | 1.21.11+ |
minecraft:fall | 1.21.11+ |
minecraft:falling_anvil | 1.21.11+ |
minecraft:falling_block | 1.21.11+ |
minecraft:falling_stalactite | 1.21.11+ |
minecraft:fireball | 1.21.11+ |
minecraft:fireworks | 1.21.11+ |
minecraft:fly_into_wall | 1.21.11+ |
minecraft:freeze | 1.21.11+ |
minecraft:generic | 1.21.11+ |
minecraft:generic_kill | 1.21.11+ |
minecraft:hot_floor | 1.21.11+ |
minecraft:in_fire | 1.21.11+ |
minecraft:in_wall | 1.21.11+ |
minecraft:indirect_magic | 1.21.11+ |
minecraft:lava | 1.21.11+ |
minecraft:lightning_bolt | 1.21.11+ |
minecraft:mace_smash | 1.21.11+ |
minecraft:magic | 1.21.11+ |
minecraft:mob_attack | 1.21.11+ |
minecraft:mob_attack_no_aggro | 1.21.11+ |
minecraft:mob_projectile | 1.21.11+ |
minecraft:on_fire | 1.21.11+ |
minecraft:out_of_world | 1.21.11+ |
minecraft:outside_border | 1.21.11+ |
minecraft:player_attack | 1.21.11+ |
minecraft:player_explosion | 1.21.11+ |
minecraft:sonic_boom | 1.21.11+ |
minecraft:spear | 1.21.11+ |
minecraft:spit | 1.21.11+ |
minecraft:stalagmite | 1.21.11+ |
minecraft:starve | 1.21.11+ |
minecraft:sting | 1.21.11+ |
minecraft:sulfur_cube_hot | 26.2+ |
minecraft:sweet_berry_bush | 1.21.11+ |
minecraft:thorns | 1.21.11+ |
minecraft:thrown | 1.21.11+ |
minecraft:trident | 1.21.11+ |
minecraft:unattributed_fireball | 1.21.11+ |
minecraft:wind_charge | 1.21.11+ |
minecraft:wither | 1.21.11+ |
minecraft:wither_skull | 1.21.11+ |
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}]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
death_effects | List of objects | Optional list of effects on activation. Uses the same effect formats as consumable on_consume_effects. | [{type:"minecraft:clear_all_effects"}] |
Vanilla status effect IDs
| Value | Available versions |
|---|---|
minecraft:absorption | 1.21.2+ |
minecraft:bad_omen | 1.21.2+ |
minecraft:blindness | 1.21.2+ |
minecraft:breath_of_the_nautilus | 1.21.11+ |
minecraft:conduit_power | 1.21.2+ |
minecraft:darkness | 1.21.2+ |
minecraft:dolphins_grace | 1.21.2+ |
minecraft:fire_resistance | 1.21.2+ |
minecraft:glowing | 1.21.2+ |
minecraft:haste | 1.21.2+ |
minecraft:health_boost | 1.21.2+ |
minecraft:hero_of_the_village | 1.21.2+ |
minecraft:hunger | 1.21.2+ |
minecraft:infested | 1.21.2+ |
minecraft:instant_damage | 1.21.2+ |
minecraft:instant_health | 1.21.2+ |
minecraft:invisibility | 1.21.2+ |
minecraft:jump_boost | 1.21.2+ |
minecraft:levitation | 1.21.2+ |
minecraft:luck | 1.21.2+ |
minecraft:mining_fatigue | 1.21.2+ |
minecraft:nausea | 1.21.2+ |
minecraft:night_vision | 1.21.2+ |
minecraft:oozing | 1.21.2+ |
minecraft:poison | 1.21.2+ |
minecraft:raid_omen | 1.21.2+ |
minecraft:regeneration | 1.21.2+ |
minecraft:resistance | 1.21.2+ |
minecraft:saturation | 1.21.2+ |
minecraft:slow_falling | 1.21.2+ |
minecraft:slowness | 1.21.2+ |
minecraft:speed | 1.21.2+ |
minecraft:strength | 1.21.2+ |
minecraft:trial_omen | 1.21.2+ |
minecraft:unluck | 1.21.2+ |
minecraft:water_breathing | 1.21.2+ |
minecraft:weakness | 1.21.2+ |
minecraft:weaving | 1.21.2+ |
minecraft:wind_charged | 1.21.2+ |
minecraft:wither | 1.21.2+ |
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"}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<ブロックID> | String | ID of the block whose selection is stored. | "minecraft:oak_log" |
<プロパティ名> | String | Name of the property to select for that block. | "axis" |
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<色> | String | Dye color name. Choose one of the 16 values below. | "cyan" |
All 16 dye colors
| Value | Meaning |
|---|---|
"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 |
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
RGB整数 | Integer (int) | Packed red, green, and blue integer from 0 to 16777215. | 33023 |
RGB配列 | List of three floats | From 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_tooltip | Boolean | Toggles 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
value | Integer (int) | Positive enchantability value. Higher values allow higher-cost enchantments to be selected. | 15 |
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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
true | Boolean | Show the glint. | true |
false | Boolean | Hide the glint. | false |
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
<エンチャントID> | String | Registered enchantment ID. | "minecraft:sharpness" |
<レベル> | Integer (int) | Integer level from 0 to 255. | 4 |
show_in_tooltip | Boolean | Controls 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
id | String | Required 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
slot | String | Equipment slot. head, chest, legs, feet, body, mainhand, or offhand. saddle is available from 1.21.5. | "chest" |
equip_sound | Sound event | Equipment sound. Defaults to the standard armor equip sound. | "minecraft:item.armor.equip_iron" |
asset_id | String | Resource-pack equipment asset ID. Named model through 1.21.3. | "minecraft:iron" |
camera_overlay | String | Texture shown over the first-person view while equipped. | "minecraft:misc/pumpkinblur" |
allowed_entities | String or list of strings | Allowed wearers as an entity ID, a list of IDs, or a tag. | "minecraft:player" |
dispensable | Boolean | Whether a dispenser can equip it. Defaults to true. | true |
swappable | Boolean | Whether right-clicking can equip it. Defaults to true. | true |
damage_on_hurt | Boolean | Whether damage to the wearer can reduce durability. Defaults to true. | true |
equip_on_interact | Boolean | From 1.21.5, allows right-clicking a mob to equip it in a vacant slot. Defaults to false. | false |
can_be_sheared | Boolean | From 1.21.6, allows shears to remove it from eligible mobs. Defaults to false. | false |
shearing_sound | Sound event | From 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={}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | Use 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
shape | String | Explosion shape. Choose one of the five values below. | "star" |
colors | Integer array (int) | Packed integer RGB values for starting colors. Defaults to an empty list. | [16711680,255] |
fade_colors | Integer array (int) | Packed integer RGB values for fade colors. Defaults to an empty list. | [16777215] |
has_trail | Boolean | Whether particles leave a trail. Defaults to false. | true |
has_twinkle | Boolean | Whether particles twinkle. Defaults to false. | true |
Explosion shapes
| Value | Meaning |
|---|---|
"small_ball" | Small ball |
"large_ball" | Large ball |
"star" | Star |
"creeper" | Creeper face |
"burst" | Burst |
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}]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
flight_duration | Unsigned byte (integer) | Flight duration setting from 0 to 255. A standard rocket defaults to 1. | 2 |
explosions | List of objects | Up to 256 explosions, each using the firework_explosion format. | {shape:"star",colors:[16711680,255],fade_colors:[16777215],has_trail:true,has_twinkle:true} |
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}]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
nutrition | Integer (int) | Hunger points restored. Non-negative integer. | 5 |
saturation | Number (float) | Saturation points restored. | 2.4 |
can_always_eat | Boolean | Whether it can be eaten at full hunger. Defaults to false. | false |
eat_seconds | Number (float) | Through 1.21.1, time to eat in seconds. Defaults to 1.6. | 1.2 |
effects | List of objects | Through 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_to | Object | From 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
| Value | Available versions |
|---|---|
minecraft:absorption | 1.20.5–1.21.1 |
minecraft:bad_omen | 1.20.5–1.21.1 |
minecraft:blindness | 1.20.5–1.21.1 |
minecraft:conduit_power | 1.20.5–1.21.1 |
minecraft:darkness | 1.20.5–1.21.1 |
minecraft:dolphins_grace | 1.20.5–1.21.1 |
minecraft:fire_resistance | 1.20.5–1.21.1 |
minecraft:glowing | 1.20.5–1.21.1 |
minecraft:haste | 1.20.5–1.21.1 |
minecraft:health_boost | 1.20.5–1.21.1 |
minecraft:hero_of_the_village | 1.20.5–1.21.1 |
minecraft:hunger | 1.20.5–1.21.1 |
minecraft:infested | 1.20.5–1.21.1 |
minecraft:instant_damage | 1.20.5–1.21.1 |
minecraft:instant_health | 1.20.5–1.21.1 |
minecraft:invisibility | 1.20.5–1.21.1 |
minecraft:jump_boost | 1.20.5–1.21.1 |
minecraft:levitation | 1.20.5–1.21.1 |
minecraft:luck | 1.20.5–1.21.1 |
minecraft:mining_fatigue | 1.20.5–1.21.1 |
minecraft:nausea | 1.20.5–1.21.1 |
minecraft:night_vision | 1.20.5–1.21.1 |
minecraft:oozing | 1.20.5–1.21.1 |
minecraft:poison | 1.20.5–1.21.1 |
minecraft:raid_omen | 1.20.5–1.21.1 |
minecraft:regeneration | 1.20.5–1.21.1 |
minecraft:resistance | 1.20.5–1.21.1 |
minecraft:saturation | 1.20.5–1.21.1 |
minecraft:slow_falling | 1.20.5–1.21.1 |
minecraft:slowness | 1.20.5–1.21.1 |
minecraft:speed | 1.20.5–1.21.1 |
minecraft:strength | 1.20.5–1.21.1 |
minecraft:trial_omen | 1.20.5–1.21.1 |
minecraft:unluck | 1.20.5–1.21.1 |
minecraft:water_breathing | 1.20.5–1.21.1 |
minecraft:weakness | 1.20.5–1.21.1 |
minecraft:weaving | 1.20.5–1.21.1 |
minecraft:wind_charged | 1.20.5–1.21.1 |
minecraft:wither | 1.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={}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | Use an empty compound. | {} |
Pair this with minecraft:equippable to give an item an equipment slot.
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={}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | Use 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={}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | Use 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID or compound | An 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_event | Namespaced ID or compound | The sound event to play, given by ID or defined inline. | "minecraft:item.goat_horn.sound.0" |
sound_event.sound_id | Namespaced ID | Sound ID in an inline definition. | "minecraft:item.goat_horn.sound.0" |
sound_event.range | Number (float) | Fixed audible distance in blocks for an inline definition. Optional. | 16.0f |
use_duration | Integer (int) | In 1.20.5–1.21.1, the use duration in ticks. | 140 |
use_duration | Number (float) | From 1.21.2, the use duration and cooldown in seconds. From 26.3, zero disables the cooldown. | 2.5f |
range | Number (float) | Audible range in blocks. | 32.0f |
description | Text component | From 1.21.2, the instrument description displayed in the tooltip. | {text:"Signal Horn",color:"gold"} |
durability_damage | Integer (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={}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | Use 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}
| Field | Type | Accepted forms | Example values | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
type | String | Animation type. Defaults to "whack". |
| ||||||||
duration | Integer (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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID | The 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"}'
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Text component | From 1.21.5, write the text component directly as SNBT. | {text:"Field Compass",color:"gold"} |
| Value | String containing JSON text | In 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID | From 1.21.5, specify the song ID directly. | "minecraft:cat" |
song | Namespaced ID | In 1.21–1.21.4, the ID of the song to play. | "minecraft:cat" |
show_in_tooltip | Boolean | In 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.
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}}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
contact_cooldown_ticks | Integer (int) | Ticks before the weapon can hit the same target again after hitting it and breaking contact. Defaults to 10. | 10 |
delay_ticks | Integer (int) | Ticks before the attack becomes active. Defaults to 0. | 12 |
damage_conditions | Compound | Condition for dealing damage. Omit to disable charge damage. | {max_duration_ticks:200,min_speed:0.0f,min_relative_speed:4.6f} |
knockback_conditions | Compound | Condition for knockback. Omit to disable it. | {max_duration_ticks:140,min_speed:0.0f,min_relative_speed:6.3f} |
dismount_conditions | Compound | Condition for dismounting the target. Omit to disable it. | {max_duration_ticks:60,min_speed:10.0f,min_relative_speed:0.0f} |
max_duration_ticks | Integer (int) | Required in each condition. Number of ticks the condition is checked after the attack becomes active. | 200 |
min_speed | Number (float) | Optional minimum attacker speed in the aiming direction, in blocks per second. Defaults to 0. | 10.0f |
min_relative_speed | Number (float) | Optional minimum relative speed along the aiming direction, in blocks per second. Defaults to 0. | 4.6f |
forward_movement | Number (float) | Distance the item moves forward from the hand during the animation. Defaults to 0. | 0.38f |
damage_multiplier | Number (float) | Multiplier for the damage calculated from relative speed. Defaults to 1. | 1.0f |
sound | Namespaced ID or compound | Sound when the charge attack starts. Optional. | "minecraft:item.spear.use" |
sound.sound_id | Namespaced ID | Sound ID in an inline definition. | "minecraft:item.spear.use" |
sound.range | Number (float) | Fixed audible distance in blocks for an inline definition. Optional. | 16.0f |
hit_sound | Namespaced ID or compound | Sound when the weapon hits a target. Optional. | "minecraft:item.spear.hit" |
hit_sound.sound_id | Namespaced ID | Sound ID in an inline definition. | "minecraft:item.spear.hit" |
hit_sound.range | Number (float) | Fixed audible distance in blocks for an inline definition. Optional. | 16.0f |
Use minecraft:attack_range to configure reach.
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | String | In 1.20.5–1.21.1, the custom name required on the key item. | "Vault Key" |
items | String or list | From 1.21.2, an item ID, list of IDs, or tag prefixed with #. | "minecraft:tripwire_hook" |
count | Integer (int) or compound | From 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} |
components | Compound | From 1.21.2, matches the exact values of the specified components. | {"minecraft:custom_name":{text:"Vault Key"}} |
predicates | Compound | From 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
target | Compound | Target location. The needle spins if omitted. | {dimension:"minecraft:overworld",pos:[I;120,64,-40]} |
target.dimension | Namespaced ID | Target dimension ID. | "minecraft:overworld" |
target.pos | Integer array (int) | Target block coordinates in X, Y, Z order. | [I;120,64,-40] |
tracked | Boolean | Whether 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.
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"}']
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | List | List of tooltip lines, up to 256. An empty list gives no lore. | [] |
| Each line | Text component | From 1.21.5, write each text component directly as SNBT. | {text:"Keep dry",color:"aqua"} |
| Each line | String containing JSON text | In 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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Integer (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}}
| Field | Type | Accepted forms | Example values | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Marker ID | String | Unique key for a marker in this component. | "camp" | ||||||||||||
type | Namespaced ID | Marker icon, selected by map decoration type ID. |
| ||||||||||||
x | Number (double) | World X coordinate. | 123.0d | ||||||||||||
z | Number (double) | World Z coordinate. | -45.0d | ||||||||||||
rotation | Number (float) | Clockwise rotation in degrees from north. | 0.0f |
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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Integer (int) | Shared map ID. The item refers to the corresponding stored map. | 1 |
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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Integer (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.
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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Integer (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.
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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Number (float) | 0.0 to 1.0. Zero requires no charge. One requires a full meter. | 0.5f |
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
targeting_entity_types | String or list | Entity ID, list of IDs, or tag prefixed with #, identifying which mobs are affected. | ["minecraft:zombie","minecraft:husk"] |
visibility | Number (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 |
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID | ID of the sound to play. | "minecraft:ambient.cave" |
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
| Field | Type | Accepted forms | Example values | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Value | Integer (int) | An integer from 0 to 4. The effect level is one greater than the stored value. |
|
The component was added in 1.20.5. Ominous bottles became part of standard gameplay in 1.21.
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}}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
deals_knockback | Boolean | Whether the attack applies knockback. Defaults to true. | true |
dismounts | Boolean | Whether the attack dismounts the target. Defaults to false. | false |
sound | Namespaced ID or compound | Sound when attacking. Optional. | "minecraft:item.spear.attack" |
sound.sound_id | Namespaced ID | Sound ID in an inline definition. | "minecraft:item.spear.attack" |
sound.range | Number (float) | Fixed audible distance in blocks for an inline definition. Optional. | 16.0f |
hit_sound | Namespaced ID or compound | Sound when the weapon hits a target. Optional. | "minecraft:item.spear.hit" |
hit_sound.sound_id | Namespaced ID | Sound ID in an inline definition. | "minecraft:item.spear.hit" |
hit_sound.range | Number (float) | Fixed audible distance in blocks for an inline definition. Optional. | 16.0f |
Use minecraft:attack_range to configure reach.
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"]
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | List | In 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"] |
back | Namespaced ID or compound | From 26.3, the optional decoration on the back face. | {id:"minecraft:arms_up_pottery_sherd",count:1,components:{}} |
left | Namespaced ID or compound | From 26.3, the optional decoration on the left face. | {id:"minecraft:angler_pottery_sherd",count:1,components:{}} |
right | Namespaced ID or compound | From 26.3, the optional decoration on the right face. | {id:"minecraft:danger_pottery_sherd",count:1,components:{}} |
front | Namespaced ID or compound | From 26.3, the optional decoration on the front face. | {id:"minecraft:shelter_pottery_sherd",count:1,components:{}} |
id | Namespaced ID | ID of the item for the face. | "minecraft:shelter_pottery_sherd" |
count | Integer (int) | Size of the item stack. Defaults to 1. | 1 |
components | Compound | Optional 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.
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}]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
potion | Namespaced ID | Base potion ID. It can also be given directly as the component value. | "minecraft:swiftness" |
custom_color | Integer (int) | Optional packed RGB override for the potion color. | 65535 |
custom_effects | List | Extra status effects to apply. Defaults to an empty list. | [{id:"minecraft:jump_boost",duration:600}] |
custom_effects[].id | Namespaced ID | Required ID of each added status effect. | "minecraft:jump_boost" |
amplifier | Integer (int) | Effect level minus one. Accepts 0–255 and defaults to 0. | 1 |
duration | Integer (int) | Effect duration in ticks. Defaults to 0. Use -1 for an infinite effect. | 600 |
ambient | Boolean | Whether the effect is ambient. Defaults to false. | false |
show_particles | Boolean | Whether to show particles. Defaults to true. | true |
show_icon | Boolean | Whether to show the effect icon. Defaults to true. | true |
custom_name | String | From 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
| Value | Available versions |
|---|---|
minecraft:absorption | 1.20.5+ |
minecraft:bad_omen | 1.20.5+ |
minecraft:blindness | 1.20.5+ |
minecraft:breath_of_the_nautilus | 1.21.11+ |
minecraft:conduit_power | 1.20.5+ |
minecraft:darkness | 1.20.5+ |
minecraft:dolphins_grace | 1.20.5+ |
minecraft:fire_resistance | 1.20.5+ |
minecraft:glowing | 1.20.5+ |
minecraft:haste | 1.20.5+ |
minecraft:health_boost | 1.20.5+ |
minecraft:hero_of_the_village | 1.20.5+ |
minecraft:hunger | 1.20.5+ |
minecraft:infested | 1.20.5+ |
minecraft:instant_damage | 1.20.5+ |
minecraft:instant_health | 1.20.5+ |
minecraft:invisibility | 1.20.5+ |
minecraft:jump_boost | 1.20.5+ |
minecraft:levitation | 1.20.5+ |
minecraft:luck | 1.20.5+ |
minecraft:mining_fatigue | 1.20.5+ |
minecraft:nausea | 1.20.5+ |
minecraft:night_vision | 1.20.5+ |
minecraft:oozing | 1.20.5+ |
minecraft:poison | 1.20.5+ |
minecraft:raid_omen | 1.20.5+ |
minecraft:regeneration | 1.20.5+ |
minecraft:resistance | 1.20.5+ |
minecraft:saturation | 1.20.5+ |
minecraft:slow_falling | 1.20.5+ |
minecraft:slowness | 1.20.5+ |
minecraft:speed | 1.20.5+ |
minecraft:strength | 1.20.5+ |
minecraft:trial_omen | 1.20.5+ |
minecraft:unluck | 1.20.5+ |
minecraft:water_breathing | 1.20.5+ |
minecraft:weakness | 1.20.5+ |
minecraft:weaving | 1.20.5+ |
minecraft:wind_charged | 1.20.5+ |
minecraft:wither | 1.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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Number (float) | Non-negative, defaulting to 1.0. Use 0.25 for one quarter of the duration. | 0.25f |
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="}]}
| Field | Type | Accepted forms | Example values | ||||||
|---|---|---|---|---|---|---|---|---|---|
name | String | Player name, up to 16 characters. A name on its own can be used directly as the component value. | "MHF_Sheep" | ||||||
id | Integer array (int, 4 elements) | Player UUID encoded as an array of four integers. | [I;1,2,3,4] | ||||||
properties | List | Optional list of profile properties. | [{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkyMDA5YTQ5MjViNThmMDJjNzdkYWRjM2VjZWYwN2VhNGM3NDcyZjY0ZTBmZGMzMmNlNTUyMjQ4OTM2MjY4MCJ9fX0="}] | ||||||
properties[].name | String | Property name. Use textures for skin data. | "textures" | ||||||
properties[].value | String | Property data. For textures, use a Base64-encoded string containing the texture information. | "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjkyMDA5YTQ5MjViNThmMDJjNzdkYWRjM2VjZWYwN2VhNGM3NDcyZjY0ZTBmZGMzMmNlNTUyMjQ4OTM2MjY4MCJ9fX0=" | ||||||
properties[].signature | String | Optional signature associated with a signed property value. | 署名済みプロパティの署名 | ||||||
texture | Namespaced ID | From 1.21.9, the skin texture ID. | "minecraft:entity/player/wide/steve" | ||||||
cape | Namespaced ID | From 1.21.9, the cape texture ID. | "example:entity/cape" | ||||||
elytra | Namespaced ID | From 1.21.9, the elytra texture ID. | "minecraft:entity/equipment/wings/elytra" | ||||||
model | String | From 1.21.9, the skin model type. |
|
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_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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID | An ID in the minecraft:decorated_pot_pattern registry. | "minecraft:angler" |
Use minecraft:pot_decorations to assign the item stack to a particular face.
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"}}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID or compound | A registered trim material ID or an inline material definition. | "minecraft:iron" |
palette_id | Namespaced ID | From 26.3, the palette texture ID for the trim material. | "minecraft:trim/iron" |
asset_name | String | Through 26.2, the palette name for the trim material. | "iron" |
description | Text component | Tooltip name and style of the material. | {text:"Iron",color:"#ECECEC"} |
override_armor_assets | Compound | In 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.
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"
| Field | Type | Accepted forms | Example values | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Value | String | One of four values. Items can have their own defaults, with common as the fallback. |
|
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"]
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | List | List of recipe IDs to unlock. Knowledge books default to an empty list. | ["minecraft:acacia_boat","minecraft:anvil"] |
| Each entry | Namespaced ID | An ID of a recipe registered by the game or a data pack. | "minecraft:acacia_boat" |
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
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Integer (int) | A non-negative integer. Defaults to 0. | 12 |
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"}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
items | String or list | An item ID, a list of item IDs, or an item tag prefixed with #. | "#minecraft:planks" |
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}
| Field | Type | Accepted forms | Example values | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
messages | List | Four text components, one per line. Use an empty string for a blank line. | ["Return","to","the","village"] | ||||||||||||||||||||||||||||||||||
filtered_messages | List | Four lines used when text filtering is enabled. Defaults to messages. | ["Return","to","the","***"] | ||||||||||||||||||||||||||||||||||
color | String | Dye color of the text. Defaults to black. |
| ||||||||||||||||||||||||||||||||||
has_glowing_text | Boolean | Whether the text glows. Defaults to false. | true |
Use minecraft:sign_text_front to set the text on the other side.
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}
| Field | Type | Accepted forms | Example values | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
messages | List | Four text components, one per line. Use an empty string for a blank line. | ["Welcome","to","the","village"] | ||||||||||||||||||||||||||||||||||
filtered_messages | List | Four lines used when text filtering is enabled. Defaults to messages. | ["Welcome","to","the","***"] | ||||||||||||||||||||||||||||||||||
color | String | Dye color of the text. Defaults to black. |
| ||||||||||||||||||||||||||||||||||
has_glowing_text | Boolean | Whether the text glows. Defaults to false. | true |
Use minecraft:sign_text_back to set the text on the other side.
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
levels | Compound | Enchantment-to-level map in the wrapped 1.20.5–1.21.4 form. | {"minecraft:sharpness":4,"minecraft:unbreaking":2} |
| Enchantment ID | Namespaced ID | Each key is a registered enchantment ID. | "minecraft:sharpness" |
| Level | Integer (int) | An integer from 0 to 255. | 4 |
show_in_tooltip | Boolean | In 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"}}}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID or compound | The absorbed item, as an item ID or an item stack. | "minecraft:green_wool" |
id | Namespaced ID | ID of the absorbed item. | "minecraft:green_wool" |
count | Integer (int) | Size of the item stack. Defaults to 1. | 1 |
components | Compound | Optional item component patch for the stack. | {"minecraft:custom_name":{text:"Absorbed Wool"}} |
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}]
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | List | List of effects applied on consumption. Suspicious stew defaults to an empty list. | [{id:"minecraft:night_vision",duration:100}] |
id | Namespaced ID | Status effect ID. | "minecraft:night_vision" |
duration | Integer (int) | Effect duration in ticks. Defaults to 160. | 100 |
Vanilla status effect IDs
| Value | Available versions |
|---|---|
minecraft:absorption | 1.20.5+ |
minecraft:bad_omen | 1.20.5+ |
minecraft:blindness | 1.20.5+ |
minecraft:breath_of_the_nautilus | 1.21.11+ |
minecraft:conduit_power | 1.20.5+ |
minecraft:darkness | 1.20.5+ |
minecraft:dolphins_grace | 1.20.5+ |
minecraft:fire_resistance | 1.20.5+ |
minecraft:glowing | 1.20.5+ |
minecraft:haste | 1.20.5+ |
minecraft:health_boost | 1.20.5+ |
minecraft:hero_of_the_village | 1.20.5+ |
minecraft:hunger | 1.20.5+ |
minecraft:infested | 1.20.5+ |
minecraft:instant_damage | 1.20.5+ |
minecraft:instant_health | 1.20.5+ |
minecraft:invisibility | 1.20.5+ |
minecraft:jump_boost | 1.20.5+ |
minecraft:levitation | 1.20.5+ |
minecraft:luck | 1.20.5+ |
minecraft:mining_fatigue | 1.20.5+ |
minecraft:nausea | 1.20.5+ |
minecraft:night_vision | 1.20.5+ |
minecraft:oozing | 1.20.5+ |
minecraft:poison | 1.20.5+ |
minecraft:raid_omen | 1.20.5+ |
minecraft:regeneration | 1.20.5+ |
minecraft:resistance | 1.20.5+ |
minecraft:saturation | 1.20.5+ |
minecraft:slow_falling | 1.20.5+ |
minecraft:slowness | 1.20.5+ |
minecraft:speed | 1.20.5+ |
minecraft:strength | 1.20.5+ |
minecraft:trial_omen | 1.20.5+ |
minecraft:unluck | 1.20.5+ |
minecraft:water_breathing | 1.20.5+ |
minecraft:weakness | 1.20.5+ |
minecraft:weaving | 1.20.5+ |
minecraft:wind_charged | 1.20.5+ |
minecraft:wither | 1.20.5+ |
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}
| Field | Type | Accepted forms | Example values | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
type | String | Animation type. Defaults to whack. |
| ||||||||
duration | Integer (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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
rules | List | List of block rules, checked in order. | [{blocks:"#minecraft:mineable/pickaxe",speed:6.0f,correct_for_drops:true}] |
rules[].blocks | String or list | A block ID, list of block IDs, or # prefixed block tag. | "#minecraft:mineable/pickaxe" |
rules[].speed | Number (float) | Optional mining speed override for matching blocks. | 6.0f |
rules[].correct_for_drops | Boolean | Optional override for whether the tool qualifies for drops. | true |
default_mining_speed | Number (float) | Mining speed when no matching rule supplies one. Defaults to 1.0. | 1.0f |
damage_per_block | Integer (int) | Durability cost per block mined. Non-negative and defaults to 1. | 2 |
can_destroy_blocks_in_creative | Boolean | From 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"]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
hide_tooltip | Boolean | True hides the entire tooltip. Defaults to false. | false |
hidden_components | List | IDs 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.
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"
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Namespaced ID | Tooltip 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 .
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
material | Namespaced ID or compound | Trim material ID or inline definition defining the color. | "minecraft:iron" |
material.palette_id | Namespaced ID | From 26.3, the palette texture ID for the trim material. | "minecraft:trim/iron" |
material.asset_name | String | Through 26.2, the palette name for the trim material. | "iron" |
material.description | Text component | Tooltip name and style of the material. | {text:"Iron",color:"#ECECEC"} |
material.override_armor_assets | Compound | In 1.21.4–26.2, optional palette overrides keyed by equipment asset ID. | {"minecraft:iron":"iron_darker"} |
material.ingredient | Namespaced ID | From 1.20.5 through 1.21.4, the item used as the trim material ingredient. | "minecraft:iron_ingot" |
material.item_model_index | Number (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_materials | Compound | From 1.20.5 through 1.21.3, optional palette overrides keyed by armor material. | {iron:"iron_darker"} |
pattern | Namespaced ID or compound | Trim pattern ID or inline definition. | "minecraft:silence" |
pattern.asset_id | Namespaced ID | ID used to locate the trim pattern texture. | "minecraft:silence" |
pattern.description | Text component | Trim pattern name displayed in the tooltip. | {text:"Silence"} |
pattern.decal | Boolean | Whether to mask the pattern to match transparent pixels in the underlying armor. Defaults to false. | false |
pattern.template_item | Namespaced ID | From 1.20.5 through 1.21.4, the smithing template item for applying the pattern. | "minecraft:silence_armor_trim_smithing_template" |
show_in_tooltip | Boolean | From 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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | From 1.21.5, use an empty compound. | {} |
show_in_tooltip | Boolean | In 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"}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
seconds | Number (float) | Positive cooldown duration in seconds. | 1.5f |
cooldown_group | Namespaced ID | ID of the group that shares the cooldown. Defaults to the base item ID. | "example:healing_items" |
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
can_sprint | Boolean | Whether the player can sprint during use. Defaults to false. | true |
interact_vibrations | Boolean | Whether to emit item interaction start and finish game events. Defaults to true. | false |
speed_multiplier | Number (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 .
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}}}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
id | Namespaced ID | ID of the remainder item. | "minecraft:bowl" |
count | Integer (int) | Size of the remainder stack. Defaults to 1. | 1 |
components | Compound | Optional 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.
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
nutrition | Integer (int) | Villager hunger points satisfied by eating the item. Use a positive integer. | 4 |
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={}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
| Value | Compound | Use an empty compound. | {} |
Use minecraft:sign_text_front and minecraft:sign_text_back to set the text itself.
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}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
item_damage_per_attack | Integer (int) | Durability points lost per attack. Non-negative and defaults to 1. | 2 |
disable_blocking_for_seconds | Number (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.
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."}]}
| Field | Type | Accepted forms | Example values |
|---|---|---|---|
pages | List | Up 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[].raw | String | Plain page text. A string used directly is treated as this value. | "North trail is closed." |
pages[].filtered | String | Optional 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}
| Field | Type | Accepted forms | Example values | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
title | String or compound | Plain-text title, or a compound with raw and optional filtered. | {raw:"Expedition Log",filtered:"Journey Log"} | ||||||||||
title.raw | String | Title shown by default, up to 32 characters. | "Expedition Log" | ||||||||||
title.filtered | String | Optional title shown to players who have text filtering enabled. | "Journey Log" | ||||||||||
author | String | Author shown in the tooltip. | "Vivian" | ||||||||||
generation | Integer (int) | Copy generation from 0 to 3. Defaults to 0. |
| ||||||||||
pages | List | Page 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[].raw | Text component | From 1.21.5, write the page content directly as a text component in SNBT. | {text:"Follow the north trail.",color:"dark_green"} | ||||||||||
pages[].filtered | Text component | From 1.21.5, optional replacement page content in SNBT for players using the text filter. | {text:"Follow the marked trail.",color:"dark_green"} | ||||||||||
pages[].raw | String containing JSON text | In 1.20.5–1.21.4, put the JSON page content inside a string. | '{"text":"Follow the north trail.","color":"dark_green"}' | ||||||||||
pages[].filtered | String containing JSON text | In 1.20.5–1.21.4, optionally supply the filtered page as JSON inside a string. | '{"text":"Follow the marked trail.","color":"dark_green"}' | ||||||||||
resolved | Boolean | Whether 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