你是否曾尝试使用键盘/鼠标宏程序来自动化你的日常 Minecraft 任务?我试过。然而,即使设置了宏,我也找不到一种简单、易用且稳定的方法,能够在自动宏运行游戏时离开 Minecraft!于是我做了一个模组。 :)
这是一个简单的模组,允许玩家在后台不受干扰地运行游戏的同时解除对鼠标的锁定,以便在电脑上做其他事情。
你可以在控制设置中设置一个按键绑定来解除锁定。默认是 'U'。
在游戏中按下解除锁定键即可释放鼠标。
再次按下该键可重新锁定鼠标。
它还具有一些可配置的选项:-
1. blockClicksOnRegrab(重新锁定时阻止点击):如果设置为 true,当鼠标未锁定时会尝试阻止点击。
2. clicktoregrab(点击以重新锁定):如果设置为 true,当在游戏内点击鼠标时,鼠标将被重新锁定。
3. regrabOnGUIchange(切换 GUI 时重新锁定):如果设置为 true,每当打开新的 GUI 界面时,鼠标将被重新锁定。
所有选项都可以在游戏中通过 Forge 的配置窗口进行修改,你也可以直接编辑配置文件,它位于 config 目录中。
你可以在你的整合包中使用它。
欢迎使用 :)
要查看源代码,请访问
GitHub 页面
同时推荐查看 Custom DiscordRPC
它支持自定义 Discord Rich Presence
并且你可以使用 JavaScript...!
Have you ever tried to use a keyboard/mouse macro program to automate your daily minecraft chores? I have. However, even after setting up a macro I couldn't find a nice, easy and stable way to get away from minecraft while the automated macros played their game! So I made a mod. :)
This is a simple mod to allow players to ungrab the mouse to do other things on their PCs while the game runs undisturbed.
You can set a keybind to ungrab in the controlls. Default is 'U'.
Press the ungrab key to ungrab the mouse while in-game.
Press it again to regrab.
It also has some configurable options:-
1. blockClicksOnRegrab: If set to true, this tries to block clicks when the mouse is ungrabbed.
2. clicktoregrab: If set to true, the mouse will be regrabbed if it is clicked while in-game.
3. regrabOnGUIchange: If set to true, the mouse will be regrabbed whenever a new GUI is opened.
All Options can be changed in-game from the Forge's config window or you can also change the config file directly which can be found in the config directory.
You can use it in your modpack.
You're welcome :)
To View the source code visit
The GitHub Page
Also checkout Custom DiscordRPC
It allows custom Discord rich text
and you can use JavaScript...!
评论 0
登录后参与评分
还没有评论,来抢沙发吧