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

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.

Kraif

I tried to reproduce this for 1.13 & 18w30b with 5 zombies and 5 villagers, this is what happened:

The 4/5 zombies tried to kill the "trapped" villager, but only one went to the other villagers, but he didn't hurt them. Once the "trapped" villagers were zombies, all of them went to the other normal villagers.

Kraif

Relates to MC-86664.

CubeTheThird

Does this still occur in the current release (1.14.2)?

Arisa Bot

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff in Discord or Reddit.
-- I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit

Iosiv Visokogorskiy

I can confirm that this bug is still happening in 1.16.1
Here is my video report showing that mobs instead of attacking a possible target, try to attack a target that is inaccessible to them:

[media]

Arisa Bot

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff in Discord or Reddit.
-- I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit

Rasmus Stilling Pedersen

Confirmed in 1.16.1

zombies lock on to a target and will not attack other villagers even if there is no path or line of sight to the original target

Rasmus Stilling Pedersen

Uploaded video with test setup 

[media]

ran test for 1 hour and the zombie didn't retarget

Iosiv Visokogorskiy

This still happens in 20w27a

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Arnar Orri Bjarnason

Can confirm  in 1.16.5

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