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

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.17
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      JAVA (build 1.8.0_291-b10)
      macOS 11.4 (20F71)
    • Confirmation Status:
      Confirmed
    • Category:
      (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

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

              Dates

              Created:
              Updated:
              CHK: