When the player dies, both the hurt and death sound events play. This causes both the "Player hurts" and "Player dies" subtitles to show up, and sometimes makes it sound like the hurt sound is being played twice upon death.
Caused by the fix of MC-159496
To reproduce
Turn on subtitles, or use a resource pack to change
entity.player.death
to play a different sound.Type /kill
Linked issues
is duplicated by 2
Attachments
Comments 10
Made some changes to the report; the root issue seems to be that both the player hurt and death sound events are played when you are killed (causing subtitles of both to show up). In 20w16a I was still able to reproduce it with fire/drowning damage sounds as well.
A better fix for MC-159496 would be to create three new sound events that are identical to their entity.player.hurt
counterparts:
entity.player.death_drown
entity.player.death_on_fire
entity.player.death_sweet_berry_bush
However, all of these sound events should have the same "Player dies" subtitle. When the player dies, the game should no longer trigger an entity.player.hurt
sound event. Instead, one of the four death sound events including entity.player.death
are triggered depending on the cause of death.
Isn't this the case for all other entities as well?