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

AI loops when path-finding gets interrupted by a Lead.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18.10
    • 1.13.0.1 Beta, 1.17.30.21 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.16.230.54 Beta, 1.16.220, 1.16.220.50 Beta, 1.16.20.50 Beta, 1.16.0.68 Beta, 1.16.0.67 Beta, 1.16.0.61 Beta, 1.16.0.59 Beta, 1.16.0.57 Beta, 1.16.0.58 Beta, 1.16.0.51 Beta, 1.15.0.56 Beta, 1.14.30.51 Beta, 1.14.20 Hotfix, 1.14.0.51 Beta, 1.14.0.50 Beta, 1.13.3, 1.13.2, 1.13.1, 1.14.1.3 Beta, 1.14.1 Hotfix, 1.13.0.18 Beta, 1.13.0.9 Beta, 1.11.4, 1.13.0.4 Beta, 1.13.0.2 Beta, 1.12.1, 1.12.0, 1.14.0.52 Beta, 1.14.1.2 Beta, 1.14.0, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.0, 1.16.21, 1.16.20, 1.16.40 Hotfix, 1.16.100, 1.16.201 Hotfix, 1.16.210, 1.17.2 Hotfix, 1.17.32, 1.17.40, 1.18.2 Hotfix
    • Confirmed
    • Windows
    • 244137

      I notice this bug initially from a realm I was playing in. I thought it was intentional but it got really annoying because the Wandering Trader's Llamas always kept getting in the way. I then went over to my barn and noticed how all of my horses had this exact same behaviour when strapped to a fence. I then went over to a separate world and tried to replicate the issue and to my surprise, it happens to any mob that can be leashed as soon as they begin to walk out of bounds from the lead. Then it would walk to the player/entity/post but then would begin to walk again in the same direction, causing an infinite loop.

      What I expected to happen was:
      The mob would return to the player/entity/post and then pause for any further movement from the player/entity to continue to follow. Then it would try to walk within the lead's boundaries.

      What actually happened was:
      The mob would return to the player/entity/post as intended, but would then continue on its original path despite the fact the mob can't reach its destination.

      Steps to Reproduce:

      1. First get an entity that can be equipped with a lead (preferably a llama for the sake of the demo).
      2. Then either wait for the mob to move out of bounds, (when the lead begins to stretch) or attach it to a fence.
      3. Observe it's behaviour when it walks. (Give it time, it can take a while)

      Files: https://drive.google.com/file/d/1-VwdN7Vr_6YCE-y8yhPxaIwQrTwA2ZgJ/view?usp=sharing

            Emeraled345 Euwill Eusebio
            Votes:
            16 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: