Offer Flower¶
文档版本:1.21.50.25
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"
}
priority
:priority
chance_to_start
:number- Percent chance that the mob will start this goal from 0.0 to 1.0 (where 1.0 = 100%).
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_offer_flower_duration
:number- The max amount of time (in seconds) that the mob will offer the flower for before exiting the Goal.
max_rotation_x
:number- Maximum rotation (in degrees), on the X-axis, this entity can rotate while trying to look at the target.
search_area
:vector_of_3_items- The dimensions of the AABB used to search for a potential mob to offer flower to.
0..0
:number- The X component.
1..1
:number- The Y component.
2..2
:number- The Z component.