promotional bannermobile promotional banner

Indicative Pitch

Increases the pitch of the block breaking sound as the block is closer to being broken.
Back to Files

indicativepitch-1.1.0.jar

File nameindicativepitch-1.1.0.jar
Uploaded
Apr 14, 2025
Downloads
216
Size
14.0 KB
Mod Loaders
Fabric
File ID
6423149
Type
R
Release
Supported game versions
  • 1.21-Snapshot
  • 1.20-Snapshot
  • 1.21.1-Snapshot
  • 1.21.1
  • 1.21
  • 1.20.2-Snapshot
  • 1.20.5-Snapshot
  • 1.20.3-Snapshot
  • 1.20.6
  • 1.20.5
  • 1.20.4
  • 1.20.3
  • 1.20.2
  • 1.20.1
  • 1.20
  • 1.19.4-Snapshot
  • 1.19.3-Snapshot
  • 1.19.4
  • 1.19.3
  • 1.19.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:indicative-pitch-1241375:6423149"

Learn more about Curse Maven

What's new

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;
}

}

This mod has no additional files