"italic":false in custom item names does not make name non-italic
give @s potato{display:{Name:"{\"translate\":\"gui.advancements\",\"italic\":false}"}}
As of 18w03a this still causes the name displayed when selecting it in the hotbar to be displayed italicized.
Linked Issues
is duplicated by5
relates to4
Created Issue:
"italic"=false in custom item names does not make name non-italic
Environment
give @s potato{display:{Name:"
{\"translate\":\"gui.advancements\",\"italic\":false}"}} still makes the given potato have an italicized name.
give @s potato{display:{Name:"
{\"translate\":\"gui.advancements\",\"italic\":false}"}} still makes the given potato have an italicized name.
give @s potato{display:{Name:"
{\"translate\":\"gui.advancements\",\"italic\":false}"}} still makes the given potato have an italicized name.
give @s potato{display:{Name:"
{\"translate\":\"gui.advancements\",\"italic\":false}
"}}still makes the given potato have an italicized name.give @s potato{display:{Name:"{\"translate\":\"gui.advancements\",\"italic\":false}"}}still makes the given potato have an italicized name.
is duplicated by
"italic"=false in custom item names does not make name non-italic"italic":false in custom item names does not make name non-italic
relates to
give @s potato{display:{Name:"{\"translate\":\"gui.advancements\",\"italic\":false}"}}still
makes thegiven potato have anitalicizedname.give @s potato{display:{Name:"{\"translate\":\"gui.advancements\",\"italic\":false}"}}As of 18w03a this still causes the name displayed when selecting it in the hotbar to be displayed italicized.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
It looks like the recent component changes included deprecating LocName; instead, you should specify a translate component. (There is an upgrade path that will automatically do this for old worlds, but it doesn't change commands).
Note that using LocName with something that isn't a translation string is not the intended use.
If your goal is to make the text not italic, please see MC-123790.
Duplicate of MC-123790. Also, don't mark affected versions as Future version 1.13+, as you do not have access to those versions yet.
@Poslovitch
This issue is separate from MC-123790.
The problem in MC-123790 was that item names were given italic formatting in certain places, even when "italic":"false" was in the JSON.
This issue is about item names being given "italic":"true" by default when no "italic" key is specified, which is inconsistent with JSON handling in other places, like the /title command. (Where when "italic" is not present, it is not set to true by default.)
My guess is this is caused by how renaming in anvils gives an italic name; and maybe a custom name in NBT is not properly differentiated from a custom name by an anvil.
Confirmed for 18w01a.
This also is broken with the LocName tag, which did the same thing.
/give @p potato{display:{LocName:"Not Italic Potato"}}LocName was removed entirely
Can also confirm. Bold works fine.
According to the wiki, italic normally defaults to false in translatable text components. However, renamed items default to having italicized names. I would therefore guess that the conflict is somehow causing the value of "italic" to be ignored.
Not fixed in 18w02a
Still italicized when scrolled over in the hotbar in 18w03a
Still affects 18w05a, please update.
Still affects 18w07a, only in text above hotbar.
Still affects 18w09a.
18w10b affected
Affects 18w10d
Confirmed for 18w11a.
Confirmed bug in 18w15a
Even if the name does not appear in italic in the inventory, it still appear in italic when selecting the slot of the item in the hotbar (in 18w19b)
It’s marked as fixed for today’s snapshot.
Can confirm the fix in 20a.