跳转至

Circle Around Anchor

文档版本:1.21.0.24

Causes an entity to circle around an anchor point placed near a point or target.

架构

circle_around_anchor:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  range_number_type "radius_range"
  integer "radius_change_chance" : opt
  range_number_type "height_above_target_range"
  range_number_type "height_offset_range"
  integer "height_change_chance" : opt
  number "goal_radius" : opt
  number "radius_change" : opt
  number "radius_adjustment_chance" : opt
  number "height_adjustment_chance" : opt
  number "angle_change" : opt
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
radius_rangerange_number_type
Horizontal distance from the anchor point this entity must stay within upon a successful radius adjustment.
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.
radius_change_chanceinteger
A random value to determine when to increase the size of the radius up to the maximum. This has a 1/value chance every tick to do so.
height_above_target_rangerange_number_type
The number of blocks above the target that the next anchor point can be set. This value is used only when the entity is tracking a target.
height_offset_rangerange_number_type
The range of height in blocks offset the mob can have from it's anchor point.
height_change_chanceinteger
A random value to determine when to change the height of the mob from the anchor point. This has a 1/value chance every tick to do so.
goal_radiusnumber
Maximum distance from the anchor-point in which this entity considers itself to have reached the anchor point. This is to prevent the entity from bouncing back and forth trying to reach a specific spot.
radius_changenumber
The number of blocks to increase the current movement radius by, upon successful radius_adjustment_chance. If the current radius increases over the range maximum, the current radius will be set back to the range minimum and the entity will change between clockwise and counter-clockwise movement.
radius_adjustment_chancenumber
Percent chance to determine how often to increase the size of the current movement radius around the anchor point. 1 = 100%. radius_change_chance is deprecated and has been replaced with radius_adjustment_chance.
height_adjustment_chancenumber
Percent chance to determine how often to increase or decrease the current height around the anchor point. 1 = 100%. height_change_chance is deprecated and has been replaced with height_adjustment_chance.
angle_changenumber
Number of degrees to change this entity's facing by, when the entity selects its next anchor point.