mojira.dev
MC-129718

Hover events are removed from an entity's name when showing it in chat

The bug

When you hover over the name of an entity's name in chat with a hoverEvent, the hover event doesn't show. This is (most likely) because of the fix for MC-124024 even though hoverEvents cannot be exploited.

How to reproduce

  1. Summon an entity with a hoverEvent in its name:

    /summon minecraft:armor_stand ~ ~ ~ {CustomName:"{\"text\":\"hover\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"hi\"}}"}

    →The hover event doesn't work

Linked issues

Comments 7

Exactly that is the fix of MC-124024
Edit: That ticket is no longer private.

@unknown the thing is, there's nothing harmful about hover events

I don't understand why MC-124024 suggested that hoverEvents should also be disabled in the first place

Agreed, hover events cannot be exploited, only click events.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Can confirm in 21w03a.

AlexMCool

(Unassigned)

Confirmed

(Unassigned)

Minecraft 18w20b, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w21b, Minecraft 18w22a, ..., 21w03a, 1.18.2, 1.19.3, 23w06a, 1.20.1

Retrieved