
Indicative Pitch
Increases the pitch of the block breaking sound as the block is closer to being broken.
2.1K
18
Indicative Pitch 1.1.1
release15 апреля 2025 г.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;
}
}
Indicative Pitch 1.1.0
release14 апреля 2025 г.Edit: WARNING! THIS WILL CRASH ON 1.21.2+! Use version 1.1.1 instead for those versions.
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;
}
}
Indicative Pitch 1.0.0
release12 апреля 2025 г.Нет описания изменений
Совместимость
Создатели
Детали
Лицензия:CC-BY-4.0
Опубликован:1 год назад
Обновлён:1 год назад
