List of Events
This is a list of all events. It's possible that not all events are listed here, but this list will be updated regularly.
Click on event ID to open it's class and see information, fields and methods.
Type descriptions:
- Startup: Scripts go in kubejs/startup_scripts folder.
- Server: Scripts go in kubejs/server_scripts folder. Will be reloaded when you run /reload command.
- Server Startup: Same as Server, and the event will be fired at least once when server loads.
- Client: Scripts go in kubejs/client_scripts folder. Currently only reloaded if you have KubeJS UI installed in you run Ctrl+F5 in a menu.
- Client Startup: Same as Client, and the event will be fired at least once when client loads.
Folder | Method | Cancellable |
/startup_scripts/ |
StartupEvents.init (link) |
No |
/startup_scripts/ |
StartupEvents.postInit (link) |
No |
/startup_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
|
No |
/client_scripts/ |
ClientEvents.paintScreen (link) |
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
No |
/server_scripts/ |
|
Yes |
/server_scripts/ |
ServerEvents.customCommand (link) |
Yes |
/server_scripts/ |
ServerEvents.recipes (link) |
No |
/server_scripts/ |
ServerEvents.afterRecipes (link) |
No |
/server_scripts/ |
ServerEvents.specialRecipeSerializers (link) |
No |
/server_scripts/ |
ServerEvents.compostables (link) |
No |
/server_scripts/ |
ServerEvents.recipeTypeRegistry (link) |
No |
/server_scripts/ |
|
No |
/server_scripts/ |
LevelEvents.loaded (link) |
No |
/server_scripts/ |
LevelEvents.unloaded (link) |
No |
/server_scripts/ |
LevelEvents.tick (link) |
No |
/server_scripts/ |
LevelEvents.beforeExplosion (link) |
Yes |
/server_scripts/ |
LevelEvents.afterExplosion (link) |
No |
/server_scripts/ |
WorldgenEvents.add (link) |
No |
/server_scripts/ |
WorldgenEvents.remove (link) |
No |
/server_scripts/ |
NetworkEvents.fromServer (link) |
Yes |
/server_scripts/ |
NetworkEvents.fromClient (link) |
Yes |
/server_scripts/ |
ItemEvents.modification (link) |
No |
/server_scripts/ |
ItemEvents.toolTierRegistry (link) |
No |
/server_scripts/ |
ItemEvents.armorTierRegistry (link) |
No |
/server_scripts/ |
ItemEvents.rightClicked (link) |
No |
/server_scripts/ |
ItemEvents.pickedUp (link) |
No |
/server_scripts/ |
ItemEvents.dropped (link) |
No |
/server_scripts/ |
ItemEvents.entityInteracted (link) |
No |
/server_scripts/ |
ItemEvents.crafted (link) |
No |
/server_scripts/ |
ItemEvents.smelted (link) |
No |
/server_scripts/ |
ItemEvents.foodEaten (link) |
No |
/server_scripts/ |
ItemEvents.rightClickedEmpty (link) |
No |
/server_scripts/ |
ItemEvents.leftClicked (link) |
No |
/server_scripts/ |
ItemEvents.tooltip (link) |
No |
/server_scripts/ |
ItemEvents.modelProperties (link) |
No |
/server_scripts/ |
BlockEvents.modification (link) |
No |
/server_scripts/ |
BlockEvents.rightClicked (link) |
No |
/server_scripts/ |
BlockEvents.leftClicked (link) |
No |
/server_scripts/ |
BlockEvents.placed (link) |
No |
/server_scripts/ |
BlockEvents.broken (link) |
No |
/server_scripts/ |
BlockEvents.detectorChanged (link) |
No |
/server_scripts/ |
BlockEvents.detectorPowered (link) |
No |
/server_scripts/ |
BlockEvents.detectorUnpowered (link) |
No |
/server_scripts/ |
EntityEvents.death (link) |
No |
/server_scripts/ |
EntityEvents.hurt (link) |
No |
/server_scripts/ |
EntityEvents.checkSpawn (link) |
No |
/server_scripts/ |
EntityEvents.spawned (link) |
No |
/server_scripts/ |
PlayerEvents.loggedIn (link) |
No |
/server_scripts/ |
PlayerEvents.loggedOut (link) |
No |
/server_scripts/ |
PlayerEvents.cloned (link) |
No |
/server_scripts/ |
PlayerEvents.tick (link) |
No |
/server_scripts/ |
PlayerEvents.chat (link) |
No |
/server_scripts/ |
PlayerEvents.decorateChat (link) |
No |
/server_scripts/ |
PlayerEvents.advancement (link) |
Yes |
/server_scripts/ |
PlayerEvents.inventoryOpened (link) |
No |
/server_scripts/ |
PlayerEvents.inventoryClosed (link) |
No |
/server_scripts/ |
PlayerEvents.inventoryChanged (link) |
No |
/server_scripts/ |
PlayerEvents.chestOpened (link) |
No |
/server_scripts/ |
PlayerEvents.chestClosed (link) |
No |