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

Advancement title and description json ignore targets and selectors

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              CHK: