-
Notifications
You must be signed in to change notification settings - Fork 0
Events
SpokenWig620933 edited this page Aug 15, 2026
·
14 revisions
Events are how KubeJS runs everything.
- MODIFICATION > KeyBindExtendedEvents.modification
- CATEGORIES > KeyBindExtendedEvents.categories
Used to modify KeyBind Categories!
KeyBindExtendedEvents.categories(event => {
// Moves the Creative KeyBind Category to the top!
event.setDisplayIndex('key.categories.creative', 0);
});
KeyBindExtendedEvents.categories(event => {
// Removed the category by removing ALL KeyBinds using it!
event.removeCategory('key.categories.creative');
});
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);
});
});