mojira.dev
MC-146524

Certain mobs attack while the player is in creative or spectator mode

If you summon a group of some mobs and attack them under certain circumstances, they will continue to attack the player even when they change gamemodes which entities should not be hostile to.

Steps to Reproduce:

(Start test in creative mode)

  1. Apply invisibility effect:

    /effect give @p minecraft:invisibility infinite 255 true
  2. Summon 10 or more of the affected mobs (noted in 'notes' section)

  3. Attack one of the affected mobs (drowned must have tridents)

  4. Enter survival mode, and quickly move onto the next within a second

  5. Change gamemode to creative/spectator

Observed Behavior:

One or possibly more of the pillagers will continue to attack the player, even if you switch to spectator, and then creative again. It will stop attacking after you switch back to survival, and then creative again.

Expected Behavior:

The entities would not attack the player in creative or spectator at all, and would lose aggression as soon as the player enters those gamemodes.

Videos & Screenshots

[media]

made by @unknown

Notes:

The following mobs are known to be affected:

  • 'Illager' mobs (evokers, pillagers, vindicators, and illusioners)

  • Ravagers

  • Witches

  • Wolves

  • Bees when harvesting from their nest / hive

  • Zombie mobs (zombies, drowned, husks, zombie Villagers

  • Hoglins & Zoglins

  • Creaking

Linked issues

MC-296066 Zombified Piglin attacks creative mode players in 1.21.5 Resolved MC-202525 Zombies attack you while in Creative mode. Resolved MC-273404 Pillagers can see and shoot at spectator players Resolved MC-275083 Vexes are trying to attack players in creative or spectator mode Resolved MC-277434 Activated creakings continue running towards players in Creative when leaving Survival mode Resolved

Attachments

Comments 32

For me I was attacked in spectator mode after throwing a chicken egg at one of the pillagers in survival. The rest of the pillagers died by that guy.

This happens for me as well, and being targeted by the pillagers is also when performance starts to drop, so possibly related to MC-157697.

This seems to affect all illagers and zombies; see MC-159867. I added them to this ticket.

Not only can these mobs attack you in creative mode after provoking a group of them, they can also attack you from an infinite distance and through dimensions. This not only allows illagers and zombies to look at you and follow you from an infinite distance and through dimensions, it also allows evokers to send vexes towards you from any point. This glitch is MC-147574, but I think it is the same bug as this one.

It also affects illusioners

22 more comments

As per MC-267476's report, add Vex to the list as well

can confirm up to 1.20.4

Currently playing 1.20.1 and a witch can throw potions at any player in spectator. Confirmed to work on two players on a multiplayer server. 

i have the same issue with zombified piglin
also everyone vote

adnan dakir

[Mod] Jingy

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

creative, illager, spectator, survival, wolf, zoglin, zombie

Minecraft 19w12b, Minecraft 1.14, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4, ..., 24w44a, 1.21.3, 24w45a, 1.21.4, 1.21.5

Retrieved