跳转至

Take Flower

文档版本:1.21.0.24

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"
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
filtersfilters
一个过滤器组。Conditions that need to be met for the behavior to start.
max_head_rotation_ynumber
Maximum rotation (in degrees), on the Y-axis, this entity can rotate its head while trying to look at the target.
max_rotation_xnumber
Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
max_wait_timenumber
The maximum amount of time (in seconds) for the mob to randomly wait for before taking the flower.
min_distance_to_targetnumber
Minimum distance (in blocks) for the entity to be considered having reached its target.
min_wait_timenumber
The minimum amount of time (in seconds) for the mob to randomly wait for before taking the flower.
search_areavector_of_3_items
The dimensions of the AABB used to search for a potential mob to take a flower from.
vector_of_3_items:
array
{
  number "0..0" : opt
  number "1..1" : opt
  number "2..2" : opt
}
0..0number
The X component.
1..1number
The Y component.
2..2number
The Z component.