The bug
Some tellraw
features (like player score and selectors) don't work on hover events
How to reproduce
Initialize score and scoreboard:
/scoreboard objectives add MC-56373 dummy /scoreboard players set @s MC-56373 56373
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 @unknown can be found in this comment.
Linked issues
is cloned by 1
is duplicated by 4
Attachments
Comments 30
Confirmed for 14w26b. As a shorter example:
/tellraw @a {text:"Hover",hoverEvent:{action:show_text,value:{selector:@p}}}
The above should show my name upon hovering over "Hover", but instead shows "@p". And just an example showing "selector" at work, which simply displays my name in chat:
/tellraw @a {selector:@p}
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.
I'm really happy this has been fixed, but I now feel a bit sad. I've been hoping this was going to be fixed for years, as it has prevented a few of my major projects from working,but no longer have the time to spend working on them.
I hope others that had this issue are able to revisit their old designs and finally incorporate values on hover, and maybe I'll try to squeeze in some Minecraft time. 🙂
Partswise confirmed for 14w21b:
1. Command isn't working
2. Command isn't working with "test" (my name isn't test), BUT also not working with SELECTORS where else this is working:
3.Command isn't working like you said, but maybe intended