mojira.dev
MC-206322

minecraft.custom:minecraft.talked_to_villager doesn't add the score when right-clicking a baby villager

The bug

For a baby villager, age < 0,  right clicking does not trigger the stat.talkedToVillager score which limits the ability to create baby villager dialogue mechanisms in adventure maps. 

To reproduce

Add a scoreboard objective as follows:

/scoreboard objectives add VillagerClick minecraft.custom:minecraft.talked_to_villager

Then show the VillagerClick objective in the sidebar:

/scoreboard objectives setdisplay sidebar VillagerClick

Clicking on an adult villager increments the VillagerClick counter but clicking on a baby villager does not.

Code analysis

Code analysis by @unknown can be found in this comment.

Attachments

Comments 19

Could you include steps to reproduce? Trying to add a scoreboard objective with the criteria "stat.talkedToVillager" doesn't seem to work for me.

Thanks Southpaw.  I confess I borrowed the issue heading from another similar issue re: clicking on villagers without offers.  I've updated the title to use the proper objective setting and updated the description with the commands to reproduce.  

Can confirm that this is an issue. Also affects 20w49a.

Can confirm in 20w51a.

Can confirm in 21w03a.

9 more comments

Can confirm in 1.18.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.2.

[media]

Can confirm in 23w03a

Ken

(Unassigned)

Confirmed

Statistics

1.16.4, 20w49a, 20w51a, 21w03a, 1.16.5, ..., 23w03a, 1.19.4, 23w14a, 1.20.1, 1.20.4

Retrieved