mojira.dev
MC-270473

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

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:

[media]
[media]

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:

[media]
[media]

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:

[media]
[media]

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:

[media]
[media]

Attachments

Comments 3

Does MC-270078 describe this issue? I think it's the same thing that causes the issue here, the way you format the command changed to need double quotes so when upgrading the formatting breaks because it wasn't made with double quotes.

That issue might be related to this one, but it isn't the same issue. This one isn't related to the commands used to produce the items, but what happens when those items are upgraded to 1.20.4+

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Creeperlover2001

(Unassigned)

Confirmed

Datafixer

1.20.4, 24w14a, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, ..., 1.21 Pre-Release 2, 1.21 Pre-Release 3, 1.21 Pre-Release 4, 1.21, 1.21 Release Candidate 1

Retrieved