File Details
indicativepitch-1.1.2.jar
- R
- Apr 15, 2025
- 14.15 KB
- 116
- 1.21.5+6
- Fabric
File Name
indicativepitch-1.1.2.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
Blocks broken in a single hit no longer have their pitch increased. The pitch when a block breaks is now slightly lower than it was in 1.1.1.
@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, @Local BlockState blockState) {
float returnValue = blockState.getBlock().defaultDestroyTime() == 0 ? original : 1.5f * original;
// System.out.println("Returning " + returnValue);
return returnValue;
}
}

