Entity Documentation - minecraft:behavior.look_at_entity
minecraft:behavior.look_at_entity
compels an entity to look at a specific entity by rotating the head bone pose within a set limit.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
angle_of_view_horizontal | 360 | Integer | TThe angle in degrees that the mob can see in the X-axis (left-right) |
angle_of_view_vertical | 360 | Integer | The angle in degrees that the mob can see in the Y-axis (up-down) |
filters | not set | Minecraft Filter | Filter to determine the conditions for this mob to look at the entity |
look_distance | 8.0 | Decimal | The distance in blocks from which the entity will look at |
look_time | [2, 4] | Range [a, b] | Time range to look at the entity |
probability | 0.02 | Decimal | The probability of looking at the entity. A value of 1.00 is 100% |
Example
"minecraft:behavior.look_at_entity":{
"priority": 2,
"angle_of_view_horizontal":90,
"angle_of_view_vertical":90,
"look_distance": 16,
"look_time": [1,5],
"probability": 0.5,
"filters":{
"test": "is_family", "subject": "other", "value": "wolf"
}
}
Vanilla entities examples
ravager
"minecraft:behavior.look_at_entity": {
"priority": 10,
"look_distance": 8,
"angle_of_view_horizontal": 45,
"filters": {
"test": "is_family",
"subject": "other",
"value": "mob"
}
}
Vanilla entities using minecraft:behavior.look_at_entity
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for