use a command like /give @s minecraft:copper_sword[minecraft:blocks_attacks={damage_reductions:[{base:0,factor:0.5,horizontal_blocking_angle:90}]}] the key part being that it does not fully block damage.
hold right click while having a mob attack you
no player hurt sound will be made even though you have taken damage
while it is possible to set the block attack sound to player hurt, this makes it impossible to make it play the player hurt sound and a custom block sound at the same time.
Steps to reproduce:
use a command like /give @s minecraft:copper_sword[minecraft:blocks_attacks={damage_reductions:[{base:0,factor:0.5,horizontal_blocking_angle:90}]}] the key part being that it does not fully block damage.
hold right click while having a mob attack you
no player hurt sound will be made even though you have taken damage
while it is possible to set the block attack sound to player hurt, this makes it impossible to make it play the player hurt sound and a custom block sound at the same time.