mojira.dev
MC-233607

Hostile mobs do not lose track of players that become invisible

Despite preventing hostile monsters from targeting players in the first place, the invisibility effect does not cause monsters to stop attacking the player, even from great distances, unless the player exits the mob's detection range altogether. For monsters with extremely high detection ranges, like zombies, this can produce the somewhat incredulous behavior of a mob accurately pinpointing the location of a creature it can't even see from half a mile away. For "horde" monsters like zombified piglins, this can lead to dozens of monsters swarming a creature that only one of them should even be aware of, with incredible precision, from literally any distance. To say nothing of mobs that use bows or crossbows.

 

Likely the cause of MC-161468. May also relate to MC-146524.

Linked issues

Attachments

Comments 7

Relates to MC-248550, which was resolved as Working As Intended.

After watching your video, you need to use the invisibility buff before hostile creatures notice you, and the effect duration of splash-type potions will be longer if sprayed into the sky.

其实,对玩家敌对的中立生物也有类似的行为

In fact, neutral creatures that are hostile to players also exhibit similar behaviors.

其实,对玩家敌对的中立生物也有类似的行为

KirbAvion

(Unassigned)

Confirmed

Mob behaviour

1.17.1, 1.19.4

Retrieved