Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows this entity to fly around looking for a player to shoot fireballs at.
Note
Can only be used on the following type of entity:
- Ender Dragon (minecraft:ender_dragon)
Dragonstrafeplayer Behavior Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
active_speed | 0.6 | Decimal number | The speed this entity moves when this behavior has started or while it's active. | |
fireball_range | 64 | Decimal number | Maximum distance of this entity's fireball attack while strafing. | |
flight_speed | 0.6 | Decimal number | The speed this entity moves while this behavior is not active. | |
priority | not set | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Ender Dragon: 2 |
switch_direction_probability | 0.125 | Decimal 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 | 0.25 | Decimal 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 | not set | Range of integers | Minimum and maximum distance, from the target, this entity can use this behavior. | |
turn_speed | 0.7 | Decimal number | The speed at which this entity turns while using this behavior. | |
view_angle | 10 | Decimal number | The target must be within "view_angle" degrees of the dragon's current rotation before a fireball can be shot. |
Samples
Ender Dragon
"minecraft:behavior.dragonstrafeplayer": {
"priority": 2
}