Goat Horn can be blown underwater
Low priority issue, but the Goat Horn can be blown under water. I was able to sound a Seek Goat Horn while swimming, while playing on Minecraft 1.19 Realms.
Code Analysis done by [Mod] Avoma seen here
Created Issue:
Goat Horn Can be Blown under Water
Low priority issue, but the Goat Horn can be blown under water. I was able to sound a Seek Goat Horn while swimming, while playing on Minecraft 1.19 Realms.
Added Attachments:
Removed Attachments:
Changed Description:
Low priority issue, but the Goat Horn can be blown under water. I was able to sound a Seek Goat Horn while swimming, while playing on Minecraft 1.19 Realms.
Code Analysis done by [Mod] Avoma seen here
Added Affects Versions: 1.19.2
Changed Summary:
Goat HornCan beBlown underWaterGoat Horn can be blown underwater

It's intentional, you can use goat horns everywhere in Minecraft
Source from Mojang saying so? Current behavior isn't a source.
Can confirm in 1.19.1. MC-254285.png
I can also confirm this behavior in 1.19.2. Here's a code analysis regarding this issue.
Code Analysis:
The following is based on a decompiled version of Minecraft 1.19.2 using Mojang mappings.
If we look at the above class, we can see that there is only one check carried out before goat horns can be used, (the INSTRUMENT_PLAY sound event can be played). This check is to simply see if the item that the player is holding is a goat horn and whether or not it's currently on cooldown. If not the player is holding a goat horn that is not on cooldown, the goat horn will be used and the INSTRUMENT_PLAY sound event will be played. No checks are carried out to see if the player is underwater when using this item, thus allowing it to be played here.