Skip to content

Colored item name inside shulker box is not displayed properly on clients 1.12.2 and below #587

@D4rthS1d10u5

Description

@D4rthS1d10u5

'/viaversion dump' Output

https://dump.viaversion.com/abd0389fdcc75e8e21489c9e19848c503f78b9957a867814cd4a1993cd8863b5

Console Error

There are no errors displayed in the console.

Bug Description

Upon hovering on shulker box that contains item with name colored using legacy-formatted text it is displayed as JSON value. Similar behavior is described in the issue #575.

изображение

Steps to Reproduce

  1. Log in with 1.12.2 client.
  2. Take an empty shulker box.
  3. Obtain item with colored name.
  4. Put the item inside a shulker box.
  5. Break the shulker box and hover the cursor over it.

Expected Behavior

Item display name shoud be seen with colors and formatting like this:

изображение


I found that when an item is displayed inside a container, such as a player's inventory, its name is colored as expected.

изображение

Such effect is achieved by using tags that contain original text data: VB|Protocol1_12_2To1_13|2|Name for item display name and VB|Protocol1_13_2To1_14|oLore for lore respectively. And then plugin attaches legacy-formatted text inside Name and Lore tags.

Maybe it is possible to implement the same mechanism for display names inside shulker boxes?

Additional Server Info

No response

Checklist

  • Via plugins are only running on EITHER the backend servers (e.g. Paper) OR the proxy (e.g. BungeeCord), not on both.
  • I have included a ViaVersion dump.
  • If applicable, I have included a paste (not a screenshot) of the error.
  • I have tried a build from https://ci.viaversion.com/ and the issue still persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    legacy1.9-1.12 Bug, low priority/unsupported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions