indicativepitch-1.1.2.jar
Curse Maven Snippet
What's new
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;
}
}
This mod has no additional files

