minecraft:behavior.sonic_boom
Allows this entity to perform a 'sonic boom' ranged attack
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
duration | Decimalmin 0 | 0 | Goal duration in seconds |
speed_multiplier | Decimal | 1 | This multiplier modifies the attacking entity's speed when moving toward the target. |
attack_damage | Decimal | 30 | Attack damage of the sonic boom. |
attack_range_horizontal | Decimal | 15 | Horizontal range (in blocks) at which the sonic boom can damage the target. |
attack_range_vertical | Decimal | 20 | Vertical range (in blocks) at which the sonic boom can damage the target. |
attack_cooldown | Decimal | 5 | Cooldown in seconds required after using this attack until the entity can use sonic boom again. |
knockback_vertical_strength | Decimal | 0 | Vertical strength of the attack's knockback applied to the attack target. |
knockback_horizontal_strength | Decimal | 0 | Horizontal strength of the attack's knockback applied to the attack target. |
knockback_height_cap | Decimal | 0 | Height cap of the attack knockback's vertical delta. |
duration_until_attack_sound | Decimal | 1.7 | Duration in seconds until the attack sound is played. |
attack_sound | Text | "" | Sound event for the attack. |
charge_sound | Text | "" | Sound event for the charge up. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.nearest_attackable_targetbehavior.melee_box_attackbehavior.ranged_attackbehavior.stomp_turtle_eggbehavior.leap_at_targetbehavior.nearest_prioritized_attackable_targetbehavior.aquatic_charge_attackbehavior.charge_held_itembehavior.guardian_attackbehavior.ocelotattackbehavior.slime_attackbehavior.charge_attackbehavior.delayed_attackbehavior.dragonchargeplayerbehavior.dragonflamingbehavior.dragonstrafeplayerbehavior.fire_at_targetbehavior.knockback_roarbehavior.melee_attackbehavior.ram_attackbehavior.roarbehavior.send_eventbehavior.stomp_attackbehavior.summon_entity