Adventure Series: Common Issues
Why is my item lore in italics?
Section titled “Why is my item lore in italics?”The Vanilla Minecraft client always wraps the lore in italics and a purple color. Unless you specifically specify otherwise, this style will also be applied to any child elements (our own set lore).
Visual Preview

ItemType.DIAMOND_SWORD.createItemStack(meta -> { meta.lore(List.of( Component.text("Component without styling") ));});
In order to circumvent this problem, you have explicitly specify that your component should not have any italics. There are two ways to do this:
-
In MiniMessage: You can add a
<!i>
or<!italic>
tag at the start to explicitly disable italics. -
In Code: You can just use
Component#decorationIfAbsent(TextDecoration, State)
:final Component noItalics = someComponent.decorationIfAbsent(TextDecoration.ITALIC, TextDecoration.State.FALSE);
Learn Paper Dev is licensed under CC BY-NC-SA 4.0