Dragonchargeplayer¶
文档版本:1.21.50.25
Allows this entity to attack a player by charging at them. The player is chosen by the "minecraft:behavior.dragonscanning". Note: This behavior can only be used by the ender_dragon entity type.
架构¶
dragonchargeplayer:
{
priority "priority"
number "active_speed" : opt
number "continue_charge_threshold_time" : opt
number "flight_speed" : opt
range_number_type "target_zone"
number "turn_speed" : opt
}
priority
:priority
active_speed
:number- The speed this entity moves when this behavior has started or while it's active.
continue_charge_threshold_time
:number- If the dragon is outside the "target_zone" for longer than "continue_charge_threshold_time" seconds, the charge is canceled.
flight_speed
:number- The speed this entity moves while this behavior is not active.
target_zone
:range_number_type- Minimum and maximum distance, from the target, this entity can use this behavior.
0..0
:number- The first value of the range.
1..1
:number- The second value of the range.
range_min
:number- The minimum value of the range.
range_max
:number- The maximum value of the range.
turn_speed
:number- The speed at which this entity turns while using this behavior.