mojira.dev
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.

[media]
  1. 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}
  2. Spawn a husk on top of each of the four diamond blocks and observe how they all become aggressive towards the villager.

  3. Summon a villager on top of each of the four diamond blocks.

  4. Wait around twenty seconds and watch the behavior of the husks closely.

  5. 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.

Linked issues

Attachments

Comments 23

Torabi

Kinda related to MC-590, in that a fix for one may inadvertently fix the other, depending on how it's done.

galaxy_2alex

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been deliviered.

user-f2760

No response for over a year.

md_5

Can't confirm this specific issue, but can confirm MC-2494 which was resolved as a duplicate of this - not convinced they're the same issue though.

Greg Milson

Might be intended because that's how mobs have always behaved, also in 1.9 zombies target players over villagers if the player is in the zombies sight.

13 more comments
Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a. Video attached.

Avoma

Can confirm in 21w11a.

ampolive

Can confirm in 1.17.1.

Avoma

Can confirm in 1.18.1 and 1.18.2 Pre-release 1.

Lars-Erik Svensson

Avoma

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w18c, Snapshot 13w19a, Minecraft 1.6.2, ..., 1.21.2 Pre-Release 3, 1.21.3, 1.21.4, 25w08a, 1.21.5

Retrieved