{
"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...
When testing for pre-existing NBT data, you must specify that data exactly as it's saved. The
CustomNameVisibletag is saved as a byte, so you must declare the value as a byte (by appending it with a "b":CustomNameVisible:1b).