Entity Documentation - minecraft:behavior.look_at_player
minecraft:behavior.look_at_player
compels an entity to look at the player 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). |
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. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
probability | 0.02 | Decimal | The probability of looking at the target. A value of 1.00 is 100%. |
target_distance | 6.0 | Decimal | The distance in blocks from which the entity will choose a target. |
Example
"minecraft:behavior.look_at_player":{
"priority": 2,
"angle_of_view_horizontal":90,
"angle_of_view_vertical":90,
"look_distance": 16,
"look_time": [1,5],
"probability": 0.5
}
Vanilla entities examples
axolotl
"minecraft:behavior.look_at_player": {
"priority": 10,
"target_distance": 6.0,
"probability": 0.02
}
Vanilla entities using minecraft:behavior.look_at_player
- axolotl
- cat
- cave_spider
- chest_minecart
- chicken
- cow
- creeper
- dolphin
- donkey
- drowned
- elder_guardian
- ender_dragon
- enderman
- evocation_illager
- fox
- goat
- guardian
- hoglin
- horse
- husk
- iron_golem
- llama
- mooshroom
- mule
- npc
- ocelot
- panda
- parrot
- pig
- piglin_brute
- piglin
- pillager
- polar_bear
- rabbit
- ravager
- sheep
- shulker
- skeleton_horse
- skeleton
- snow_golem
- spider
- stray
- strider
- turtle
- vex
- villager_v2
- villager
- vindicator
- wandering_trader
- witch
- wither skeleton
- wither
- wolf
- zoglin
- zombie_horse
- zombie pigman
- zombie_villager_v2
- zombie_villager
- zombie
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示