Mojira Archive
MC-235027

Invisible players cannot provoke piglins, piglin brutes and hoglins when hitting/shooting them

The bug

When attacking a piglin, piglin brute or hoglin when invisible, that mob will not properly retaliate against the player. This is not an issue in 1.16.5 and below.

How to reproduce:

1. Spawn or find any of the listed mobs
2. Have the invisibility effect
3. Attack it

→  None of the mobs retaliate

Note: This has a major effect on bastions, as a player can simply drink an invisibility potion and kill the piglin brutes without them attacking the player. This was not an issue in 1.16.5 and I believe this issue caused MC-229169 and MC-229246.