Mojira Archive
MC-12689

Entities do not forget unreachable or out of of sight targets leading them to not attack closer targets

The Bug:

Entities do not attack the nearest targets.

Steps to Reproduce:

  1. Build the setup as shown in the attachment below. setup.png
  2. Stand on top of the cobblestone slab and summon a villager with NoAI at your location by using the command provided below.
    /summon minecraft:villager ~ ~ ~ {NoAI:1b}
  3. Spawn a husk on top of each of the four diamond blocks and observe how they all become aggressive towards the villager.
  4. Summon a villager on top of each of the four diamond blocks.
  5. Wait around twenty seconds and watch the behavior of the husks closely.
  6. Take note as to whether or not entities attack the nearest targets.

Observed Behavior:

Entities do not attack the nearest targets.

Expected Behavior:

Entities would attack the nearest targets.