mojira.dev
MC-262411

Custom name don't show in death message when using /damage

Note: I have no idea if this issue is duplicated by another issue or not. I tried to search "/damage custom name" but I didn't found any issue that was as same as this issue.

STR (Steps to Reproduce):
Step 1: Create/Go to a superflat world without structures. This to make sure that there're no items (entity) around you.
Step 2: Throw a item with a custom name on the ground, in this case is "Ominous Banner".
Step 3: Run this command:

/execute as @e[type=item] run damage <player-name> 100 mob_attack by @s
/execute as @e[type=item] run damage <player-name> 100 mob_attack by @s

Expect: "<player-name> was slain by <custom-name-of-item>" (in this case is "<player-name> was slain by Ominous Banner")

Reality: "<player-name> was slain by <original-name-of-item>" (in this case is "<player-name> was slain by White Banner")

Attachments

Comments 2

i can confirm this issue

This has nothing to do with /damage, even just a simple /say will reveal that the Name tag is not considered for the entity's display name. I'm not sure if this was reported elsewhere.

Brain81505

(Unassigned)

Community Consensus

(Unassigned)

/damage, custom-name

1.19.4, 23w18a

Retrieved