Summary:
Discovered while testing MC-127321 and MC-271533. MC-271533 causes the channeling enchantment to only work when the owner of the trident has an item with the channeling enchantment in their mainhand, which allows drowneds to use the channeling enchantment as well. However if you get struck by a lightning from a channeling trident, you don't hear the minecraft:item.trident.thunder sound unlike when other entities are struck by it. This was not an issue in 1.20.6. Relates to MC-256890.
Steps to reproduce with drowned (may not work anymore after MC-271533 is fixed)
/summon drowned ~ ~ ~ {HandItems:[{id:"minecraft:trident",count:1,components:{"minecraft:enchantments":{levels:{"minecraft:channeling":1}}}},{}]}/weather thunderGo into survival mode.
Wait for the drowned to throw the channeling trident at you.
Steps to reproduce without drowned:
Obtain 2 channeling tridents
Go into survial mode
Throw one channeling trident upwards
Switch to the other channeling trident to make the enchantment work
Make sure that the trident hits you by moving accordingly
Observed results:
You don't hear the minecraft:item.trident.thunder sound.
Expected results:
You should hear the minecraft:item.trident.thunder sound.
Can confirm.