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_scale
:number- The scale at which the throw position is adjusted by the aim direction.
do_swing_animation
:boolean- Determines whether the item should use the swing animation when thrown. Default is set to false.
inside_block_offset_scale
:number- 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_scale
:number- The scale at which the power of the throw increases. Default is set to 1.0.
max_draw_duration
:number- The maximum duration to draw a throwable item. Default is set to 0.0.
max_launch_power
:number- The maximum power to launch the throwable item. Default is set to 1.0.
min_draw_duration
:number- The minimum duration to draw a throwable item. Default is set to 0.0.
scale_power_by_draw_duration
:boolean- Whether or not the power of the throw increases with duration charged. Default is set to false.