User Tools

Site Tools


items:item_components:throwable

Table of Contents

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 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

{
  "angle_offset": 0.0,
  "speed": 1.5
}
items/item_components/throwable.txt · Last modified: 2024/04/19 15:27 by errorcraft