Circle Around Anchor¶
文档版本:1.21.50.25
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
}
priority:priority
speed_multiplier:speed_multiplier
radius_range:range_number_type- Horizontal distance from the anchor point this entity must stay within upon a successful radius adjustment.
0..0:number- The first value of the range.
1..1:number- The second value of the range.
range_min:number- The minimum value of the range.
range_max:number- The maximum value of the range.
radius_change_chance:integer- 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_range:range_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_range:range_number_type- The range of height in blocks offset the mob can have from it's anchor point.
height_change_chance:integer- 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_radius:number- 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_change:number- 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_chance:number- Percent chance to determine how often to increase the size of the current movement radius around the anchor point. 1 = 100%.
radius_change_chanceis deprecated and has been replaced withradius_adjustment_chance.
height_adjustment_chance:number- Percent chance to determine how often to increase or decrease the current height around the anchor point. 1 = 100%.
height_change_chanceis deprecated and has been replaced withheight_adjustment_chance.
angle_change:number- Number of degrees to change this entity's facing by, when the entity selects its next anchor point.