Background
Death messages are now translatable.
The bug
However, the death.attack.magic.player
death message is untranslated.
Causes
This is most likely caused by the translation string not existing in the en_us.json
file itself.
How to reproduce
Either find or spawn a Zombie with this command:
/summon zombie
Get close to the Zombie and then let it deal damage to you. When done, run this command quickly:
/effect give @s instant_damage 1 5 true
→ As expected in the first picture, you will notice that it displays
death.attack.magic.player
instead.
Possible fixes
This can be fixed by using a resource pack which can be downloaded below; or if you want to create your own, just follow the steps for creating one. Your en_us.json
file must be on the assets/minecraft/lang
folder of your resource pack and should have this code:
{
"death.attack.magic.player": "%1$s was killed by magic whilst trying to escape %2$s"
}
As expected in the second picture, it is fixed with the resource pack we have just created. However, this should be fixed for other players by modifying the en_us.json
file on the .jar
itself in order to include the translation string.
Linked issues
is duplicated by
Attachments
Comments
You cannot reproduce this bug if you execute the command before a mob hurts you.
death.attack.magic
will display if you execute the command before a mob hurts you since you are not attempting to escape a mob, whereas death.attack.magic.player
will display if you execute the command after a mob hurts you since having mobs hurt you will also count as an attempt to escape a mob in the game.
Confirmed for 1.13.
Confirmed for 18w30a.
Confirmed for 18w30b.
Confirmed for 18w31a.
Confirmed for 18w32a.
Confirmed for 18w33a.
Confirmed for 1.13.1.
Confirmed for 1.13.2-pre1.
Confirmed for 1.13.2-pre2.

Confirmed for 1.15.2
Uhm... I've been looking at Crowdin and as you said, it's untranslatable. However, I also think that message,
death.attack.magic.player,
shouldn't appear.If you apply
yourself (without any mob nearly), that message won't appear.