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

Drinking honey bottles increases "minecraft.used:minecraft.honey_bottle" by a value of two and runs the "minecraft:consume_item" advancement trigger twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w34a
    • 1.15.2, 20w19a, 20w21a, 20w22a, 1.16 Pre-release 4, 1.16 Pre-release 6, 1.16, 1.16.2, 1.16.3, 20w46a, 20w49a, 21w03a, 1.16.5, 21w08b, 21w15a, 21w16a, 21w17a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 2, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1, 21w38a, 21w40a, 21w44a, 1.18 Pre-release 1, 1.18, 1.18.1, 22w05a, 22w06a, 1.18.2 Pre-release 2, 1.18.2, 22w14a, 22w17a, 1.19, 1.19.2, 22w43a, 22w45a, 1.19.3 Pre-release 2, 1.19.3, 1.19.4 Release Candidate 3, 1.19.4, 1.20, 1.20.1, 1.20.4, 23w51b, 1.21
    • Confirmed
    • Statistics
    • Low
    • Gameplay

      The Bug:

      Drinking honey bottles increases "minecraft.used:minecraft.honey_bottle" by a value of two and runs the "minecraft:consume_item" advancement trigger twice.

      Steps to Reproduce:

      1. Create a scoreboard objective for tracking the use of a honey bottle and set it to display on the sidebar by using the commands provided below.
        /scoreboard objectives add UseHoneyBottle minecraft.used:minecraft.honey_bottle
        /scoreboard objectives setdisplay sidebar UseHoneyBottle
      2. Obtain a honey bottle and drink it.
      3. Take note as to whether or not drinking honey bottles increases "minecraft.used:minecraft.honey_bottle" by a value of two and runs the "minecraft:consume_item" advancement trigger twice.

      Observed Behavior:

      "minecraft.used:minecraft.honey_bottle" increases by a value of two and the "minecraft:consume_item" advancement trigger runs twice.

      Expected Behavior:

      "minecraft.used:minecraft.honey_bottle" would be increased by a value of one and the "minecraft:consume_item" advancement trigger would only be run once.

      Code Analysis:

      Code analysis by haykam can be found in this comment.

        1. MC-182814.mp4
          5.12 MB
          [Mod] Avoma
        2. MC-182814.png
          678 kB
          [Mod] Avoma

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            19 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: