Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_dRC82LYO.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Item Use Delay Fixer - 墨喵 Minecraft 资源
Item Use Delay Fixer 图标

Item Use Delay Fixer

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1C
本资源为搬运资源,原资源地址: https://modrinth.com/mod/item-use-delay-fixer
资源信息

Minecraft 版本: 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.7.10 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9

平台: forge

标签: game-mechanics technology utility

资源介绍

Item Use Delay Fixer

Fixes a behaviour in the game with the right click (use item) delay timer.

YouTube视频封面

How Minecraft works

Minecraft is simple on that part. If you press the right click button, it sets a variable to 4.

This variable decreases every tick (50ms), and once it reaches 0, if you're still holding right click it'll try to use an item again.

The issue? What if you have no item, no block to be used. Then it still sets the variable to 4 again.

private void rightClickMouse() {
    if (!this.playerController.getIsHittingBlock()) { // if not using left click at the same time
        // set the variable to 4
        this.rightClickDelayTimer = 4; // that's the very first thing done in the right click function!
        // ...
        // rest of the code with the item detection handling
    }
}

What does the mod do?

That behaviour is pretty annoying, because it can make so if you start holding your click too early/at a bad timing, it delays your item use and could make it never happen.

So instead of staying at 4, if no action happened it jumps back to 0, letting the function run the tick just after too, for as long as needed.

explanation schema

This mod is NOT a FastPlace (or "Fast Item", whatever people call it nowadays to bypass the cheating term)

Compatibility/Version

This project should work with every version of the game, on Fabric/NeoForge/Forge/Quilt.

It may break on Forge 1.13-1.16~, unsure.

It should work on every version from 1.7-1.12.2 and 1.20-26.2 (feel free to report to me on my discord server if it doesn't)

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

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
ULTRAKILL SOUNDS

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

查看详情
Hyper Ores

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

查看详情
Rumpnissar

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

查看详情
Geometry Craft

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

查看详情