KeyBindJS

Quick rating

Community listing page, reviews here may not be monitored by the author.

KeyBindJS

By yiran1457Owner

No reviews yet

A Kubejs Addition

Mod Loaders
Minecraft

About

Description

If you are making a modpack, I recommend using the "Smart Key Prompts" mod.
You can find more usage examples in the wiki

Below is an example of changing the default accessory menu key to ALT+X (moved under vanilla's Misc category) and removing the jump key binding:

KeyBindEvents.modify(event => {
    event.modifyKey('key.curios.open.desc', GLFM.GLFM_KEY_X)
    event.modifyModifier('key.curios.open.desc', KeyModifier.ALT)
    event.modifyCategory('key.curios.open.desc', 'key.categories.misc')

    event.remove('key.jump')
})

A mod that allows modpack creators to use KubeJS to register, modify, and remove key bindings.

Below is an example of changing the default accessory menu key to ALT+X (moved under vanilla's Misc category) and removing the jump key binding:

KeyBindEvents.modify(event => {
    event.modifyKey('key.curios.open.desc', GLFM.GLFM_KEY_X)
    event.modifyModifier('key.curios.open.desc', KeyModifier.ALT)
    event.modifyCategory('key.curios.open.desc', 'key.categories.misc')
    
    event.remove('key.jump')
})

Note: Do NOT install this mod on servers.