All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Modern KeyBinding

Modern KeyBinding

by TachibanaSherry • Downloads: 37 • Followers: 0
Description
Gallery
Changelog
Versions

Modern KeyBinding

The mod ported the newer version's KeyModifier && KeyConflictContext back to Fabric & Early Forge.

Features

You can now define a keybinding's activation key with key modifiers. Like "Ctrl + G" or "Alt + S";

The keybindings with the same activation key but different key conflict contexts no longer conflict.

"Non-conflict keys" (disabled by default): The keybindings with the same key will all be activated if the key is pressed.

Attention:

The mod will crash with NEI. Use NEI Unofficial(Dependencies: CodeChickenCore | CodeChickenLib) by GTNH instead.

Import as a Gradle dependency

repositories {
    //...
    maven {
        url "https://maven.nova-committee.cn/releases"
    }
}
dependencies {
    //...
    // Forge
    implementation "committee.nova.mkb.forge:mkb-${mc_version}:${mod_version}"
    // Fabric
    modImplementation "committee.nova.mkb.fabric:mkb-${mc_version}:${mod_version}"
}

Register a keybinding

Register a keybinding that:

  • Activates when Alt and C are pressed;

  • Only available in GUI.

ClientProxy.java

public class ClientProxy {
    public void init(final FMLInitializationEvent event) {
        //...
        yourKeyBinding = KeyBindingRegistry.INSTANCE.registerKeyBinding("key.exampleKey", KeyConflictContext.GUI, KeyModifier.ALT, Keyboard.KEY_C, "key.categories.example");
    }
}

Change the properties of an existing keybinding

ClientProxy.java

public class ClientProxy {
    //...
    public void postInit(final FMLPostInitializationEvent event) {
        final IKeyBinding extended = (IKeyBinding) yourKeyBinding;
        // Change the key's keyCode and modifier, as their default values.
        extended.setInitialKeyModifierAndCode(KeyModifier.ALT, Keyboard.KEY_E);
        // Change the key's keyCode and modifier.
        extended.setKeyModifierAndCode(KeyModifier.ALT, Keyboard.KEY_E);
        // Change the key's conflict context.
        extended.setKeyConflictContext(KeyConflictContext.IN_GAME);
    }
}

How to Install Modern KeyBinding (Mod)

Modern KeyBinding by TachibanaSherry is verified for Fabric, Forge across Minecraft versions 1.16.5, 1.18.2, 1.19.2, 1.19.4, 1.20, 1.20.1, 1.20.4, 1.7.10 (latest release: 1.20.4-1.3.0, file size: 52 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.16.5, 1.18.2, 1.19.2, 1.19.4, 1.20, 1.20.1, 1.20.4, 1.7.10) and platform (Fabric, Forge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge.
  3. Move the downloaded Modern KeyBinding file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.4
Fabric
2mo ago 20
1.20.x
Fabric
2mo ago 10
1.20
Fabric
2mo ago 7
1.19.4
Fabric
2mo ago 5
1.19.2
Fabric
2mo ago 4
1.18.2
Fabric
2mo ago 3
1.16.5
Fabric
2mo ago 3
1.19.4
Fabric
2mo ago 3
1.19.2
Fabric
2mo ago 2
1.18.2
Fabric
2mo ago 2
1.16.5
Fabric
2mo ago 2
1.8.9
Fabric
2mo ago 2
1.7.10
Fabric
2mo ago 2
1.8.9
Forge
2mo ago 1
1.7.10
Forge
2mo ago 1
[1.20.X-1.2.0] Fabric-1.20.X-1.2.0 by TachibanaSherry on Oct 14, 2026
Download
Support Controlling-Fabric-1.20.1-12.0.2+
[Forge-1.8.9-2.1.0] Forge-1.8.9-2.1.0 by TachibanaSherry on Oct 14, 2026
Download
Add the "non-conflict keys" feature.
[Forge-1.7.10-2.1.0] Forge-1.7.10-2.1.0 by TachibanaSherry on Oct 14, 2026
Download
Add the "non-conflict keys" feature.
Modern KeyBinding Icon
Download Modern KeyBinding
Select game version
Select platform