The following advancement use to work in 1.12.x
{
"display": {
"icon": {
"item": "minecraft:emerald"
},
"title": "Trading in the end",
"description": "Trading in the end"
},
"parent": "example:challenges/root",
"criteria": {
"trade_in_the_end": {
"trigger": "minecraft:villager_trade",
"conditions": {
"villager": {
"location": {
"dimension": "the_end"
}
}
}
}
}
}
From the wiki:
The villager the item was purchased from. The 'type' tag is redundant since it will always be "villager".
However in the 1.13 snapshots, the type
tag is now required. The above advancement only works if you add the redundant type field:
{
"display": {
"icon": {
"item": "minecraft:emerald"
},
"title": "Trading in the end",
"description": "Trading in the end"
},
"parent": "example:challenges/root",
"criteria": {
"trade_in_the_end": {
"trigger": "minecraft:villager_trade",
"conditions": {
"villager": {
"type": "minecraft:villager",
"location": {
"dimension": "the_end"
}
}
}
}
}
}
This bug seems like it was introduced due to the changes which were made in 1.13 snapshots to the way entities are registered and constructed. It doesn't seem intentional and I haven't seen it documented in the release notes
Linked issues
Comments 3
Looks like this is a duplicate of MC-125744 which was fixed in 1.13-pre2
Confirmed for 18w11a.