minecraft:behavior.aquatic_charge_attack
Enables an aquatic mob to dash at its target with knockback; includes overshoot and cooldown settings.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
max_charge_distance | Decimalmin 0 | 16 | Maximum distance at which the mob attempts a charge. |
charge_speed | Decimalmin 0.05 | 0.06 | Absolute speed used during the charge attack. |
attack_reach | Decimalmin 0 | 0.05 | Horizontal reach grown around the mob's AABB to register a hit. |
knockback_force | Decimalmin 0 | 2 | Knockback force applied to the target on hit. |
charge_overshoot_distance | Decimalmin 0 | 1.5 | Distance beyond the target the mob aims during a charge. |
charge_cooldown_time | Object | {"max": 6, "min": 2} | Range of time in seconds to wait before starting another charge. |
min | Decimal | 0 | |
max | Decimal | 0 | |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Nautilus uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.aquatic_charge_attack": {
"priority": 3,
"max_charge_distance": 16,
"charge_speed": 1.2,
"attack_reach": 0.0,
"knockback_force": 2.0,
"charge_overshoot_distance": 1.5,
"charge_cooldown_time": {
"min": 4.0,
"max": 4.0
}
}
}Used by 2
Vanilla entities with minecraft:behavior.aquatic_charge_attack in their definition:
Related components
behavior.nearest_attackable_targetbehavior.melee_box_attackbehavior.ranged_attackbehavior.stomp_turtle_eggbehavior.leap_at_targetbehavior.nearest_prioritized_attackable_targetbehavior.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.sonic_boombehavior.stomp_attackbehavior.summon_entity