minecraft:behavior.sonic_boom

Allows this entity to perform a 'sonic boom' ranged attack

Properties

PropertyTypeDefaultWhat it does
durationDecimalmin 00Goal duration in seconds
speed_multiplierDecimal1This multiplier modifies the attacking entity's speed when moving toward the target.
attack_damageDecimal30Attack damage of the sonic boom.
attack_range_horizontalDecimal15Horizontal range (in blocks) at which the sonic boom can damage the target.
attack_range_verticalDecimal20Vertical range (in blocks) at which the sonic boom can damage the target.
attack_cooldownDecimal5Cooldown in seconds required after using this attack until the entity can use sonic boom again.
knockback_vertical_strengthDecimal0Vertical strength of the attack's knockback applied to the attack target.
knockback_horizontal_strengthDecimal0Horizontal strength of the attack's knockback applied to the attack target.
knockback_height_capDecimal0Height cap of the attack knockback's vertical delta.
duration_until_attack_soundDecimal1.7Duration in seconds until the attack sound is played.
attack_soundText""Sound event for the attack.
charge_soundText""Sound event for the charge up.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.sonic_boom": {
    "duration": 3,
    "speed_multiplier": 1.2,
    "attack_damage": 10,
    "attack_cooldown": 2,
    "knockback_vertical_strength": 0.5,
    "knockback_horizontal_strength": 2.5,
    "knockback_height_cap": 0.5,
    "attack_sound": "sonic_boom",
    "charge_sound": "sonic_charge",
    "priority": 3
  }
}

Used by 1

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

Related components