Play¶
文档版本:1.21.50.25
Allows the mob to play with other baby villagers. This can only be used by Villagers.
架构¶
play:
{
priority "priority"
speed_multiplier "speed_multiplier"
number "chance_to_start" : opt
integer "follow_distance" : opt
vector_of_3_items "friend_search_area"
array "friend_types" : opt
{
"<any array element>" : opt
}
number "max_play_duration_seconds" : opt
integer "random_pos_search_height" : opt
integer "random_pos_search_range" : opt
}
priority:priority
speed_multiplier:speed_multiplier
chance_to_start:number- Percent chance that the mob will start this goal, from 0 to 1.
follow_distance:integer- The distance (in blocks) that the mob tries to be in range of the friend it's following.
friend_search_area:vector_of_3_items- The dimensions of the AABB used to search for a potential friend to play with.
0..0:number- The X component.
1..1:number- The Y component.
2..2:number- The Z component.
friend_types:array- The entity type(s) to consider when searching for a potential friend to play with.
friend_types<any array element>
max_play_duration_seconds:number- The max amount of seconds that the mob will play for before exiting the Goal.
random_pos_search_height:integer- The height (in blocks) that the mob will search within to find a random position position to move to. Must be at least 1.
random_pos_search_range:integer- The distance (in blocks) on ground that the mob will search within to find a random position to move to. Must be at least 1.