An example advancement. The description does not show the intended score.
This fails even if a player name is specified in lieu of a target selector.
{
"__comment": "Made by GatKong",
"parent": "gatkong:gatified/root",
"display": {
"icon": {
"item": "minecraft:bow"
},
"title": {
"text": "Batting 500"
},
"description": [{"text": "Achieve better than 50% hits on the Dragon: "},{"score":{"name":"@s","objective":"gat_dragonprcnt"}},{"text":"%"}],
"frame": "goal",
"show_toast": true,
"announce_to_chat": true,
"hidden": false
},
"criteria": {
"dragonpercent": {
"trigger": "minecraft:impossible"
}
},
"requirements": [
[
"dragonpercent"
]
],
"rewards": {
"function": "gatkong:gatpack/advancements/dragon_percent",
"experience": 100
}
}
Duplicate of MC-131328, WAI.