跳转至

Random Fly

文档版本:1.21.0.24

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
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
avoid_damage_blocksboolean
If true, the mob will avoid blocks that cause damage.
can_land_on_treesboolean
If true, the mob can stop flying and land on a tree instead of the ground.
xz_distinteger
Distance in blocks on ground that the mob will look for a new spot to move to. Must be at least 1
y_distinteger
Distance in blocks that the mob will look up or down for a new spot to move to. Must be at least 1
y_offsetinteger
Height in blocks to add to the selected target position.