minecraft:behavior.random_look_around_and_sit
Allows the mob to randomly sit and look around for a duration. Note: Must have a sitting animation set up to use this.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
min_look_time | Integer | 20 | The min amount of time (in ticks) a mob will stay looking at a direction while looking around. |
max_look_time | Integer | 40 | The max amount of time (in ticks) a mob will stay looking at a direction while looking around. |
continue_sitting_on_reload | Boolean | false | The mob will stay sitting on reload. |
continue_if_leashed | Boolean | false | If the goal should continue to be used as long as the mob is leashed. |
min_look_count | Integer | 1 | The min amount of unique looks a mob will have while looking around. |
max_look_count | Integer | 2 | The max amount of unique looks a mob will have while looking around. |
random_look_around_cooldown | Integer | 0 | The cooldown in seconds before the goal can be used again. |
min_angle_of_view_horizontal | Decimal | -180 | The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction. |
max_angle_of_view_horizontal | Decimal | 180 | The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction. |
probability | Decimal | 0.02 | The probability of randomly looking around. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Camel uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.random_look_around_and_sit": {
"priority": 4,
"continue_if_leashed": true,
"continue_sitting_on_reload": true,
"min_look_count": 2,
"max_look_count": 5,
"min_look_time": 80,
"max_look_time": 100,
"min_angle_of_view_horizontal": -30,
"max_angle_of_view_horizontal": 30,
"random_look_around_cooldown": 5,
"probability": 0.001
}
}Used by 3
Vanilla entities with minecraft:behavior.random_look_around_and_sit in their definition:
Related components
behavior.look_at_playerbehavior.temptbehavior.breedbehavior.mount_pathingbehavior.follow_parentbehavior.player_ride_tamedbehavior.find_mountbehavior.celebratebehavior.follow_ownerbehavior.stay_while_sittingbehavior.look_at_trading_playerbehavior.take_flowerbehavior.trade_with_playerbehavior.celebrate_survivebehavior.controlled_by_playerbehavior.follow_caravanbehavior.follow_mobbehavior.make_lovebehavior.ocelot_sit_on_blockbehavior.playbehavior.receive_lovebehavior.share_itemsbehavior.trade_interestbehavior.admire_item