minecraft:behavior.scared

Allows the mob to become scared when the weather outside is thundering.

Properties

PropertyTypeDefaultWhat it does
sound_delayInteger0The interval in which a sound will play when active in a 1/delay chance to kick off.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Panda uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.scared": {
    "priority": 1
  }
}

Used by 1

Vanilla entities with minecraft:behavior.scared in their definition:

Related components