mojira.dev
MC-249546

Villagers look at invisible villagers

More are less in relation with MC-116969
That seems to be well fixed for separated mobs being not passengers.

But mobs still look at passengers mobs being invisible, even if they are silent and have no AI.

 

How to reproduce ?

----------------------

Best example are villagers since they look at each other very quickly:

/summon minecraft:villager ~ ~ ~ {Passengers:[{id:"minecraft:villager",Silent:1b,NoAI:1b,active_effects:[{duration:-1,amplifier:0b,id:"minecraft:invisibility"}]}]}

Result in the screenshot "bug_report_0": the villager looks at its own invisible passenger.

----------------------

You can also summon another mob having an invisible villager passenger, and another villager next to it. This last villager will look at the invisible villager riding the entity.

/summon minecraft:cow ~ ~ ~ {Passengers:[{id:"minecraft:villager",Silent:1b,NoAI:1b,active_effects:[{duration:-1,amplifier:0b,id:"minecraft:invisibility"}]}]}
/summon minecraft:villager ~-1 ~ ~

Result in the screenshot "bug_report_1": the villager looks at the invisible passenger even if it rides another mob.

Attachments

Comments 5

I can confirm this although the behavior is a little different than as described in this ticket. The problem here is that visible villagers can look at invisible villagers, regardless of whether or not they're passengers. Also affects 22w12a.

Villagers can see through players invisibility, so it's only logical.

Only villagers can do that, so no, it is not logical.

Can confirm in 1.19.

Can confirm in 23w03a

KawaMood

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

villager

1.18.2, 22w12a, 22w15a, 1.19, 1.19.2, ..., 1.19.4 Pre-release 3, 1.19.4, 23w14a, 1.20.1, 1.20.4

Retrieved