Indicative Pitch 图标

Indicative Pitch

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/indicative-pitch
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: utility

资源介绍

Overview

This is a tiny quality of life mod that makes the block breaking sound increase in pitch as the block is closer to being broken. It should work on any version from 1.20.1 to 1.21.5. Please let me know in the comments if you have any problems with it!

Credits

Credit to @⚔SandWhoop⚔ on Discord for the mod idea.

Modpacks

Feel free to add this to modpacks!

Porting

I can port this to NeoForge, Forge, or other versions as desired. Unfortunately, Modrinth doesn't have a comments feature, but you could leave a note in the comments on CurseForge! The mod should have the same name there, so it ought to be easy to find.

That being said, here is the entirety of the functional code of this mod:

@Mixin(MultiPlayerGameMode.class)
public abstract class MultiPlayerGameModeMixin {

    @Accessor("destroyProgress")
    public abstract float getDestroyProgress();

    @ModifyExpressionValue(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/SoundType;getPitch()F"), method = "continueDestroyBlock")
    private float modifyPitch(float original) {
        float returnValue = (this.getDestroyProgress() * 2.5f * original);
        // System.out.println("Returning " + returnValue);
        return returnValue;
    }
}

If I ever stop maintaining this, I'd appreciate it if someone could pick this project up and carry it forward! It's a nice QOL/accessibility feature.

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Sky Lands

价格:0 墨喵币
下载量:0

查看详情
Monsters in the Closet

价格:0 墨喵币
下载量:0

查看详情
Every Block Drop Is Random

价格:0 墨喵币
下载量:0

查看详情
Anime Sky

价格:0 墨喵币
下载量:0

查看详情