mojira.dev
MC-126276

When using /tellraw and selector gets one entity, the hover effect is gone

How to meet the issue:

  1. Go into a world, and make sure the world has entities besides you.

  2. /tellraw @s {"selector":"@s"}, and you see your name. When you hover on or click your name, you see nothing.

  3. Select not only one entity, for example, /tellraw @s {"selector":"@e[limit=2,sort=nearest]". You see your name and another mobs name. Hover on either of the names, you see its type and uuid. When you click the name of the player, you see "/tellraw ..." normally.

Doesn't only affect the hover effect, all components except plain text seems to be affected. See comments for more info.

Linked issues

Comments 5

Doesn't only affect the hover effect, all components except plain text seems to be affected:

summon minecraft:area_effect_cloud ~ ~ ~ {CustomName: "{\"bold\": true, \"color\": \"blue\", \"text\": \"hi\"}", Tags: ["temp"]}
tellraw @s ["", {"selector":"@e[tag=temp]"}]
say @e[tag=temp]

-> the tellraw command show plain white text

-> the say command has the right formatting

Seems related to MC-123813

summon minecraft:area_effect_cloud ~ ~ ~ {CustomName: "{\"translate\": \"%s\", \"with\": [{\"bold\": true, \"color\": \"blue\", \"text\": \"hi\"}]}", Tags: ["temp"]}
tellraw @s ["", {"selector":"@e[tag=temp]"}]

eventhough it only finds 1 entity, the formatting works when it's translating text and inserting elements from the "with" list

The summary/description should be changed to include other text components too (not only hoverEvent)

I think it would make more sense if the 'advanced tooltip' hoverevent (and clickevent) don't work when using the selectors in tellraw. There's no way to disable them when using the selector text component. And if you would want to, you can always add it by adding the hover/clickevents manually.

This isn't an issue anymore in 1.13-pre4

SolidBlock

Nathan Adams

Confirmed

Minecraft 18w08b, Minecraft 18w11a

Minecraft 1.13-pre4

Retrieved