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

Group alert AI of some mobs breaks when their target dies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 23w51b
    • None
    • Community Consensus
    • Mob behaviour
    • Low
    • Platform

      As per net.minecraft.entity.monster.Entity'mob'.initEntityAI(), a mob's entityCallsForHelp boolean in the net.minecraft.entity.ai.EntityAIHurtByTarget class is always set to true, which means that it will alert other entities within its followRange as soon as it gets attacked. However, if the player dies, this code will not be initialized. Therefore, mobs cannot alerts their fellow mobs.

      • The following mobs are known to be affected:
        Evokers, Pillagers, Vindicators, Illusioners, Ravagers,
        Zombies, Drowned, Husks, Zombie Villagers
        silverfish, endermite, vex

      video.mp4

            Unassigned Unassigned
            Alex_light Alex_light
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: