Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-133088

Missing translation string death.attack.magic.player

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w07a
    • Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, 1.14.4, 19w42a, 1.15.1, 1.15.2 Pre-release 2
    • Confirmed
    • (Unassigned)

      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.

        1. death.attack.magic.player_1.png
          279 kB
          user-a4a49
        2. death.attack.magic.player_2.png
          452 kB
          user-a4a49
        3. death.attack.magic.player - UTSPRO.png
          110 kB
          Daniel PRO

            slicedlime [Mojang] slicedlime
            jirauser283547 user-a4a49 (Inactive)
            Votes:
            16 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: