Paper: Item names are italic

Created on 7 Jul 2020  路  4Comments  路  Source: PaperMC/Paper

What behaviour is expected:

Item names that are not italic.

What behaviour is observed:

All item names that are set using ItemMeta#setDisplayNameComponent(BaseComponent[]) are always italic.

Steps/models to reproduce:

Use this code:

meta.setDisplayNameComponent(new ComponentBuilder(player.getName())
        .color(ChatColor.of("#4C4CB3"))
        .create());

The item with ItemMeta meta will have an italic name.

Plugin list:

My plugins are custom, but here is the list, all work with 1.16:

  • MCCubed
  • ProtocolLib
  • spark
  • Tesseract

Paper build number:

This server is running Paper version git-Paper-79 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)

Other information:

This was an issue before, and was supposedly solved, but is happening to me on the latest build as of right now.

Most helpful comment

Solution: explicitly set it to not be italic

All 4 comments

Confirming

When you set lore using ItemMeta#setLore, unless you have a color/style code, it comes out as italic/purple. Why should not including a style code alter the vanilla behavior of item renaming. Items are italicized when renamed in an anvil.

Solution: explicitly set it to not be italic

this is a new change by mojang, you are required to explicitly define you don't want italics now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BillyGalbreath picture BillyGalbreath  路  3Comments

mibby picture mibby  路  3Comments

greenywd picture greenywd  路  3Comments

successed picture successed  路  3Comments

dbkynd picture dbkynd  路  3Comments