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

Consuming a Honey Bottle in Creative Mode triggers the "consume_item" advancement criterion twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.2, 22w45a
    • None
    • Unconfirmed
    • (Unassigned)

      Context:

      I know it sounds very specific, but it is something that has been asked several times on the MCC Discord server, and I have personally faced this issue yesterday.

      When you set up a custom advancement with the "consume_item" trigger and consume an item, no matter if it is a food item or a potion, and whatever your game mode is, it will trigger the advancement once. But if you do it specifically with a Honey Bottle in Creative mode, the game will trigger the advancement twice.

       


       

      Suspicion:

      The fact that you are in Creative Mode will give a honey bottle back  to the player instead of an empty bottle you should normally get in other game modes. The process may confuse what the player was holding and is currently holding after the consumption, triggering the advancement twice.

       


       

      How to reproduce:

      1. Create a new world in creative mode and and install the example data pack from the attached files.
      2. Get a honey bottle and consume it.
      • Current result: The reward function will run twice, sending the "I consumed a Honey Bottle!" message twice in the chat.
      • Expected result: The reward function should run only once, sending an unique "I consumed a Honey Bottle!" message in the chat.

       

            Unassigned Unassigned
            PauseKawa KawaMood
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: