Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-206322

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.4, 20w49a, 20w51a, 21w03a, 1.16.5, 21w07a, 21w08b, 21w13a, 21w14a, 21w16a, 21w17a, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19.2, 23w03a, 1.19.4, 23w14a, 1.20.1, 1.20.4
    • None
    • Confirmed
    • Statistics

      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 Avoma can be found in this comment.

        1. MC-206322.png
          689 kB
          [Mod] Avoma
        2. MC-206322.mp4
          5.81 MB
          [Mod] Avoma

            Unassigned Unassigned
            kk64738 Ken
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: