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

Selector and score text components don't work on hoverEvents

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 14w21b, Minecraft 14w26b, Minecraft 14w29b, Minecraft 14w30a, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w44b, Minecraft 16w06a, Minecraft 1.9 Pre-Release 3, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2, Minecraft 18w16a, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Some tellraw features (like player score and selectors) don't work on hover events.

      How to reproduce

      1. Initialize score and scoreboard:
        /scoreboard objectives add MC-56373 dummy
        /scoreboard players set @s MC-56373 56373
      2. Run this command:
        /tellraw @s [{"text":"Selector Hover","hoverEvent":{"action":"show_text","value":{"selector":"@s"}}},"\n",{"text":"Score Hover","hoverEvent":{"action":"show_text","value":{"score":{"objective":"MC-56373","name":"@s"}}}}]
        

        → The first hover event won't show the selector
        → The second hover event won't show the score

      Code analysis

      Code analysis by [Mod] Marcono1234 can be found in this comment.

        Attachments

        1. 2014-06-05_13.58.33.png
          2014-06-05_13.58.33.png
          240 kB
        2. 2014-06-05_13.59.34.png
          2014-06-05_13.59.34.png
          204 kB
        3. 2014-06-05_14.00.35.png
          2014-06-05_14.00.35.png
          257 kB
        4. 2018-06-30_11.04.34.png
          2018-06-30_11.04.34.png
          187 kB
        5. 2018-06-30_11.04.41.png
          2018-06-30_11.04.41.png
          187 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AlexMCool Alex³
              • Votes:
                31 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: