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.
Compels an entity to look at the player by rotating the head
bone pose within a set limit.
Look At Player Behavior Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
angle_of_view_horizontal | 360 | Integer number | The angle in degrees that the mob can see in the Y-axis (up-down). | Ravager: 45 |
angle_of_view_vertical | 360 | Integer number | The angle in degrees that the mob can see in the X-axis (left-right). | |
look_distance | 8 | Decimal number | The distance in blocks from which the entity will look at the nearest player. | Bogged: 8 , Breeze: 16 , Cave Spider: 6 |
look_time | not set | Range of integers | Time range to look at the nearest player. | Campghost: [0,100] |
max_look_time | not set | Decimal number | Armadillo: 80 |
|
min_look_time | not set | Decimal number | Armadillo: 40 |
|
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. | Allay: 8 , Armadillo: 7 , Axolotl: 10 |
probability | 0.02 | Decimal number | The probability of looking at the target. A value of 1.00 is 100%. | Allay: 0.02 , Elder Guardian: 0.01 , Enderman: 8 |
target_distance | not set | Decimal number | Allay: 6 |
Samples
Allay
"minecraft:behavior.look_at_player": {
"priority": 8,
"target_distance": 6,
"probability": 0.02
}
Armadillo
"minecraft:behavior.look_at_player": {
"priority": 7,
"target_distance": 6,
"probability": 0.02,
"min_look_time": 40,
"max_look_time": 80
}
Axolotl
"minecraft:behavior.look_at_player": {
"priority": 10,
"target_distance": 6,
"probability": 0.02
}
Bogged
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 8
}
Breeze
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 16
}
Camel
"minecraft:behavior.look_at_player": {
"priority": 7,
"target_distance": 6,
"probability": 0.02
}
Cat
"minecraft:behavior.look_at_player": {
"priority": 9
}
Cave Spider
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6,
"probability": 0.02
}
Creeper
"minecraft:behavior.look_at_player": {
"priority": 6,
"look_distance": 8
}
Dolphin
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 6
}
Drowned
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 6,
"probability": 0.02
}
Elder Guardian
"minecraft:behavior.look_at_player": {
"priority": 8,
"look_distance": 12,
"probability": 0.01
}