User Tools

Site Tools


items:item_components:throwable

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:throwable [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:throwable [2024/04/19 13:27] (current) – ↷ Links adapted because of a move operation errorcraft
Line 1: Line 1:
 +====== minecraft:throwable ======
 +The ''minecraft:throwable'' item component allows this item to be thrown as an entity.
 +This item component requires the item to also have the [[items:item_components:projectile|minecraft:projectile]] item component in order to throw the projectile.
  
 +
 +==== Fields ====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''speed'' | The speed of the projectile when thrown. | A non-negative float | |
 +| ''angle_offset'' | The angle, in degrees, that affects the vertical speed the projectile is thrown at. | A float | |
 +| ''draw_duration'' | The time frame the player can throw the projectile in. | An optional integer range. If omitted, the projectile is thrown immediately. | |
 +| ''use_riptide_check'' | Whether to check for riptide and if the player is touching water or rain before throwing. | An optional boolean | ''false'' |
 +
 +
 +==== Example ====
 +<code javascript>
 +{
 +  "angle_offset": 0.0,
 +  "speed": 1.5
 +}
 +</code>