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

Advancements not targeting display name nbt data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13
    • None
    • macOS highSierra 10.13.6 (17G65)

       
    • Unconfirmed

      Using a loot table to enable an entity to drop a custom-named potion successfully creates the so named potion.

                              {
                                  "function": "set_name",
                                  "name": {
                                      "text": "Spectral Potion"
                                  }
                              },
      

      Then, using an advancement to target said named potion fails to recognize the potion's name and so fails to activate the advancement when consumed.

        "criteria": {
          "drinkspectralfxn": {
            "trigger": "minecraft:consume_item",
            "conditions": {
                       "item": {
                            "nbt": "{display:{Name:\"Spectral Potion\"}}" 
                       }
            }
          }
        },
      

       

            Unassigned Unassigned
            Gatinh0 Scott Miller
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: