Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-182823

behavior.flee_sun and behavior.restrict_sun do not do anything

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.0
    • None
    • Confirmed
    • Multiple
    • 1264882

      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.

            mardymia MardyH1
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: