Skip to main content

Item component reference (8/11)

This page excerpts the reference from MS Learn (MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0). Relative links in the original are removed.

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

Items Documentation - minecraft:kinetic_weapon​

Allows an item to deal kinetic damage and its effects. This happens every tick while in use, in a straight line along the user's view vector, with damage computed based on both the user's and the target's velocity projected onto the view vector (via a dot product). The more the user and target move toward each other, and the more this movement is aligned with the user's view vector, the higher the damage. After "damage_multiplier" and "damage_modifier" are applied, the resulting damage is floored to the nearest lower integer.

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

Item Kinetic Weapon Properties​

NameDefault ValueTypeDescription
creative_reachnot setCreative Reach itemDefines the reach used when the user is in Creative Mode. Defaults to "reach" if unspecified.
damage_conditionsnot setDamage Conditions itemConditions that need to be satisfied for damage to be applied. If not specified, damage is not applied.
damage_modifier0Decimal numberValue added to the the scaled dot product (after applying "damage_multiplier").
damage_multiplier1Decimal numberValue multiplied to sum of the dot products of the user and target's velocity vectors projected onto the view vector.
delay0Integer numberTime, in ticks, after which kinetic damage and its effects start being applied.
dismount_conditionsnot setDismount Conditions itemConditions that need to be satisfied for riders to be dismounted. If not specified, riders cannot be dismounted.
hitbox_margin0Decimal numberAdded tolerance to the view vector raycast for detecting entity collisions.
knockback_conditionsnot setKnockback Conditions itemConditions that need to be satisfied for knockback to be applied. If not specified, knockback is not applied.
reach{"max":3,"min":0}Reach itemDefines the range (in blocks) along the user's view vector where entities can be hit.
reach​

Defines the range (in blocks) along the user's view vector where entities can be hit. Only targets within this distance are considered. Block collisions between the user and target block damage and its effects.

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: creative_reach

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number
Item Kinetic Weapon Kinetic Effect Conditions​

Conditions that need to be satisfied for a specific effect of a kinetic weapon to be applied.

Item Kinetic Weapon Kinetic Effect Conditions Properties​

JSON path: damage_conditions

NameDefault ValueTypeDescription
max_duration-1Integer numberTime, in ticks, during which the effect can be applied after "delay" elapses. If negative, the effect is applied indefinitely.
min_relative_speed0Decimal numberMinimum relative speed of the user with respect to the target (projected onto the view vector via a dot product) required for the effect to be applied.
min_speed0Decimal numberMinimum user's speed (projected onto the view vector via a dot product) required for the effect to be applied.

Samples​

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

Items Documentation - minecraft:kinetic_weapon_kinetic_effect_conditions​

Conditions that need to be satisfied for a specific effect of a kinetic weapon to be applied.

Item Kinetic Weapon Kinetic Effect Conditions Properties​

NameDefault ValueTypeDescription
max_duration-1Integer numberTime, in ticks, during which the effect can be applied after "delay" elapses. If negative, the effect is applied indefinitely.
min_relative_speed0Decimal numberMinimum relative speed of the user with respect to the target (projected onto the view vector via a dot product) required for the effect to be applied.
min_speed0Decimal numberMinimum user's speed (projected onto the view vector via a dot product) required for the effect to be applied.

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

Items Documentation - minecraft:liquid_clipped​

The liquid_clipped component determines whether the item interacts with liquid blocks on use. To allow placement of blocks on liquids, see the 'placement_filter' block component.

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

Alternate Simple Representations​

This item can also be represented as a Boolean true/false.

Liquid Clipped Properties​

NameDefault ValueTypeDescription
valuenot setBoolean true/falseDeterines whether the item interacts with liquid blocks on use.

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

Items Documentation - minecraft:max_stack_size​

Determines how many of an item can be stacked together.

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

Alternate Simple Representations​

This item can also be represented as a Integer number.

Max Stack Size Properties​

NameDefault ValueTypeDescription
value64Integer numberHow many of an item that can be stacked together.

Samples​

Beetroot Soup​

"minecraft:max_stack_size": 1

Honey Bottle​

"minecraft:max_stack_size": 16

Item Axe Turret Kit​

"minecraft:max_stack_size": {
"value": 64
}

Item Depleted Gray Shard​

"minecraft:max_stack_size": 64

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

Items Documentation - minecraft:piercing_weapon​

Allows an item to deal damage to all entities detected in a straight line along the user's view vector. Items with this component cannot destroy blocks, as the attack action always takes priority, regardless of what the user is looking at.

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

Item Piercing Weapon Properties​

NameDefault ValueTypeDescription
creative_reachnot setCreative Reach itemDefines the reach used when the user is in Creative Mode. Defaults to "reach" if unspecified.
hitbox_margin0Decimal numberAdded tolerance to the view vector raycast for detecting entity collisions.
reach{"max":3,"min":0}Reach itemDefines the range (in blocks) along the user's view vector where entities can be hit.
reach​

Defines the range (in blocks) along the user's view vector where entities can be hit. Only targets within this distance are considered. Block collisions between the user and target block damage and its effects.

Legacy FloatRange​

Legacy FloatRange Properties​

JSON path: creative_reach

NameDefault ValueTypeDescription
max0Decimal number
min0Decimal number

Samples​

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

Items Documentation - minecraft:projectile​

Defines an item as a projectile that can be shot from dispensers or used as ammunition with minecraft:shooter. When combined with minecraft:throwable, this component specifies which entity is spawned when the item is thrown.

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

Item Projectile Properties​

NameDefault ValueTypeDescription
minimum_critical_power0Decimal numberSpecifies how long a player must charge a projectile for it to critically hit.
projectile_entitynot setStringWhich entity is to be fired as a projectile. Value must match a regular expression pattern of "^(?:\w+(?:.\w+):(?=\w))?(?:\w+(?:.\w+))(?:<((?:\w+(?:.\w+):(?=\w))?\w+(?:.\w+))*>)?$".

Samples​

"minecraft:projectile": {
"minimum_critical_power": 1.25,
"projectile_entity": "arrow"
}

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

Items Documentation - minecraft:rarity​

Specifies the base rarity and subsequently color of the item name when the player hovers the cursor over the item.

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

Alternate Simple Representations​

This item can also be represented as a String.

Rarity Properties​

NameDefault ValueTypeDescription
valuenot setValue choicesSets the base rarity of the item. The rarity of an item automatically increases when enchanted, either to Rare when the base rarity is Common or Uncommon, or Epic when the base rarity is Rare.
Value choices​
ValueTitleDescription
commonCommon
uncommonUncommon
rareRare
epicEpic

Samples​

"minecraft:rarity": {
"minecraft:rarity": "rare"
}
Sources
idSourceLicenseCommitAccessed
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13