Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-245394

The sounds of raid horns blaring aren't controlled by the correct sound slider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.1, 22w05a, 22w06a, 1.18.2 Pre-release 1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20.1
    • None
    • Confirmed
    • Sound
    • Low
    • Gameplay

      The Bug:

      The sounds of raid horns blaring aren't controlled by the correct sound slider and are instead controlled by the "Friendly Creatures" sound slider. This seems illogical as raid horns aren't associated with friendly creatures of any kind.

      Steps to Reproduce:

      1. Navigate to the "Music & Sounds" settings menu.
      2. Turn the "Friendly Creatures" sound slider to "OFF".
      3. Turn every other sound slider to "100%".
      4. Exit this menu and locate and enter a village while you have the bad omen effect in order to start a raid.
      5. Listen closely as the raid begins.
      6. Take note as to whether or not the sounds of raid horns blaring can be heard, (are controlled by the "Friendly Creatures" sound slider).

      Observed Behavior:

      The sound is controlled by the "Friendly Creatures" sound slider.

      Expected Behavior:

      The sound would be controlled by some other sound slider and not the "Friendly Creatures" sound slider.

      Code Analysis:

      Code analysis by Avoma can be found below.

      The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.

      net.minecraft.world.entity.raid.Raid.java
      ...
      serverplayer.connection.send(new ClientboundSoundPacket(SoundEvents.RAID_HORN, SoundSource.NEUTRAL, d1, serverplayer.getY(), d2, 64.0F, 1.0F));
      ...

      If we look at the above class, we can see that the sounds of raid horns blaring are sourced from SoundSource.NEUTRAL, otherwise known as the "Friendly Creatures" sound slider.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            10 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: