indicativepitch-1.1.0.jar
Curse Maven Snippet
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;
}
}
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

