mojira.dev
MC-183335

Piglins/hoglins/zoglins try to attack invulnerable mobs

The bug

Piglins, hoglins and zoglins will attempt to attack invulnerable mobs after the invulnerable mobs themselves attack them. But they do not attack, they'll just swarm the invulnerable mobs. No other mob does this.

How to reproduce

  1. Use this command:

    /summon minecraft:snow_golem ~ ~ ~ {Invulnerable:1b}
  2. Spawn a piglin/hoglin/zoglin
    → ❌ They'll make their angry ambient sounds and runs towards the invulnerable snow golem not knowing that the golem is invulnerable.

Linked issues

Attachments

Comments 6

Finnegan O'Donnell

This isn't exactly a bug, it still sees the mob as an enemy, and it still has AI

That's not true. All the other mobs don't even attack invulnerable mobs because they're invulnerable, so why do you think that this isn't a bug?

Mateus Pereira Milbradt

They become angered and pathfind to the invulnerable target but didn't attack, why this will not be fixed?

Mateus Pereira Milbradt

Oh, wait, they are not attacking anymore the iron golems

 

Mateus Pereira Milbradt

But if the mob attack them, they will be angered

Unable to reproduce in 1.17.1, looks like this might have been patched?

DrownedZombie

(Unassigned)

Community Consensus

(Unassigned)

20w19a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5

Retrieved