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

An inventory_changed advancement clearing a mouse held item in creative creates a ghost item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.1
    • None
    • Unconfirmed
    • (Unassigned)

      Steps to reproduce:
      1. run the game on a server or in singleplayer (tested both)
      2. Set up the following advancement:

      inv_change.json

       
      {
          "criteria": {
            "change": {
              "trigger": "minecraft:inventory_changed"
            }
         },
          "rewards": {
            "function": "test:clear_item"
          }
        }

       which runs:

      clear_item.mcfunction

      clear @s lime_terracotta
      give @s lime_terracotta
      advancement revoke @s only test:inv_change

      3. in creative, take the lime terracotta with your mouse.
      as clear works in adventure/survival, the item is cleared from your mouse,
      however, you keep a ghost clone of the item, which can't be used placed etc.

            Unassigned Unassigned
            pauloalbert paulo khayat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: