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

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



    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Beta, Beta, 1.16.220, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, 1.14.20 Hotfix, Beta, Beta, 1.13.3, 1.13.2, 1.13.1, Beta, 1.14.1 Hotfix, Beta, Beta, 1.11.4, Beta, Beta, 1.12.1, 1.12.0, Beta, 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
    • Fix Version/s: None
    • Game Mode:
    • Confirmation Status:
    • Platform:
      Windows 10 - PC
    • ADO:


      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


          Issue Links



              Emeraled345 Euwill Eusebio
              10 Vote for this issue
              1 Start watching this issue