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

Item text formatting for name/lore is not upgraded correctly from 1.20.2 if quotes are used on true/false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.4, 24w14a, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w18a, 24w19b, 24w20a, 24w21b, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21 Pre-Release 3, 1.21 Pre-Release 4, 1.21 Release Candidate 1, 1.21
    • None
    • Confirmed
    • Datafixer

      If an item has a name or lore with a formatting option such as bold or italics set to true/false with quotes, it isn't properly upgraded from 1.20.2 to newer versions.

      Upgrading from 1.20.2 to any version from 23w40a through 24w07a retains the name/lore with formatting but it no longer renders.
      Upgrading from 1.20.2 to any version from 24w09a through 1.20.6 strips any name/lore with quotes present on a true/false value.
      Upgrading from 1.20.2 to 24w18a+ strips any formatting with quotes present on true/false, but retains the name/lore.

      While the use of quotes here is technically incorrect, this is something that the DFU should probably catch and fix to avoid damaging custom items on maps and servers.

      "italic":"false" does not upgrade correctly, while "italic":false does upgrade correctly.

      Steps to reproduce:
      On 1.20.2, run the following commands:
          /give @s cookie{display:{Name:'

      {"text":"Item with quotes on true/false","color":"yellow","italic":"false"}

      '}}
          /give @s cookie{display:{Name:'

      {"text":"Item without quotes on true/false","color":"yellow","italic":false}

      '}}

      You should have 2 items that both have correctly rendering names:

      If upgraded from 1.20.2 to 1.20.3/4, or any version from 23w40a to 24w07a, the name of item with the quotes around true/false no longer renders, while the item without quotes renders correctly:

      If upgraded from 1.20.2 to 1.20.5/6, or any 1.20.5 snapshot starting with 24w09a, the name of the item with the quotes is permanently lost, while the item without quotes upgrades correctly:


      If upgraded from 1.20.2 to 1.21, or any version 24w18a+, the name of the item with the quotes is retained, but it is now italicized when it shouldn't be, while the item without quotes upgrades correctly:

        1. 2024-04-06_22.46.17.png
          172 kB
          OrangeCat_
        2. 2024-04-06_22.41.30.png
          200 kB
          OrangeCat_
        3. 2024-04-06_22.48.52.png
          172 kB
          OrangeCat_
        4. 2024-04-06_22.41.28.png
          202 kB
          OrangeCat_
        5. 2024-04-06_22.48.54.png
          172 kB
          OrangeCat_
        6. 2024-04-06_22.46.14.png
          174 kB
          OrangeCat_
        7. 2024-05-03_22.21.45.png
          211 kB
          OrangeCat_
        8. 2024-05-03_22.21.46.png
          205 kB
          OrangeCat_
        9. image-2024-05-15-20-48-33-415.png
          5 kB
          OrangeCat_
        10. image-2024-05-15-20-49-23-199.png
          7 kB
          OrangeCat_
        11. image-2024-05-15-20-51-02-875.png
          3 kB
          OrangeCat_
        12. image-2024-05-15-20-52-06-691.png
          5 kB
          OrangeCat_
        13. image-2024-05-15-20-52-31-525.png
          6 kB
          OrangeCat_
        14. image-2024-05-15-20-54-19-841.png
          8 kB
          OrangeCat_
        15. image-2024-05-15-21-00-40-524.png
          6 kB
          OrangeCat_
        16. image-2024-05-15-21-01-11-546.png
          6 kB
          OrangeCat_

            Unassigned Unassigned
            Creeperlover2001 OrangeCat_
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: