mojira.dev
MC-302341

Object text components do not render in dialogs unless there is a normal text glyph on the same line

Steps to Reproduce:

  • Run

    /dialog show @s {type:"minecraft:notice",title:"",body:{type:"minecraft:plain_message",contents:["Line 1\n",[{sprite:"block/grass_block_side"}],"\n",["Line 3",{sprite:"block/grass_block_side"}]]}}

Expected Result:

The dialog body should say

  • “Line 1“;

  • Then, on a new line, a grass block side sprite on its own;

  • Then, on a third line, “Line 3“ followed by another grass block side sprite.

Observed Result:

Only the first and third lines appear. The lone sprite on the second line does not show up at all. This happens no matter how many object text components are on the second line, and adding a whitespace character does not affect the problem, only visible text makes it visible.

Linked issues

Attachments

Comments 0

No comments.

DorkOrc

(Unassigned)

Unconfirmed

(Unassigned)

1.21.9 Release Candidate 1

Retrieved