跳转至

Dragonstrafeplayer

文档版本:1.21.0.24

Allows this entity to fly around looking for a player to shoot fireballs at. Note: This behavior can only be used by the ender_dragon entity type.

架构

dragonstrafeplayer:
{
  priority "priority"
  number "active_speed" : opt
  number "fireball_range" : opt
  number "flight_speed" : opt
  number "switch_direction_probability" : opt
  number "target_in_range_and_in_view_time" : opt
  range_number_type "target_zone"
  number "turn_speed" : opt
  number "view_angle" : opt
}
prioritypriority
priority:
integer
active_speednumber
The speed this entity moves when this behavior has started or while it's active.
fireball_rangenumber
Maximum distance of this entity's fireball attack while strafing.
flight_speednumber
The speed this entity moves while this behavior is not active.
switch_direction_probabilitynumber
Percent chance to to switch this entity's strafe direction between clockwise and counterclockwise. Switch direction chance occurs each time a new target is chosen (1.0 = 100%).
target_in_range_and_in_view_timenumber
Time (in seconds) the target must be in fireball range, and in view [ie, no solid terrain in-between the target and this entity], before a fireball can be shot.
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.
view_anglenumber
The target must be within "view_angle" degrees of the dragon's current rotation before a fireball can be shot.