跳转至

Offer Flower

文档版本:1.21.0.24

Allows the mob to offer the player a flower like the Iron Golem does.

架构

offer_flower:
{
  priority "priority"
  number "chance_to_start" : opt
  filters "filters"
  number "max_head_rotation_y" : opt
  number "max_offer_flower_duration" : opt
  number "max_rotation_x" : opt
  vector_of_3_items "search_area"
}
prioritypriority
priority:
integer
chance_to_startnumber
Percent chance that the mob will start this goal from 0.0 to 1.0 (where 1.0 = 100%).
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_offer_flower_durationnumber
The max amount of time (in seconds) that the mob will offer the flower for before exiting the Goal.
max_rotation_xnumber
Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
search_areavector_of_3_items
The dimensions of the AABB used to search for a potential mob to offer flower to.
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.