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

team displayName/prefix/suffix only accept specific json components

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.17.1
    • None
    • jdk-16.0.1 Windows 10 latest
    • Unconfirmed
    • (Unassigned)

      The following json components work correctly (the same as tellraw/title)

      /team modify Name prefix {"text":"text"}
      /team modify Name prefix {"translate":"translation key"}
      /team modify Name prefix {"keybind":"keybind"}

      Scoreboard json doesn't output anything

      /team modify Name prefix {"score":{"objective":"scoreboard name","name":"player/entity"}}
      

      NBT json doesn't output anything

      /team modify Name prefix {"nbt":"NBT Path","entity/block/storage":"entity/block/storage name/pos"}
      

      Selector json outputs texts instead of a player/entity

      /team modify Name prefix {"selector":"selector"}
      

      Examples:

      Scoreboard json component:

      {"score":{"objective":"test","name":"@s"}}

      Selector json component:

      {"selector":"@s"}
      

      NBT json component:

      {"nbt":"SelectedItem","entity":"@s"}
      

      MC-158726 does mention some of this but only NBT json not functioning

        1. image-2023-01-13-12-12-17-755.png
          image-2023-01-13-12-12-17-755.png
          277 kB
        2. image-2023-01-13-12-13-10-759.png
          image-2023-01-13-12-13-10-759.png
          201 kB
        3. image-2023-01-13-12-13-48-780.png
          image-2023-01-13-12-13-48-780.png
          292 kB
        4. image-2023-01-13-12-16-24-229.png
          image-2023-01-13-12-16-24-229.png
          172 kB
        5. image-2023-01-13-12-17-34-961.png
          image-2023-01-13-12-17-34-961.png
          235 kB
        6. nbt.png
          nbt.png
          35 kB
        7. scoreboard-1.png
          scoreboard-1.png
          37 kB
        8. selector.png
          selector.png
          29 kB

            Unassigned Unassigned
            YeetManLord max widmiaer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: