Skip to main content

List of all 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.
ID Cancellable Type Available on Fabric
init No Startup Yes
postinit No Startup Yes
loaded No Startup Yes
command.registry No Server Startup Yes (Since 3.1)
command.run Yes Server Yes (Since 3.1)
client.init No Client Startup Yes
client.debug_info.left No Client

Yes

client.debug_info.right No Client

Yes

client.logged_in No Client Yes (Since 3.1)
client.logged_out No Client Yes (Since 3.1)
client.tick No Client Yes
server.load No Server Startup Yes (Since 3.1)
server.unload No Server Yes (Since 3.1)
server.tick No Server Yes
server.datapack.first No Server Startup Yes
server.datapack.last No Server Startup Yes
recipes No Server Startup Yes
world.load No Server Yes
world.unload No Server Yes
world.tick No Server Yes
world.explosion.pre Yes Server Yes (Since 3.1)
world.explosion.post No Server Yes (Since 3.1)
player.logged_in No Server Yes (Since 3.1)
player.logged_out No Server Yes (Since 3.1)
player.tick No Server Yes (Since 3.1)
player.data_from_server. Yes Client Yes (Since 3.1)
player.data_from_client. Yes Server Yes (Since 3.1)
player.chat Yes Server Yes (Since 3.1)
player.advancement No Server Yes (Since 3.1)
player.inventory.opened No Server Yes (Since 3.1)
player.inventory.closed No Server Yes (Since 3.1)
player.inventory.changed No Server Yes (Since 3.1)
player.chest.opened No Server Yes (Since 3.1)
player.chest.closed No Server Yes (Since 3.1)
entity.death Yes Server Yes (Since 3.1)
entity.attack Yes Server Yes (Since 3.1)
entity.drops Yes Server No
entity.check_spawn Yes Server No
entity.spawned Yes Server Yes (Since 3.1)
block.registry No Startup Yes
block.missing_mappings No Server Startup No
block.tags No Server Startup Yes
block.right_click Yes Server Yes
block.left_click Yes Server Yes
block.place Yes Server Yes (Since 3.1)
block.break Yes Server Yes (Since 3.1)
block.drops No Server No
item.registry No Startup Yes
item.missing_mappings No Server Startup No
item.tags No Server Startup Yes
item.right_click Yes Server Yes
item.right_click_empty No Server Yes
item.left_click No Server Yes
item.entity_interact Yes Server Yes (Since 3.1)
item.pickup Yes Server Yes
item.tooltip No Client

Yes

item.toss Yes Server

Yes

item.crafted No Server Yes (Since 3.1)
item.smelted No Server Yes
fluid.registryNoStartupNo
fluid.tags No Server Startup Yes
entity_type.tags No Server

Yes

worldgen.add No Startup

Yes

worldgen.remove No Startup

Yes