minecraft:behavior.stay_while_sitting
Allows the mob to stay put while it is in a sitting state instead of doing something else.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Cat uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.stay_while_sitting": {
"priority": 3
}
}Used by 4
Vanilla entities with minecraft:behavior.stay_while_sitting in their definition:
Related components
behavior.look_at_playerbehavior.temptbehavior.breedbehavior.mount_pathingbehavior.follow_parentbehavior.player_ride_tamedbehavior.find_mountbehavior.celebratebehavior.follow_ownerbehavior.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_interestbehavior.admire_item