minecraft:behavior.flee_sun
Allows the mob to run away from direct sunlight and seek shade.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
speed_multiplier | Decimal | 1 | Movement speed multiplier of the mob when using this AI Goal |
priority | Integermin 0 | 0 | |
control_flags | List 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: