Edit

Share via


Entity Documentation - minecraft:behavior.flee_sun

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

Flee Sun Behavior Properties

Name Default Value Type Description Example Values
priority not set Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. Bogged: 2, Zombie Villager v2: 4
speed_multiplier 1 Decimal number Movement speed multiplier of the mob when using this AI Goal Bogged: 1

Samples

Bogged

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

Zombie Villager v2

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