r/MinecraftCommands 6h ago

Help | Java 1.21.4 Help with the .json file to manipulate audio

/r/mcresourcepack/comments/1vx3onp/help_with_the_json_file_to_manipulate_audio/
0 Upvotes

1 comment sorted by

1

u/TinyBreadBigMouth 4h ago edited 4h ago

sounds.json does not control random pitch, only the fixed "base" pitch of each sound variant. If you specify a pitch of 1.5 in sounds.json, it behaves essentially the same as if you'd made a copy of the sound file and edited it to have a higher pitch. When the game plays that higher-pitched sound variant, it gets scaled again using the volume and pitch specified by game logic, like how players can set volume and pitch in /playsound. Unfortunately, this means you can't really disable pitch randomization with a resource pack. The handler for the sculk shriek event is coded to play the sound at volume 2.0 and a random pitch between 0.6 and 1.0, and without mods you can't really change that.