promotional bannermobile promotional banner

Indicative Pitch

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

File Details

indicativepitch-1.1.1.jar

  • R
  • Apr 15, 2025
  • 13.99 KB
  • 25
  • 1.21.5+6
  • Fabric

File Name

indicativepitch-1.1.1.jar

Supported Versions

  • 1.21.6-snapshot
  • 1.21.5-Snapshot
  • 1.21.4-Snapshot
  • 1.21.5
  • 1.21.4
  • 1.21.3
  • 1.21.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:indicative-pitch-1241375:6424725"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

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

}