Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-196662

/tellraw hoverEvent text in chat positioned incorrectly depending on the selector

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.16.1, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3
    • None
    • Unconfirmed
    • (Unassigned)

      The demonstration video where I test the following:

      • hoverEvent &
      • clickEvent

      by using /tellraw on selector:@e

      The positioning of the hoverEvent text on certain entity names was completely off from where it actually should be.

      On players, for the most part, it works as intended with a minor issue or possibly intended from the size of chat (where on the edge of the screen, it doesn't register).

      On entities, however, hoverEvent never works on the first one on the list but clickEvent does. Instead of having the hoverEvent text display right on the name of the entity you're hovering over, it starts from the comma and ends at the entity name and works regardless if you clicked the hovered space between the comma+entity name or the actual entity name.

      As an alternative, have it display the hoverEvent text as well as entity information on the hover text box:
      <hover text>
      <entity name>
      type: <type>
      uuid: <uuid>

            Unassigned Unassigned
            jirauser334703 user-69bf7 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: