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-127442 Drowned stay aggressive after switching to creative mode far away Resolved MC-137523 Pillager attacking the player after turning into creative mod Resolved MC-138290 Pillager shoots at you in creative mode Resolved MC-143329 Pillagers acting weird Resolved MC-143543 Pillagers attacking player in spectator/creative after switching gamemodes from survival Resolved

Attachments

Comments 31

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.

[Mod] violine1101

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

gaspoweredpick

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

21 more comments

Requesting ownership of this issue, as the original poster has not added any affected versions, or updated the issue at all in almost 4 years.

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

can confirm up to 1.20.4

CaptainFlame54

Can confirm in 24w11a

Uncreativity101

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. 

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