Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267988

Tamed entities ignore their "LookAtPlayerGoal" distance and look in the direction of their owners from any distance when being stood up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21 Pre-Release 3
    • 24w03b, 24w10a, 24w19b
    • None
    • Confirmed
    • Mob behaviour
    • Normal
    • 1171845
    • Expansion A

      The Bug:

      Tamed entities ignore their "LookAtPlayerGoal" distance and look in the direction of their owners from any distance when being stood up.

      For example, with wolves, they are only able to randomly look at players that are at least 8 blocks away from them. If the player is 9 or more blocks away from the wolf, the wolf will never randomly look at the player, but this concept is completely ignored when owners make their tamed entities stand up; upon the tamed entity being stood up, it will always look at its owner regardless of how far away the owner is.

      In some cases this can cause tamed entities to look at the owners who are over 200 blocks away from them. This doesn't seem right.

      Steps to Reproduce:

      1. Summon a wolf, tame it, and make it sit.
      2. Set your "minecraft:player.entity_interaction_range" attribute to 64 by using the command provided below.
        /attribute @s minecraft:player.entity_interaction_range base set 64
      3. Fly up in the air and far away from the wolf and obtain a spyglass.
      4. Make the wolf stand and observe where the wolf is looking.

      Observed Behavior:

      Tamed entities will look at players that are beyond their "LookAtPlayerGoal" distance.

      Expected Behavior:

      Tamed entities would not be able to look at players that are beyond their "LookAtPlayerGoal" distance.

        1. MC-267988.png
          MC-267988.png
          463 kB
        2. MC-267988.mp4
          9.64 MB

            gnembon [Mojang] Gnembon
            Avoma [Mod] Avoma
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: