Mojira Archive
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

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")

Works As Intended

Brain81505

2023-05-07, 10:58 AM

2023-05-10, 07:26 AM

2023-05-10, 07:26 AM

2

2

Community Consensus

(Unassigned)

/damage, custom-name

1.19.4, 23w18a

-