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

AI pathfinding never ends until their goal is reached

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18.10
    • 1.18.0.22 Beta, 1.17.40.20 Beta, 1.17.11 Hotfix, 1.17.0.54 Beta, 1.16.220.50 Beta, 1.16.210.58 Beta, 1.16.210.56 Beta, 1.16.210.55 Beta, 1.16.210.54 Beta, 1.16.210.53 Beta, 1.16.210.50 Beta, 1.16.200.57 Beta, 1.16.200.53 Beta, 1.16.100.58 Beta, 1.16.100.57 Beta, 1.16.100.56 Beta, 1.16.100.54 Beta, 1.16.100.53 Beta, 1.16.100.52 Beta, 1.16.100.50 Beta, 1.16.20.53 Beta, 1.16.20.52 Beta, 1.16.0.68 Beta, 1.16.0.67 Beta, 1.16.0.66 Beta, 1.16.0.64 Beta, 1.16.0.63 Beta, 1.16.0.61 Beta, 1.16.0.60 Beta, 1.16.0.59 Beta, 1.16.0.57 Beta, 1.16.0.58 Beta, 1.16.0.55 Beta, 1.16.0.53 Beta, 1.16.0.51 Beta, 1.15.0.56 Beta, 1.15.0.55 Beta, 1.15.0.54 Beta, 1.15.0.53 Beta, 1.15.0.51 Beta, 1.14.30.51 Beta, 1.14.25.1 Beta, 1.14.20 Hotfix, 1.14.2.51 Beta, 1.14.2.50 Beta, 1.14.0.51 Beta, 1.14.0.50 Beta, 1.14.0.6 Beta, 1.14.0.4 Beta, 1.13.1, 1.14.1.3 Beta, 1.14.1 Hotfix, 1.14.0.3 Beta, 1.14.0.2 Beta, 1.14.0.1 Beta, 1.13.0.18 Beta, 1.13.0.17 Beta, 1.13.0.16 Beta, 1.13.0.15 Beta, 1.13.0.13 Beta, 1.13.0.9 Beta, 1.13.0.6 Beta, 1.13.0.5 Beta, 1.13.0.4 Beta, 1.13.0.2 Beta, 1.12.1, 1.12.0, 1.13.0, 1.14.1.2 Beta, 1.14.0, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.0, 1.16.1, 1.16.10, 1.16.20, 1.16.40 Hotfix, 1.16.100.59 Beta, 1.16.100, 1.16.200, 1.16.221 Hotfix, 1.17.0, 1.17.2 Hotfix, 1.17.41 Hotfix, 1.18.0, 1.18.2 Hotfix
    • None
    • Confirmed
    • Multiple
    • 244137

      The bug

      If an entity identifies a path, they will always attempt to execute it, even if it later becomes mostly (not fully) impossible, unless the player interacts with them via lead (moving them dozens of blocks), breeding, or leaving the world.

      This report is not MCPE-46805 or MCPE-45527but does add to the problem.

       

      There are many ways to reproduce this, including some that may not be listed here:

      Method 1

      1. Make a large cubic area enclosed with any block or fence (suggested 11 x 11)
      2. Spawn about 32 of any equal sized mob
      3. Wait 1-3 minutes

      At the end, every mob should be pushed towards one side or corner of the cube, constantly colliding off of each other, until the player interacts with them (in the ways listed above).

      Method 2

      1. Make an enclosed 3 x 4 area
      2. Set up a tripwire on one of the two shortest sides
      3. Link it to a command block that teleports any mob (that will be used later) back into the box
      4. Place fences above the tripwire hooks, but leave the block above the tripwire (the string) clear
      5. Spawn a mob that's taller than one block
      6. Wait until they pathfind outside of the area

      At the end, that mob should never stop attempting to leave the box until the player interacts with them (in the ways listed above).

      Method 3

      1. Spawn a mob that can be leashed
      2. Leash the mob
      3. (optional) Place the lead on a fence
      4. Wait until they pathfind

      At the end, that mob should never stop pathfinding in the same direction that they're attempting to, until the player interacts with them (in the ways listed above).

      Method 4 (relates to method 3)

      1. Spawn a mob that can be leashed
      2. Leash the mob (do not place the lead on a fence)
      3. Place a fence and any full block next to each other
      4. Stand next to the fence as close as possible on any side (except for on top of the full block)
      5. Wait for the mob to pathfind

      When the mob goes too far on the lead, they will come back and jump onto the fence (the block that the player is in) endlessly, until the player interacts with them (in the ways listed above).

      Method 5

      1. Spawn a mob in a body of water (a generated ocean coastline or river is recommended)
      2. Wait until they pathfind onto land
      3. Quickly place a full block on land, directly in their way from leaving the water

      At the end, they will endlessly jump in the water until the player interacts with them (in the ways listed above).

        1. TIM截图20200213220215.png
          TIM截图20200213220215.png
          1.49 MB
        2. onecorner.png
          onecorner.png
          760 kB
        3. Minecraft 10_19_2019 1_03_58 PM.png
          Minecraft 10_19_2019 1_03_58 PM.png
          3.00 MB
        4. Method 5.mp4
          9.37 MB
        5. Method 3.mp4
          9.31 MB
        6. Method 2.mp4
          9.30 MB
        7. Method 1.png
          Method 1.png
          2.55 MB
        8. mcbug.png
          mcbug.png
          1.32 MB

            Doubletoad74 Makzevu
            Votes:
            158 Vote for this issue
            Watchers:
            36 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: