minecraft:shooter¶
文档版本:1.21.0.24
Shooter Item Component.
架构¶
minecraft:shooter:
{
array "ammunition" : opt
{
object "<any array element>" : opt
{
item_descriptor "item"
boolean "search_inventory" : opt
boolean "use_in_creative" : opt
boolean "use_offhand" : opt
}
}
boolean "charge_on_draw" : opt
number "max_draw_duration" : opt
boolean "scale_power_by_draw_duration" : opt
}
ammunition
:array- Ammunition.
ammunition
<any array element>
:object
<any array element>
item
:item_descriptor- Ammunition item description identifier.
<any object property>
:string
search_inventory
:boolean- Can search inventory? Default is set to false.
use_in_creative
:boolean- Can use in creative mode? Default is set to false.
use_offhand
:boolean- Can use off-hand? Default is set to false.
charge_on_draw
:boolean- Charge on draw? Default is set to false.
max_draw_duration
:number- Draw Duration. Default is set to 0.
scale_power_by_draw_duration
:boolean- Scale power by draw duration? Default is set to false.