Go And Give Items To Owner¶
文档版本:1.21.50.25
[EXPERIMENTAL BEHAVIOR] The entity will attempt to toss the items from its inventory to its owner.
架构¶
go_and_give_items_to_owner:
{
priority "priority"
trigger "on_item_throw"
number "reach_mob_distance" : opt
number "run_speed" : opt
number "throw_force" : opt
sound_event "throw_sound"
number "vertical_throw_mul" : opt
}
priority
:priority
on_item_throw
:trigger- Event(s) to run when this mob throws items.
event
:string- The event to run when the conditions for this trigger are met.
filters
:filters- 一个过滤器组。The list of conditions for this trigger to execute.
target
:subject- The target of the event.
trigger:
array
{
object "<any array element>" : opt
{
string "event" : opt
filters "filters"
subject "target"
}
}
<any array element>
:object
<any array element>
reach_mob_distance
:number- Sets the desired distance to be reached before giving items to owner.
run_speed
:number- Sets the entity's speed when running toward the owner.
throw_force
:number- Sets the throw force.
throw_sound
:sound_event- Sound to play when this mob throws an item.
vertical_throw_mul
:number- Sets the vertical throw multiplier that is applied on top of the throw force in the vertical direction.