Take Flower¶
文档版本:1.21.50.25
Can only be used by Villagers. Allows the mob to accept flowers from Iron Golems.
架构¶
take_flower:
{
priority "priority"
speed_multiplier "speed_multiplier"
filters "filters"
number "max_head_rotation_y" : opt
number "max_rotation_x" : opt
number "max_wait_time" : opt
number "min_distance_to_target" : opt
number "min_wait_time" : opt
vector_of_3_items "search_area"
}
priority
:priority
speed_multiplier
:speed_multiplier
filters
:filters- 一个过滤器组。Conditions that need to be met for the behavior to start.
max_head_rotation_y
:number- Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.
max_rotation_x
:number- Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
max_wait_time
:number- The maximum amount of time (in seconds) for the mob to randomly wait for before taking the flower.
min_distance_to_target
:number- Minimum distance (in blocks) for the entity to be considered having reached its target.
min_wait_time
:number- The minimum amount of time (in seconds) for the mob to randomly wait for before taking the flower.
search_area
:vector_of_3_items- The dimensions of the AABB used to search for a potential mob to take a flower from.
0..0
:number- The X component.
1..1
:number- The Y component.
2..2
:number- The Z component.