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. 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/
  • 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/

SeverEvents.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.compostables (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
/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) Nog


Footer
© 2022 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact GitHub
Pricing
API