跳转至

Dragonchargeplayer

文档版本:1.21.0.24

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
}
prioritypriority
priority:
integer
active_speednumber
The speed this entity moves when this behavior has started or while it's active.
continue_charge_threshold_timenumber
If the dragon is outside the "target_zone" for longer than "continue_charge_threshold_time" seconds, the charge is canceled.
flight_speednumber
The speed this entity moves while this behavior is not active.
target_zonerange_number_type
Minimum and maximum distance, from the target, this entity can use this behavior.
range_number_type:
number
range_number_type:
array
{
  number "0..0" : opt
  number "1..1" : opt
}
0..0number
The first value of the range.
1..1number
The second value of the range.
range_number_type:
{
  number "range_min" : opt
  number "range_max" : opt
}
range_minnumber
The minimum value of the range.
range_maxnumber
The maximum value of the range.
turn_speednumber
The speed at which this entity turns while using this behavior.