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

The "minecraft:inventory_changed" advancement trigger do not trigger while swapping items between offhand and any container slots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21
    • None
    • Community Consensus
    • Data Packs

      The Bug:

      When any container GUI is opened, swapping an item stack into/out of the container using the "Swap Item With Off Hand" key (default "F") does not trigger the "minecraft:inventory_changed" advancement trigger.

      Steps to Reproduce:

      1. Install the attached datapack. MC-247037.zip
      2. Place an item in your offhand slot.
      3. Place down a chest or a minecart with chest and open it (advancement triggers when opening the GUI due to behaviors related to MC-273770).
      4. Move the cursor to any slot of the chest and press the "Swap Item With Off Hand" key.
      5. Observe if the advancement triggered or not while pressing the key.

      Observed Behavior:

      The "minecraft:inventory_changed" advancement trigger does not trigger when using the "Swap Item With Off Hand" key to swap item into/out of container.

      Expected Behavior:

      The "minecraft:inventory_changed" advancement trigger would trigger when using the "Swap Item With Off Hand" key to swap item into/out of container.

            Unassigned Unassigned
            endsky Muo-Tian
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: