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'sits class and see information, fieldsfields, and methods.
Type descriptions:
Startup:Startup:Scriptsscripts goininto the/kubejs/
folder.startup_scriptsstartup_scripts/Server:Server:Scriptsscripts goininto the/kubejs/
folder.server_scriptsserver_scripts/WillIt will be reloaded when you run/reload
command.- Server
Startup:Startup:Samesame as Server, and the event will be fired at least once when the server loads. Client:Client:Scriptsscripts goininto the/kubejs/
folder. Will be reloaded when you pressclient_scriptsclient_scripts/F3+
.T.T- Client
Startup:Startup: Same as Client, and the event will be fired at least once when the client loads.
Folder | Method | Cancellable |
/startup_scripts/ |
StartupEvents.init (link) |
|
/startup_scripts/ |
StartupEvents.postInit (link) |
|
/startup_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
|
|
/client_scripts/ |
ClientEvents.paintScreen (link) |
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
|
|
/server_scripts/ |
ServerEvents.customCommand (link) |
|
/server_scripts/ |
ServerEvents.recipes (link) |
|
/server_scripts/ |
ServerEvents.afterRecipes (link) |
|
/server_scripts/ |
ServerEvents.specialRecipeSerializers (link) |
|
/server_scripts/ |
ServerEvents.compostableRecipes (link) |
|
/server_scripts/ |
ServerEvents.recipeTypeRegistry (link) |
|
/server_scripts/ |
|
❌ |
/server_scripts/ |
ServerEvents.blockLootTables (link) |
❌ |
/server_scripts/ |
ServerEvents.entityLootTables (link) |
❌ |
/server_scripts/ |
ServerEvents.giftLootTables (link) |
❌ |
/server_scripts/ |
ServerEvents.fishingLootTables (link) |
❌ |
/server_scripts/ |
ServerEvents.chestLootTables (link) |
|
/server_scripts/ |
LevelEvents.loaded (link) |
|
/server_scripts/ |
LevelEvents.unloaded (link) |
|
/server_scripts/ |
LevelEvents.tick (link) |
|
/server_scripts/ |
LevelEvents.beforeExplosion (link) |
|
/server_scripts/ |
LevelEvents.afterExplosion (link) |
|
/startup_scripts/ |
WorldgenEvents.add (link) |
|
/startup_scripts/ |
WorldgenEvents.remove (link) |
|
/client_scripts/ |
NetworkEvents.fromServer (link) |
|
/server_scripts/ |
NetworkEvents.fromClient (link) |
|
/startup_scripts/ |
ItemEvents.modification (link) |
|
/startup_scripts/ |
ItemEvents.toolTierRegistry (link) |
|
/startup_scripts/ |
ItemEvents.armorTierRegistry (link) |
|
/server_scripts/ |
ItemEvents.rightClicked (link) |
|
/server_scripts/ |
ItemEvents.canPickUp (link) |
✅ |
/server_scripts/ |
ItemEvents.pickedUp (link) |
|
/server_scripts/ |
ItemEvents.dropped (link) |
|
/server_scripts/ |
ItemEvents.entityInteracted (link) |
|
/server_scripts/ |
ItemEvents.crafted (link) |
|
/server_scripts/ |
ItemEvents.smelted (link) |
|
/server_scripts/ |
ItemEvents.foodEaten (link) |
|
/ |
ItemEvents. (link) |
|
/startup_scripts/ |
ItemEvents.modelProperties (link) |
❌ |
/client_scripts/ |
ItemEvents.clientRightClicked (link) |
❌ |
/client_scripts/ |
ItemEvents.clientLeftClicked (link) |
|
/ |
ItemEvents. (link) |
|
/ |
ItemEvents. (link) |
|
|
| |
/startup_scripts/ |
BlockEvents.modification (link) |
|
/server_scripts/ |
BlockEvents.rightClicked (link) |
|
/server_scripts/ |
BlockEvents.leftClicked (link) |
|
/server_scripts/ |
BlockEvents.placed (link) |
|
/server_scripts/ |
BlockEvents.broken (link) |
|
/server_scripts/ |
BlockEvents.detectorChanged (link) |
|
/server_scripts/ |
BlockEvents.detectorPowered (link) |
|
/server_scripts/ |
BlockEvents.detectorUnpowered (link) |
|
/server_scripts/ |
BlockEvents.farmlandTrampled (link) |
❌ |
/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) |
|
/server_scripts/ |
PlayerEvents.loggedOut (link) |
|
/server_scripts/ |
PlayerEvents.respawned (link) |
|
/server_scripts/ |
PlayerEvents.tick (link) |
|
/server_scripts/ |
PlayerEvents.chat (link) |
|
/server_scripts/ |
PlayerEvents.decorateChat (link) |
|
/server_scripts/ |
PlayerEvents.advancement (link) |
|
/server_scripts/ |
PlayerEvents.inventoryOpened (link) |
|
/server_scripts/ |
PlayerEvents.inventoryClosed (link) |
|
/server_scripts/ |
PlayerEvents.inventoryChanged (link) |
|
/server_scripts/ |
PlayerEvents.chestOpened (link) |
|
/server_scripts/ |
PlayerEvents.chestClosed (link) |
Mod Compatibility
These events are enabled when certain other mods are present.
JEI
Folder | Method | Cancellable |
/client_scripts/ |
JEIEvents.subtypes (link) |
|
/client_scripts/ |
JEIEvents.hideItems (link) |
|
/client_scripts/ |
|
|
/client_scripts/ |
JEIEvents.hideCustom (link) |
|
/client_scripts/ |
JEIEvents.removeCategories (link) |
|
/client_scripts/ |
JEIEvents.removeRecipes (link) |
|
/client_scripts/ |
JEIEvents.addItems (link) |
|
/client_scripts/ |
JEIEvents.addFluids (link) |
|
/client_scripts/ |
JEIEvents.information (link) |
REI
Folder | Method | Cancellable |
/client_scripts/ |
REIEvents.hide (link) |
|
/client_scripts/ |
REIEvents.add (link) |
|
/client_scripts/ |
REIEvents.information (link) |
|
/client_scripts/ |
REIEvents.removeCategories (link) |
|
/client_scripts/ |
REIEvents.groupEntries (link) |
GameStages
Folder | Method | Cancellable |
/server_scripts/ |
GameStageEvents.stageAdded (link) |
|
/server_scripts/ |
GameStageEvents.stageRemoved (link) |