跳转至

minecraft:throwable

文档版本:1.21.0.24

Throwable items can be thrown by the player, such as a snowball.

架构

minecraft:throwable:
{
  number "default_offset_scale" : opt
  boolean "do_swing_animation" : opt
  number "inside_block_offset_scale" : opt
  number "launch_power_scale" : opt
  number "max_draw_duration" : opt
  number "max_launch_power" : opt
  number "min_draw_duration" : opt
  boolean "scale_power_by_draw_duration" : opt
}
default_offset_scalenumber
The scale at which the throw position is adjusted by the aim direction.
do_swing_animationboolean
Determines whether the item should use the swing animation when thrown. Default is set to false.
inside_block_offset_scalenumber
The scale at which the throw position is adjusted by the aim direction if the default throw position is inside a solid block.
launch_power_scalenumber
The scale at which the power of the throw increases. Default is set to 1.0.
max_draw_durationnumber
The maximum duration to draw a throwable item. Default is set to 0.0.
max_launch_powernumber
The maximum power to launch the throwable item. Default is set to 1.0.
min_draw_durationnumber
The minimum duration to draw a throwable item. Default is set to 0.0.
scale_power_by_draw_durationboolean
Whether or not the power of the throw increases with duration charged. Default is set to false.