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

A function with a clear command used by advancements creates ghost items.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.13, Minecraft 18w30b
    • None
    • Windows 10, Java Version 8 Update 171 (Build 1.8.0_171-b11)
    • Unconfirmed

      I wanted to make a datapack that replaces an item with another one when getting an advancement. So I made an advancedment that runs a function as a reward wich clears a specific item, then gives the player an other item and then removes the advancement from the player .The function itself runs perfectly if executed by the player but if executed by the advancement the function creates a ghost item. The ghost item gets detected by the advancement. If you move the ghost item around in your inventory you get the advancement over and over again (because the function removes the advancement again). The ghost item only disappears if you open a chest, furnace etc.. I made an example datapack wich converts stone into diamond blocks. Just grab a stone out of the creative inventory and you will see the problem.

            Unassigned Unassigned
            EPworld Elijas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: