Multibinder
这个客户端模组允许你为每个原版按键绑定最多绑定三个键,并且它直接集成在原版的按键绑定菜单中,因此无需学习新的界面。
使用方法
一切操作都与原版的重新绑定完全相同(仅有一个小改动):
- 打开按键绑定菜单
- 点击某个按键绑定的按钮
- 紧接着按下最多三个键(键盘或鼠标)
你也可以按 Escape 键来清除按键绑定,就像原版一样。
第一个键成为“主”键,并保存在 Minecraft 默认的 options.txt 文件中,其他键则保存在 .minecraft/config/multibinder.json 中。
触发模式
如果你查看过 Multibinder 的 json 文件,可能会注意到一个 mode(模式)标志。这决定了按键绑定的行为方式。
有两个可选值:all(全部)和 any(任意)。
all 表示在触发该按键绑定之前,必须按下所有已绑定的键。这是默认值。
any 表示按下已绑定的任何一个键即可触发该按键绑定。这种模式存在的原因纯粹是因为我当初不小心写错了代码,先实现了这个功能,哈哈。
切换模式标志需要 重启游戏,因为它仅在启动时读取一次。
备注
没什么好说的了。说实话,这个模组做起来有点难。
Multibinder
This clientside mod allows you to bind up to three keys per vanilla keybind, and it's directly attached to vanilla's keybinding menu, so no learning a new ui.
Usage
Everything works exactly the same as vanilla's rebinding (other than one small change):
- Open the keybind menu
- Click a keybinding's button
- Press up to 3 keys right after another (keyboard or mouse)
You can also press Escape to clear the keybinds, just like vanilla.
The first key becomes a "primary" key, and is persisted in Minecraft's default options.txt, and other keys are persisted in .minecraft/config/multibinder.json.
Trigger Modes
If you ever take a look through the Multibinder json file, you might notice a mode flag. This determines the behavior of the keybind.
There are two values, all and any.
all means the bind requires all of the bound keys to be pressed before the keybind is triggered. This is the default value.
any means any of the bound keys can be pressed to trigger the keybind. The only reason this mode exists is because I accidentally wrote bad code and made this first, lol.
Switching the mode flag requires a restart because it's only read once on startup.
Notes
I dunno, nothing really to say. This mod was actually kinda hard to make for some reason.
评论 0
登录后参与评分
还没有评论,来抢沙发吧