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
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.
Could you include steps to reproduce? Trying to add a scoreboard objective with the criteria "stat.talkedToVillager" doesn't seem to work for me.