mojira.dev
MC-227503

Axolotls attack fish and other animals in the water, despite the fact that the prey have an effect of invisibility.

The problem is that when I summon, for example, a salmon with an invisibility effect and place an axolotl in the same pond, the axolotl starts attacking that salmon. I believe this is a mistake, the axolotl should not see its prey if it has an invisibility effect.

A video with the proof and the F3 menu is provided.

Linked issues

Attachments

Comments 4

It may be becouse they were very close to the fish, making the invisibility useless

Try it but with more space and see if the axolotls see them instantly, or do they need to be closer to the fish to see them

You're right, in a bigger pond they begin attacking salmons only when they're very close to the fish. Thank you for your comment!
P. S. Why can't I see mobs with invisibility effect when I'm standing very close to them, but axolotls can? )

invisibility doesn't actually make you invisible to mobs; it only reduces their detection range: https://minecraft.fandom.com/wiki/Invisibility#Notes

Entities with invisibility are invisible to players (except for particles), but for mobs it just reduces the radius they can see the invisible entity

Mikhail

(Unassigned)

Unconfirmed

(Unassigned)

1.17 Release Candidate 1

Retrieved