mojira.dev
MC-313075

Newline characters appear as "LF" block in hotbar hover text

The bug

Items with newline characters in their names display it correctly in chat and, as of 26.4-snapshot-7, in the tooltip as well:

image-20261104-085309.png

However, the hotbar hover text still displays the “LF” placeholder character instead:

image-20261104-085328.png

How to reproduce

  1. /give @p apple[item_name="multiline\nname"]

  2. Select the item in your hotbar

Expected result

The name should appear on two lines

Observed result

It has a control character displayed in the middle of one line

Notes

There is precedent to close this issue: MC-269003 / MC-280306. However, with the recent change to newlines in item tooltips, it’s possible the intended design has changed.

Linked issues

Attachments

Comments 0

No comments.

tryashtar

(Unassigned)

Unconfirmed

26.3, 26.4 Snapshot 7

Retrieved