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

team prefix/suffix/displayName does not support mob's string data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.14.4, 1.15 Pre-release 6
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Commands

      Description

      If you throw an item with lore, team modify XXX prefix/suffix/displayName doesn't work with commands that works with tellraw.

      For example, you summon an item with command

      /summon item ~2 ~ ~ {Item:{id:"minecraft:stone",Count:1b,tag:{display:{Lore:["{\"text\":\"something\"}"]}}}}
      

      This is a stone with lore "something".

      If you run command

      /tellraw @a [{"nbt":"Item.tag.display.Lore[0]","entity":"@e[type=item,limit=1]","interpret":"true"}]
      

      it will show the first line in item's lore, which is "something".

      However, if you run command

      /team modify XXX prefix [{"nbt":"Item.tag.display.Lore[0]","entity":"@e[type=item,limit=1]","interpret":"true"}]
      

      it will show nothing in front of the team prefix. It also doesn't work with suffix/displayName.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            HerobrineXia Kevin Xia
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: