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
- 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.
- Play a world or join a server and die by a gradual source like combat or the wither effect.
- 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.