User Tools

Site Tools


items:item_components:projectile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
items:item_components:projectile [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:projectile [2024/05/14 22:46] (current) – fix link to entity initializers errorcraft
Line 1: Line 1:
 +====== minecraft:projectile ======
 +The ''minecraft:projectile'' item component allows this item to be used as a projectile.
 +It may be used in combination with [[items:item_components:throwable|minecraft:throwable]] to throw this item as the projectile, or it may be used as the ammunition in a [[items:item_components:shooter|minecraft:shooter]].
  
 +
 +==== Fields ====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''entity'' | The entity to spawn. | An [[entities:entity_initializers:|entity initializer]] | |
 +| ''damage'' | The damage applied to the [[items:item_components:shooter|minecraft:shooter]] after shooting the projectile. | An optional, non-negative integer | ''0'' |
 +| ''charged_speed'' | The speed of the projectile when shot from a charged [[items:item_components:shooter|minecraft:shooter]]. | An optional, non-negative float | ''3.15'' |
 +
 +
 +==== Example ====
 +<code javascript>
 +{
 +  "entity": {
 +    "type": "minecraft:arrow"
 +  },
 +  "damage": 1
 +}
 +</code>