All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Indicative Pitch

Indicative Pitch

by startraveler • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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!

Credits

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

Modpacks

Feel free to add this to modpacks!

Porting

I can port this to NeoForge, Forge, or other versions as desired. Unfortunately, Modrinth doesn't have a comments feature, but you could leave a note in the comments on CurseForge! The mod should have the same name there, so it ought to be easy to find.

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.

How to Install Indicative Pitch (Mod)

Indicative Pitch by startraveler is verified for Fabric, Forge across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 1.0.0, file size: 626 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Fabric, Forge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge.
  3. Move the downloaded Indicative Pitch file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.1
Forge
6mo ago 1
1.21.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.21.x 1.20.x
Fabric
last yr. 1
[1.1.1] Indicative Pitch 1.1.1 by startraveler on Apr 15, 2025
Download
Fixed a crash in the versions this file applies to. I assumed a file hadn't been changed... it had. This mixin replaces the one to LevelRenderer. 


``
@Mixin(LevelEventHandler.class)
public class LevelEventHandlerMixin {

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

}
``
[1.1.0] Indicative Pitch 1.1.0 by startraveler on Apr 14, 2025
Download
Edit: WARNING! THIS WILL CRASH ON 1.21.2+!
Use version 1.1.1 instead for those versions.

Added another mixin, as shown below, to change the pitch of the sound when the block actually breaks. 

``
@Mixin(LevelRenderer.class)
public class LevelRendererMixin {

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

}
``
Indicative Pitch Icon
Download Indicative Pitch
Select game version
Select platform