Dragonstrafeplayer¶
文档版本:1.21.50.25
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
}
priority
:priority
active_speed
:number- The speed this entity moves when this behavior has started or while it's active.
fireball_range
:number- Maximum distance of this entity's fireball attack while strafing.
flight_speed
:number- The speed this entity moves while this behavior is not active.
switch_direction_probability
:number- 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_time
:number- 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_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.
view_angle
:number- The target must be within "view_angle" degrees of the dragon's current rotation before a fireball can be shot.