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

/clear does not properly affect the item on the mouse pointer after crafting it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w49a, 20w51a, 21w03a
    • Fix Version/s: 21w10a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Data Packs
    • Mojang Priority:
      Normal

      Description

      If you attempt to clear an item directly after crafting it, it will become a ghost item that drops upon closing the GUI.

       

      To recreate the bug

       

      Add a recipe

      Add an advancement to detect when the recipe is unlocked. Give that advancement a rewarding function that clears the crafted item.

       

      Close the GUI.

       

      Sample datapack provided in attachments ( Recipe is 1 dirt )

        Attachments

        1. demo.zip
          2 kB
        2. KwH7n46te8.mp4
          567 kB

          Activity

            People

            Assignee:
            boq [Mojang] Bartosz Bok
            Reporter:
            thenuclearnexus The Nuclear Nexus
            Votes:
            18 Vote for this issue
            Watchers:
            13 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: