编辑

Entity Documentation - minecraft:behavior.restrict_sun

Allows the mob to automatically start avoiding the sun when its a clear day out.

Entity Restrict Sun Behavior Properties

Name Default Value Type Description
control_flags [] Control Flags choices
priority 0 Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

Control Flags choices

Value Title Description
jump Jump
look Look
move Move