Indicative Pitch

Indicative Pitch

Mod

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

Client Utility

1,064 downloads
17 followers
Follow Save

Indicative Pitch 1.1.1

Changelog

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

}

Files

indicativepitch-1.1.1.jar(13.99 KiB) Primary Download
indicativepitch-1.1.1-sources.jar(10.89 KiB) Download

Project members

startraveler

Member

Details

Licensed CC-BY-4.0
Published 5 months ago
Updated 5 months ago