minecraft:behavior.random_sitting
Allows the mob to randomly sit for a duration.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
start_chance | Decimal | 0.1 | This is the chance that the mob will start this goal, from 0 to 1 |
stop_chance | Decimal | 0.3 | This is the chance that the mob will stop this goal, from 0 to 1 |
cooldown | Decimal | 100 | Time in seconds the mob has to wait before using the goal again |
min_sit_time | Decimal | 10 | The minimum amount of time in seconds before the mob will stand back up |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Panda uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.random_sitting": {
"priority": 5,
"start_chance": 0.01,
"stop_chance": 0.3,
"cooldown": 30,
"min_sit_time": 10
}
}Used by 1
Vanilla entities with minecraft:behavior.random_sitting 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.random_look_around_and_sitbehavior.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_interest