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

Player death uses incorrect sound event

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.14.4
    • 19w45a
    • Operating System: macOS Mojave 10.14.6
      Java Version: "11.0.2" 2019-01-15 LTS
    • Confirmed
    • Sound
    • Low

    Description

      I attempted to create a resource pack that uses sounds.json to add a custom death sound separate from the hurt sounds, and I noticed that upon death the sound event entity.player.hurt is used instead of the (normally identical) entity.player.death.

      What I expected to happen was...

      Upon dying (e.g. using the /kill command), the custom sound effect from the resource pack is played, and the subtitle "Player dies" appears with subtitles turned on.

      What actually happened was...

      The default hurt sound effect plays instead, and the subtitle reading "Player hurts" appears.

      When sounds.json is modified again to change entity.player.hurt instead, the reverse happens.

      Steps to reproduce

      1. Create a resource pack that modifies sounds.json such that the sound events entity.player.hurt and entity.player.death play different sound effects, and/or turn subtitles on through the sound or accessibility menus.
      2. Play a world or join a server and die by a gradual source like combat or the wither effect.
      3. Notice that the same sound plays and the same subtitle appears upon death as while you were being hurt. The differences between the two sound events can be confirmed using the /playsound command.

      Attachments

        Issue Links

          Activity

            People

              Excited Maria Lemón
              lilDavid David Wilkinson
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: