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

The pitches of specific sounds can vary from their definitions in sounds.json

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 21w03a
    • None
    • Confirmed
    • (Unassigned)

      sounds.json allows the pitches of certain sounds to be defined, and is used by vanilla in several cases. However, in several cases, the pitch actually played in-game can actually vary from what is represented in sounds.json itself, usually due to hardcoded cases which cannot be modified through sounds.json.

      To reproduce:

      1. (optional) Check the sounds.json in the resource pack to see what is defined, what pitch to expect, and possibly recreate it with playsound
      2. Apply the provided testing resource pack
      3. Create a setup like what is shown
      4. Spawn a fox inside to cause the sound event entity.fox.hurt to play
      5. Note how the pitch of the sound actually varies in this case, despite it being defined as a constant within sounds.json
      6. (optional) Spawn a baby fox and note how in addition to varying in pitch, it is also consistently higher pitched, despite this also not being defined

      The suggested fix to this would be to remove these hardcoded pitch variations, and instead implement a pitch range feature into sounds.json's definition itself to allow for this to be removed via resource packs when undesirable, as well as to allow for other customization options for resource packs.

        1. 2021-01-23_23.07.55.png
          266 kB
          Connor Steppie
        2. 2021-01-23_23.08.47.png
          217 kB
          Connor Steppie

            Unassigned Unassigned
            muzikbike Connor Steppie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: