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. Will be reloaded when you press F3+T.
- 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.compostableRecipes (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 |
/startup_scripts/ |
WorldgenEvents.add (link) |
No |
/startup_scripts/ |
WorldgenEvents.remove (link) |
No |
/client_scripts/ |
NetworkEvents.fromServer (link) |
Yes |
/server_scripts/ |
NetworkEvents.fromClient (link) |
Yes |
/startup_scripts/ |
ItemEvents.modification (link) |
No |
/startup_scripts/ |
ItemEvents.toolTierRegistry (link) |
No |
/startup_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 |
/client_scripts/ |
ItemEvents.clientLeftClicked (link) |
No |
/client_scripts/ |
ItemEvents.tooltip (link) |
No |
/startup_scripts/ |
ItemEvents.modelProperties (link) |
No |
/client_scripts/ |
ItemEvents.clientRightClicked (link) |
No |
/startup_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) |
|
/server_scripts/ |
EntityEvents.hurt (link) |
|
/server_scripts/ |
EntityEvents.checkSpawn (link) |
|
/server_scripts/ |
EntityEvents.spawned (link) |
|
/server_scripts/ |
PlayerEvents.loggedIn (link) |
No |
/server_scripts/ |
PlayerEvents.loggedOut (link) |
No |
/server_scripts/ |
PlayerEvents.respawned (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 |
Mod Compatibility
These events are enabled when certain other mods are present.
JEI
Folder | Method | Cancellable |
/client_scripts/ |
JEIEvents.subtypes (link) |
No |
/client_scripts/ |
JEIEvents.hideItems (link) |
No |
/client_scripts/ |
|
No |
/client_scripts/ |
JEIEvents.hideCustom (link) |
No |
/client_scripts/ |
JEIEvents.removeCategories (link) |
No |
/client_scripts/ |
JEIEvents.removeRecipes (link) |
No |
/client_scripts/ |
JEIEvents.addItems (link) |
No |
/client_scripts/ |
JEIEvents.addFluids (link) |
No |
/client_scripts/ |
JEIEvents.information (link) |
No |
REI
Folder | Method | Cancellable |
/client_scripts/ |
REIEvents.hide (link) |
No |
/client_scripts/ |
REIEvents.add (link) |
No |
/client_scripts/ |
REIEvents.information (link) |
No |
/client_scripts/ |
REIEvents.removeCategories (link) |
No |
/client_scripts/ |
REIEvents.groupEntries (link) |
No |
GameStages
Folder | Method | Cancellable |
/server_scripts/ |
GameStageEvents.stageAdded (link) |
No |
/server_scripts/ |
GameStageEvents.stageRemoved (link) |
No |