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

Bees freeze if they cannot execute their current AI task / Bees don't seem to have a wandering AI


    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w45a
    • 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a
    • None
    • Confirmed
    • Mob behaviour
    • Very Important

      The bug

      Bees freeze if they cannot execute their current AI task and cannot pathfind to their current target, such as a player, a flower, or a bee hive/nest. This is probably the case because bees don't have a wandering AI and completely rely on their current target(s) for pathfinding.

      This issue seems to occur in multiple different scenarios:

      • Bee cannot find a flower or pathfind to a flower
      • Angry bee cannot pathfind to its attacker (MC-159676)
      • Bee cannot find a new home hive/nest or cannot pathfind to its home hive/nest, either after having pollinated a flower or after not finding a flower to pollinate

      The last case appears to happen most often. It seems like if a bee has not pollinated a flower for a while (about 3600 ticks, maybe a bit more) and does not have a home hive (which happens often, see MC-159418), this issue occurs.

      The fact that the bee does not have any animation when being stuck in the air is a client-side issue and also occurs in other circumstances. That issue is tracked in MC-159518.

      To reproduce

      There are many ways to reproduce this issue, however the most common way this happens is if a bee is too high up in the sky. That case is easily reproducible using the following steps:

      1. Spawn a bee at the top of the world, way above the ground
      2. Follow the bee for a while, until its TicksSincePollination value is at least 3600
      3. Wait a bit longer
        The bee will stand still

        1. 2019-10-01_05.20.20.png
          1.61 MB
        2. 2019-10-07_20.50.14.png
          376 kB
        3. 2019-10-12 09_29_10-Photos.png
          2019-10-12 09_29_10-Photos.png
          1.54 MB
        4. 2019-10-17_11.16.54.png
          1.43 MB
        5. bee1.png
          379 kB
        6. debug-report-2019-08-23_00.33.55.zip
          61 kB
        7. freezed bee.zip
          126 kB
        8. Minecraft 2019.08.22 -
          2.68 MB
        9. pollinated.png
          266 kB
        10. Screenshot_5.png
          49 kB

            cojomax99 [Mojang] Cory Scheviak
            peter1745 Peter Nilsson
            38 Vote for this issue
            25 Start watching this issue