Skip to main content

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/
  • StartupEvents.registry (fluid)

  • StartupEvents.registry (block)

  • StartupEvents.registry (item)

  • StartupEvents.registry (enchantments)

  • StartupEvents.registry (mob effects)

  • StartupEvents.registry (sound event)

  • StartupEvents.registry (block entity type)

  • StartupEvents.registry (potion)

  • StartupEvents.registry (particle type)

  • StartupEvents.registry (painting variant)

  • StartupEvents.registry (custom stat)

  • StartupEvents.registry (point of interest type)

  • StartupEvents.registry (villager type)

  • StartupEvents.registry (villager profession)

No
/client_scripts/

ClientEvents.highPriorityAssets (link)

No
/client_scripts/

ClientEvents.init (link)

No
/client_scripts/

ClientEvents.loggedIn (link)

No
/client_scripts/

ClientEvents.loggedOut (link)

No
/client_scripts/

ClientEvents.tick (link)

No
/client_scripts/

ClientEvents.painterUpdated (link)

No
/client_scripts/

ClientEvents.leftDebugInfo (link)

No
/client_scripts/

ClientEvents.rightDebugInfo (link)

No
/client_scripts/ ClientEvents.paintScreen (link) No
/server_scripts/

ServerEvents.lowPriorityData (link)

No
/server_scripts/

ServerEvents.highPriorityData (link)

No
/server_scripts/

ServerEvents.loaded (link)

No
/server_scripts/

ServerEvents.unloaded (link)

No
/server_scripts/

ServerEvents.tick (link)

No
/server_scripts/

ServerEvents.tags (link)

No
/server_scripts/

ServerEvents.commandRegistry (link)

No
/server_scripts/

ServerEvents.command (link)

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/
  • ServerEvents.genericLootTables (link)

  • ServerEvents.blockLootTables (link)

  • ServerEvents.entityLootTables (link)

  • ServerEvents.giftLootTables (link)

  • ServerEvents.fishingLootTables (link)

  • ServerEvents.chestLootTables (link)

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) 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.clonedrespawned (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

EventsThese 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/

JEIEvents.hideFluids (link)

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