Skip to content
SpokenWig620933 edited this page Aug 15, 2026 · 14 revisions

Events are how KubeJS runs everything.

Available Events:

Events:

Modification:

Used to modify KeyBinds!

Available Methods:

Examples:

void

KeyBindExtendedEvents.modification(event => {
    // 
    event.
});

Categories:

Used to modify KeyBind Categories!

Available Methods:

Examples:

void setDisplayIndex(String name, int index);

KeyBindExtendedEvents.categories(event => {
    // Moves the Creative KeyBind Category to the top!
    event.setDisplayIndex('key.categories.creative', 0);
});

void removeCategory(String name);

KeyBindExtendedEvents.categories(event => {
    // Removed the category by removing ALL KeyBinds using it!
    event.removeCategory('key.categories.creative');
});

List<String> getCategoriesInOrder();

KeyBindExtendedEvents.categories(event => {
    // Returns a List<String> of all sorted categories in the order they will be sorted in!
    event.getCategoriesInOrder().forEach(category => {
        console.log('Categories in Order: ' + category);
    });
});

Clone this wiki locally