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

Entity CustomName with JSON array duplicates the last entry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 20w17a
    • None
    • Windows 10
    • Unconfirmed
    • (Unassigned)

      Giving a CustomName to an entity in the form of a JSON array with two or more objects causes the last JSON object in the array to be duplicated.

       

      When applying the following JSON

      [{"text":"1","color":"#f73c20"},{"text":"2","color":"#f73c20"}]
      

      To an entity with the following command

      /summon minecraft:armor_stand ~ ~1 ~ {"CustomNameVisible":true,"CustomName":"[{\"text\":\"1\",\"color\":\"#f73c20\"},{\"text\":\"2\",\"color\":\"#20a8f7\"}]"}
      

       

      Produces the following nametag

            Unassigned Unassigned
            MCmacjuul Julian Mills
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: