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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.14.4, 1.15 Pre-release 6
    • Confirmed
    • Commands

      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.

            Unassigned Unassigned
            HerobrineXia Kevin Xia
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: