Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-230273

Advancement title and description json ignore targets and selectors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.17
    • None
    • JAVA (build 1.8.0_291-b10)
      macOS 11.4 (20F71)
    • Confirmed
    • (Unassigned)

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

            Unassigned Unassigned
            Gatinh0 Scott Miller
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: