keybindjs - Key Binding Management via KubeJS
keybindjs is a specialized mod for modpack developers that provides access to hotkey management through the KubeJS system. With it, you can easily create new key bindings, modify existing ones, or completely remove unnecessary combinations.
Here's a practical usage example: setting the ALT+X combination to open the accessories menu with relocation to the standard "Miscellaneous" category and complete deactivation of the jump key:
KeyBindEvents.modify(event => {
// Redefine key for accessories menu
event.modifyKey('key.curios.open.desc', GLFM.GLFM_KEY_X)
// Add ALT modifier
event.modifyModifier('key.curios.open.desc', KeyModifier.ALT)
// Move to "Miscellaneous" category
event.modifyCategory('key.curios.open.desc', 'key.categories.misc')
// Remove standard jump key
event.remove('key.jump')
})
Important: This mod is intended exclusively for the client side and does not require installation on the server.