I noticed this problem when I made a survival world in 15w41b but I won't be going back to see when this bug first appeared and decided to wait a while to see if anyone would report it and seeing now that 1.9 is getting close to being released and still no one has reported this bug. I decided to make this report to get it fixed before the release. So in 1.8 when you used an invisibility potion, these guardians would not target you. In 1.9 snapshots they do target you which makes working on a guardian farm a lot more difficult.
Linked issues
Attachments
Comments
Different tickets imo.
well, the guardians see you even tho you're invisible, that's why I linked that one
Its not the same issue. Other bug report was about mobs attacking you when you aggro them and is present since forever. which might be WAI to be honest. This reported bug here appeared in 1.9, connected with the feature where certain mob heads worn instead of armour reduce their detection range.
Because of that new feature some code got shuffled to different places and because guardians override nearestAttackableTarget (they also attack squids, not only players) the code that checks for target potion effects etc. got detached from guardian class.
In this case guardians would attack you even if not engaged.
bottom line - the bug that this got attached to is unrelated, got introduced in a different version and arguably the other (parent) bug could be treated as WAI. This is straight up bug.
I would suggest reopening it and fixing it, as it is pretty annoying.
This is definetly not resolved. Both the guarfians and elder guardians still sees me, despite me using invisibility potions. This needs to be fixed.
Duplicate of MC-10901