mojira.dev
MC-230273

Advancement title and description json ignore targets and selectors

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
    }
}

Linked issues

Comments 1

Gatinh0

(Unassigned)

Confirmed

(Unassigned)

1.17

Retrieved