play custom sound after dead

Hi, I’ve managed to add a custom sound and get everything working the way I wanted using command blocks. But now I’d like to move it into a datapack.

What I want is for a custom sound to play every time I die. I got it working perfectly with just two simple commands using command blocks, but I couldn’t get it to work with a datapack.

Continue to help post