1. Wiki
  2. /Items
  3. /minecraft:throwable

minecraft:throwable

Don't want to write this by hand? GodCraft sets minecraft:throwable for you with a switch.Get GodCraft

Overview

minecraft:throwable is an item component: it goes in the components object of a custom item. Lets the player throw the item, like a snowball or egg. Add minecraft:projectile so something actually flies out.

Fields

FieldTypeDefaultDescription
do_swing_animationbooleanfalseWhen true, the arm swings when the item is thrown.
min_draw_durationnumber0Shortest time in seconds the player must hold before a throw.
max_draw_durationnumber0Longest time in seconds that charging keeps adding power.
launch_power_scalenumber1How quickly throw power grows while charging.
max_launch_powernumber1The strongest a throw can be.
scale_power_by_draw_durationbooleanfalseWhen true, holding longer makes the throw go farther, like a trident.

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:throwable": {
    "do_swing_animation": false,
    "min_draw_duration": 0,
    "max_draw_duration": 0,
    "launch_power_scale": 1,
    "max_launch_power": 1,
    "scale_power_by_draw_duration": false
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more