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

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w17a
    • 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, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4 Pre-Release 7, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 1.15.1, 1.15.2, 20w06a, 20w08a, 20w09a, 20w10a
    • None
    • Confirmed
    • Commands

      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
      1. 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 marcono1234 can be found in this comment.

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

            boq [Mojang] Bartosz Bok
            AlexMCool Alex³
            Votes:
            50 Vote for this issue
            Watchers:
            26 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: