promotional bannermobile promotional banner
premium banner
Increases the pitch of the block breaking sound as the block is closer to being broken.

Description

Overview

This is a tiny quality of life mod that makes the block breaking sound increase in pitch as the block is closer to being broken. It should work on any version from 1.20.1 to 1.21.5. Please let me know in the comments if you have any problems with it! 

Since this mod is purely client-sided, you shouldn't put it on the server side. 

 

Modpacks

Feel free to add this to modpacks!

 

Credits

Credit to `@⚔SandWhoop⚔` on Discord for the mod idea.

 

Porting

I can port this to NeoForge, Forge, or other versions as desired; just leave a note in the comments!

That being said, here is the entirety of the functional code of this mod:

@Mixin(MultiPlayerGameMode.class)
public abstract class MultiPlayerGameModeMixin {

@Accessor("destroyProgress")
public abstract float getDestroyProgress();

@ModifyExpressionValue(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/SoundType;getPitch()F"), method = "continueDestroyBlock")
private float modifyPitch(float original) {
float returnValue = (this.getDestroyProgress() * 2.5f * original);
// System.out.println("Returning " + returnValue);
return returnValue;
}
}

If I ever stop maintaining this, I'd appreciate it if someone could pick this project up and carry it forward! It's a nice QOL/accessibility feature. All I ask is that you post a comment here with a link to the new project, so people can find your port.