minecraft:behavior.dragonchargeplayer

Allows this entity to attack a player by charging at them. The player is chosen by the "minecraft:behavior.dragonscanning". Can only be used by the Ender Dragon.

Properties

PropertyTypeDefaultWhat it does
continue_charge_threshold_timeDecimal0.5If the dragon is outside the "target_zone" for longer than "continue_charge_threshold_time" seconds, the charge is canceled.
active_speedDecimalmin 03The speed this entity moves when this behavior has started or while it's active.
flight_speedDecimalmin 00.6The speed this entity moves while this behavior is not active.
turn_speedDecimalmin 00.7The speed at which this entity turns while using this behavior.
target_zoneObject{"max": 150, "min": 10}Minimum and maximum distance, from the target, this entity can use this behavior.
minDecimal0
maxDecimal0
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Ender Dragon uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.dragonchargeplayer": {
    "priority": 1
  }
}

Used by 1

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

Related components