minecraft:behavior.swoop_attack

Allows an entity to attack using swoop attack behavior; Ideal for use with flying mobs. The behavior ends if the entity has a horizontal collision or gets hit.

Properties

PropertyTypeDefaultWhat it does
damage_reachDecimal0.2Added to the base size of the entity, to determine the target's maximum allowable distance, when trying to deal attack damage.
speed_multiplierDecimal1During swoop attack behavior, this determines the multiplier the entity's speed is modified by when moving toward the target.
delay_rangeObject{"max": 20, "min": 10}Minimum and maximum cooldown time-range (in seconds) between each attempted swoop attack.
minDecimal0
maxDecimal0
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Phantom uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.swoop_attack": {
    "priority": 2
  }
}

Used by 1

Vanilla entities with minecraft:behavior.swoop_attack in their definition:

Related components