[GH-ISSUE #1645] [multiplayer] Plugin chest-GUI titles and item names lose all text styling #508

Closed
opened 2026-11-02 15:39:38 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @socksprox on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1645

Filed by an AI agent (Devin), not by the user themselves.

Report

The chest-inventory "GUI" screens servers build with plugins lose all text formatting: titles that Java Edition shows coloured/bold render as plain text, and items inside don't show their coloured names either.

What the code shows

  • ClientboundOpenScreenPacket.title is flattened with text::plain() into menu_title: Option<String> (remote_open_screen in crates/horizon-client/src/game/remote.rs) — JSON color, bold, italic, … are dropped before the screen sees it; draw_chest_screen then draws it as a plain string.
  • minecraft:custom_name on item stacks decodes to a plain String (read_text → name_text(..).plain() in crates/horizon-client/src/item_data.rs), so styled item names in these GUIs render unstyled.
  • HudBatch::text already honours § legacy codes embedded in strings (crates/horizon-client/src/hud.rs), so either threading styled Text through these paths or serialising component styles to § would fix it.
Originally created by @socksprox on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1645 Filed by an AI agent (Devin), not by the user themselves. ## Report The chest-inventory "GUI" screens servers build with plugins lose all text formatting: titles that Java Edition shows coloured/bold render as plain text, and items inside don't show their coloured names either. ## What the code shows - `ClientboundOpenScreenPacket.title` is flattened with `text::plain()` into `menu_title: Option<String>` (`remote_open_screen` in `crates/horizon-client/src/game/remote.rs`) — JSON `color`, `bold`, `italic`, … are dropped before the screen sees it; `draw_chest_screen` then draws it as a plain string. - `minecraft:custom_name` on item stacks decodes to a plain `String` (`read_text` → `name_text(..).plain()` in `crates/horizon-client/src/item_data.rs`), so styled item names in these GUIs render unstyled. - `HudBatch::text` already honours `§` legacy codes embedded in strings (`crates/horizon-client/src/hud.rs`), so either threading styled `Text` through these paths or serialising component styles to `§` would fix it.
bsakaguchi 2026-11-02 15:39:38 +07:00
Author
Owner

@Joansitoh commented on GitHub (Oct 25, 2026):

🤖 Agent: Taking the lore part of this report. Item tooltips were dropping minecraft:lore (colours and the lines under the name). Styled item names stay with #1702 and menu titles with #1741. The change is #1857.

<!-- gh-comment-id:6400626048 --> @Joansitoh commented on GitHub (Oct 25, 2026): 🤖 Agent: Taking the lore part of this report. Item tooltips were dropping `minecraft:lore` (colours and the lines under the name). Styled item names stay with #1702 and menu titles with #1741. The change is #1857.
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged #1741 preserves styled menu titles and #1857 preserves lore. Styled custom item names remain in open PR #1702. Recommend narrowing this issue to that remaining name-styling part and keeping it open; #2039 / #2068 concern the distinct item_name component.

<!-- gh-comment-id:6418448139 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged #1741 preserves styled menu titles and #1857 preserves lore. Styled custom item names remain in open PR #1702. Recommend narrowing this issue to that remaining name-styling part and keeping it open; #2039 / #2068 concern the distinct item_name component.
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 29, 2026):

Also reported on Discord by Vses-SaraiBabushki: Discord thread

What I did:

  • joined a server with menu items
  • hovered over the items in the inventory/menu

What happened: the item name text is italic, with colors too
What I expected: not italic, like in vanilla 26.3 (the server sets italic off)
Horizon version: Nightly 2026-10-29 · 5e391eb
OS, CPU, GPU: Windows 11, Intel 12th gen, RTX 4070

  • 2 screenshots
<!-- gh-comment-id:6504189223 --> @kira-horizon[bot] commented on GitHub (Oct 29, 2026): Also reported on Discord by **Vses-SaraiBabushki**: [Discord thread](https://discord.com/channels/1559227979002028052/1565421925415518359) > What I did: > - joined a server with menu items > - hovered over the items in the inventory/menu > > What happened: the item name text is italic, with colors too > What I expected: not italic, like in vanilla 26.3 (the server sets italic off) > Horizon version: Nightly 2026-10-29 · 5e391eb > OS, CPU, GPU: Windows 11, Intel 12th gen, RTX 4070 > + 2 screenshots - [image.png](https://cdn.discordapp.com/attachments/1565421925415518359/1565421925562458162/image.png?ex=6ae4d847&is=6ae386c7&hm=f85bd7c1ef50904f1bfb7d2f18fdcb681ce9e8b2fa88b610da0bd56260398610&) - [image.png](https://cdn.discordapp.com/attachments/1565421925415518359/1565421925914644520/image.png?ex=6ae4d847&is=6ae386c7&hm=d8f1336cccc6849c46526c51996852f073ddcf91db411530a2485e39bb08c735&) <!-- kira -->
Author
Owner

@kacpherek commented on GitHub (Oct 30, 2026):

This looks fixed on main: Menu titles #1741, lore #1857, custom names #3341 merged. Closing; if it still happens on the latest build, please reopen with your version and logs/latest.log.

<!-- gh-comment-id:6527777585 --> @kacpherek commented on GitHub (Oct 30, 2026): This looks fixed on main: Menu titles #1741, lore #1857, custom names #3341 merged. Closing; if it still happens on the latest build, please reopen with your version and `logs/latest.log`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#508
No description provided.