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

Fish AI is broken: fish freeze (mostly at whole number y-levels) and don't start moving until hit or reloaded

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 20w51a
    • None
    • Unconfirmed
    • (Unassigned)

    Description

      Tropical Fish, Salmon, and Cod (didn't happen with pufferfish in my testing) randomly stop moving after a while, even when right next to the player. They don't move or turn, but their swimming animation continues while they stay in place. Relogging fixes it temporarily, so does unloading and reloading the area. Hitting the fish also makes them start moving again.

      This seems to happen eventually to all fish that are loaded for long enough, the only exception was when fish are trying to crowd into a corner (MC-140755 or MC-148996).

      They specifically end up freezing at whole number y coordinates. Even the mobs trying to move into corners will gather at a specific y value and stay there. Fish in the same school seem to all be at the exact same y level. This isn't universally true, some fish freeze in other places, but it is a noticeable trend. It's easiest to notice with tropical fish, because they're so small. 

       

      To reproduce:

      1. Create a body of water of any size. I used a 8 x 8 x 5 box
      2. Fill it with tropical fish (you want at least a couple schools, I did about 100 fish)
      3. Wait. Some fish stop moving within a couple minutes. Within 6 or 7 minutes, most tropical fish will either be crowding into a corner or have stopped moving entirely. The larger fish seem to take longer, at least when densely packed together.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              SeanWasTaken Sean
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: