Entity Documentation - minecraft:behavior.random_look_around
minecraft:behavior.random_look_around
compels an entity to choose a random direction to look in for a random duration within a range.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
angle_of_view_horizontal | 360 | Integer | The angle in degrees that an entity can see in the Y-axis (up-down). |
angle_of_view_vertical | 360 | Integer | The angle in degrees that an entity can see in the X-axis (left-right). |
look_distance | 8.0 | Float | The distance in blocks from which the entity will look at. |
look_time | [2, 4] | Range [a, b] | The range of time in seconds the mob will stay looking in a random direction before looking elsewhere. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
probability | 0.2 | Float | The probability of looking at the target. A value of 1.00 is 100%. |
Example
"minecraft:behavior.random_look_around":{
"priority": 2,
"look_time": [1,5]
}
Vanilla entities examples
blaze
"minecraft:behavior.random_look_around": {
"priority": 5
}
Vanilla entities using minecraft:behavior.random_look_around
- bee
- blaze
- cave_spider
- chicken
- cow
- creeper
- dolphin
- donkey
- drowned
- elder_guardian
- enderman
- fox
- goat
- hoglin
- horse
- husk
- iron_golem
- llama
- mooshroom
- mule
- panda
- pig
- piglin_brute
- piglin
- pillager
- polar_bear
- sheep
- shulker
- skeleton
- skeleton_horse
- snow_golem
- spider
- stray
- strider
- wandering_trader
- witch
- wither_skeleton
- wither
- zoglin
- zombie_horse
- zombie pigman
- zombie_villager_v2
- zombie_villager
- zombie
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示