Skip to main content

Startup 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.
FolderMethodCancellable
/startup_scripts/StartupEvents.init 
/startup_scripts/StartupEvents.postInit 
/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)