Mojira Archive
MCPE-182823

behavior.flee_sun and behavior.restrict_sun do not do anything

The following behaviors do not make a custom entity flee the sun as they should:

  • "minecraft:behavior.flee_sun" {}
  • "minecraft:behavior.restrict_sun" {}

The custom entity does not flee the sun in any situation unless they are assigned a runtime identifier of an entity that flees the sun, like a skeleton.

Steps to reproduce:

1. Import the attached pack and apply it to a new creative mode world.
2. Make a solid block ceiling.
3. Spawn a pig under the open sky, near the ceiling.

Expected result

The pig moves under the solid blocks.

Observed result

The pig does not flee the sun, no matter what their priority is or if the sun is burning them.

Unresolved

MardyH1

2024-06-15, 08:51 AM

2024-07-08, 08:12 PM

1

3

Confirmed

1264882

1.21.0

-