Mojira Archive
MC-135605

Advancements not targeting display name nbt data

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\"}}" 
                 }
      }
    }
  },

 

Invalid

Scott Miller

2018-08-05, 01:13 AM

2018-08-09, 09:04 PM

2018-08-09, 07:14 AM

1

2

Unconfirmed

Minecraft 1.13

-