跳转至

Float Wander

文档版本:1.21.0.24

Allows the mob to float around like the Ghast.

架构

float_wander:
{
  priority "priority"
  integer "xz_dist" : opt
  integer "y_dist" : opt
  number "y_offset" : opt
  boolean "must_reach" : opt
  boolean "random_reselect" : opt
  range_number_type "float_duration"
}
prioritypriority
priority:
integer
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_offsetnumber
Height in blocks to add to the selected target position.
must_reachboolean
If true, the point has to be reachable to be a valid target.
random_reselectboolean
If true, the mob will randomly pick a new point while moving to the previously selected one.
float_durationrange_number_type
Range of time in seconds the mob will float around before landing and choosing to do something else.
range_number_type:
number
range_number_type:
array
{
  number "0..0" : opt
  number "1..1" : opt
}
0..0number
The first value of the range.
1..1number
The second value of the range.
range_number_type:
{
  number "range_min" : opt
  number "range_max" : opt
}
range_minnumber
The minimum value of the range.
range_maxnumber
The maximum value of the range.