mojira.dev
MC-133088

Missing translation string death.attack.magic.player

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

  1. Either find or spawn a Zombie with this command:

    /summon zombie
  2. 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

Attachments

Comments

Pau Olivares

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

/effect give @s instant_damage 1 5 true

yourself (without any mob nearly), that message won't appear.

user-a4a49

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.

Kraif

Confirmed for 1.13.

Kraif

Confirmed for 18w30a.

Kraif

Confirmed for 18w30b.

Kraif

Confirmed for 18w31a.

Kraif

Confirmed for 18w32a.

Kraif

Confirmed for 18w33a.

Kraif

Confirmed for 1.13.1.

Kraif

Confirmed for 1.13.2-pre1.

Kraif

Confirmed for 1.13.2-pre2.

Nixinova

Confirmed for 1.15.2

user-a4a49

slicedlime

Confirmed

(Unassigned)

death.attack.magic.player, en_us.json, translation-string

Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre10, Minecraft 1.13, ..., Minecraft 1.14.3 Pre-Release 2, 1.14.4, 19w42a, 1.15.1, 1.15.2 Pre-release 2

20w07a

Retrieved