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

Custom tamed entities with delayed attacks attack other tamed entities

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.20.22 Preview, 1.20.10.20 Preview, 1.19.80.21 Preview, 1.19.80.20 Preview, 1.19.41, 1.19.63, 1.19.70, 1.19.83 Hotfix, 1.20.12 Hotfix, 1.20.13 Hotfix, 1.20.30, 1.20.51 Hotfix, 1.20.60, 1.20.62 Hotfix, 1.20.80, 1.20.81 Hotfix, 1.21.30
    • None
    • Confirmed
    • Windows
    • 1047028

      Steps to Reproduce:

      1. Download the attached pack and create a world using it
      2. Enable all experimental features available (I believe this isn't needed but I've always had experimental features on when testing)
      3. Spawn the "Atlasaurus" entity
      4. Tame it with wheat
      5. Spawn a wolf
      6. Tame the wolf
      7. Make sure the dinosaur is standing and punch the wolf

      Observed Behavior

      The dinosaur will attack and kill the wolf even though they have been tamed by the same player.

      Expected Behavior

      The dinosaur will not attack the other entity.

      Notes 

      Removing the delayed attack component and using the melee attack component fixes this.

      Edit: Included video to demonstrate that it doesn't happen every time but does happen sometimes

        1. Bug 164588.mp4
          6.89 MB
          Xterionix
        2. image-2023-05-29-22-28-09-102.png
          4 kB
          Xterionix
        3. z .mcaddon
          165 kB
          Xterionix

            Xterionix Xterionix
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: