mojira.dev
MC-120092

Advancements Nbt Bug

{
"display": {
"icon": {
"item": "minecraft:bone"
},
"title": "Orc Slayer",
"description": "Slay An Orc"
},
"parent": "DLAPAD:magic_age/book",
"rewards": {
"function": "DLAP_functions:reward/orc"
},
"criteria": {
"orcmals": {
"trigger": "minecraft:player_killed_entity",
"conditions": {
"entity": {
"type": "zombie",
"nbt": "{CustomName:\"Orc\",CustomNameVisible:1}"

}
}
}
}
}
This is my custom advancement It apears in the tab but it does not work
If kill a zombie with the name Orc I will not ge the advancement...

Comments 2

When testing for pre-existing NBT data, you must specify that data exactly as it's saved. The CustomNameVisible tag is saved as a byte, so you must declare the value as a byte (by appending it with a "b": CustomNameVisible:1b).

Diego morrison-tessier

(Unassigned)

Unconfirmed

Minecraft 1.12.1

Retrieved