Random Fly¶
文档版本:1.21.50.25
Allows a mob to randomly fly around.
架构¶
random_fly:
{
priority "priority"
speed_multiplier "speed_multiplier"
boolean "avoid_damage_blocks" : opt
boolean "can_land_on_trees" : opt
integer "xz_dist" : opt
integer "y_dist" : opt
integer "y_offset" : opt
}
priority
:priority
speed_multiplier
:speed_multiplier
avoid_damage_blocks
:boolean- If true, the mob will avoid blocks that cause damage.
can_land_on_trees
:boolean- If true, the mob can stop flying and land on a tree instead of the ground.
xz_dist
:integer- Distance in blocks on ground that the mob will look for a new spot to move to. Must be at least 1
y_dist
:integer- Distance in blocks that the mob will look up or down for a new spot to move to. Must be at least 1
y_offset
:integer- Height in blocks to add to the selected target position.