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.
Note
In 1.26.0 the schema is stricter and rejects invalid JSON. The min_look_time and max_look_time fields are deprecated and replaced by a single look_time range (with min and max). Existing uses of min_look_time / max_look_time are upgraded automatically.
Entity 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 rotated on the Y-axis (left-right). Value must be <= 360. | Ravager: 45 |
| angle_of_view_vertical | 360 | Integer number | The angle in degrees that the mob can see rotated on the X-axis (up-down). Value must be <= 360. | |
| control_flags | [] | Control Flags choices | ||
| look_distance | 8 | Decimal number | The distance in blocks from which the entity will look at the nearest entity. | Bogged: 8, Breeze: 16, Cave Spider: 6 |
| look_time | {"max":4,"min":2} | Look Time item | Time range to look at the nearest entity. | Zombie Horse: [2,4], Campghost: [0,100] |
| max_look_time | not set | Decimal number | Armadillo: 80 |
|
| min_look_time | not set | Decimal number | Armadillo: 40 |
|
| priority | 0 | 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.019999999552965164 | Decimal number | The probability of looking at the target. A value of 1.00 is 100%. Value must be <= 1. | Allay: 0.02, Elder Guardian: 0.01, Enderman: 8 |
| target_distance | not set | Decimal number | Allay: 6 |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Legacy FloatRange
Legacy FloatRange Properties
JSON path: look_time
| Name | Default Value | Type | Description |
|---|---|---|---|
| max | 0 | Decimal number | |
| min | 0 | Decimal number |
Samples
Allay
"minecraft:behavior.look_at_player": {
"priority": 8,
"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
}
Cave Spider
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_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
}
Camel
"minecraft:behavior.look_at_player": {
"priority": 7,
"target_distance": 6,
"probability": 0.02
}
Cat
"minecraft:behavior.look_at_player": {
"priority": 9
}
Copper Golem
"minecraft:behavior.look_at_player": {
"priority": 6,
"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
}