minecraft:behavior.flee_sun

Allows the mob to run away from direct sunlight and seek shade.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.flee_sun": {
    "priority": 2,
    "speed_multiplier": 1
  }
}

Used by 7

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

Related components