Mineuniverse
Mods
KubeJS KeyBinds

KubeJS KeyBinds

MOD
KubeJS extension for KeyBinds
by SpokenWig620933
Download Claim this project
164 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
KubeJS Utility & QoL
Advertisement Remove ads with Premium →

KubeJS KeyBinds

Expands upon KubeJS by allowing you to modify existing KeyBinds and Categories

KubeJS already offers custom KeyBinds, so this will not be added by this project.

WIKI


Example client_scripts > keybinds.js

KeyBindExtendedEvents.modification(event => {
    // List all existing KeyBinds
    KeyBind.getKeyMappingNames().forEach(keyMapping => {
        console.log('KeyMapping: ' + keyMapping);
    });

    // List all existing Categories
    KeyBind.getKeyMappingCategories().forEach(category => {
        console.log('Category: ' + category);
    });

    // List all acceptable Keys
    KeyBind.getKeyNames().forEach(key => {
        console.log('Key: ' + key);
    });

    // List all acceptable Key Modifiers
    KeyBind.getKeyModifiers().forEach(modifier => {
        console.log('Modifier: ' + modifier);
    });

    // Remove the KeyBind from the game
    // void remove(string keyName);
    event.remove('key.saveToolbarActivator');
    event.remove('key.loadToolbarActivator');

    // Set the default KeyBind
    // void setDefaultKey(string keyName, string key);
    event.setDefaultKey('key.socialInteractions', 'KEY_UNKNOWN');

    // Set the default KeyBind with a Modifier
    // void setDefaultKeyWithModifier(string keyName, string key, string modifier);
    event.setDefaultKeyWithModifier('key.advancements', 'KEY_L', 'CONTROL');

    // Move the KeyBind to a new category
    // You can combine custom category names with a Language File (e.g. en_us.json > "key.categories.debug": "Debug")
    // void setCategory(string keyName, string category);
    event.setCategory('key.spectatorOutlines', 'key.categories.debug');
});

KeyBindExtendedEvents.categories(event => {
    // List current Category Order
    // By Default the only categories to order are the Vanilla Minecraft Categories
    var categories = event.getCategoriesInOrder();

    for(var i = 0; i < categories.size(); i++) {
        console.log('Index: ' + i + '; Category: ' + categories.get(i));
    }

    // Set our custom Debug category to appear right after the Miscellaneous category
    // void setDisplayIndex(string category, int index);
    event.setDisplayIndex('key.categories.debug', 7);
});

 


Copyright © 2026 [SpokenWig620933]

kubejs_keybinds-1.21.1-neoforge-1.0.3.jar
MC Client, 1.21.1, NeoForge
Release 2026-08-27 Get
kubejs_keybinds-1.21.1-neoforge-1.0.2.jar
MC Client, 1.21.1, NeoForge
Release 2026-08-15 Get
kubejs_keybinds-1.21.1-neoforge-1.0.1.jar
MC Client, 1.21.1, NeoForge
Release 2026-08-14 Get
kubejs_keybinds-1.21.1-neoforge-1.0.0.jar
MC Client, 1.21.1, NeoForge
Release 2026-08-13 Get

More from SpokenWig620933

Advertisement Remove ads with Premium →

You Might Also Like