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.
(Since3.1)
ID Cancellable Type Available on Fabric
init No Startup Yes
postinit No StartupYes
loaded No Startup Yes
command.registry No Server StartupYes (Since 3.1)
command.run Yes Server Yes (Since 3.1)
client.init No Client StartupYes
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 ClientYes (Since 3.1)
client.tick No Client Yes
server.load No Server StartupYes (Since 3.1)
server.unload No Server Yes (Since 3.1)
server.tick No ServerYes
server.datapack.first No Server StartupYes
server.datapack.last No Server StartupYes
recipes No Server StartupYes
world.load No Server Yes
world.unload No Server Yes
world.tick No ServerYes
world.explosion.pre Yes Server Yes (Since 3.1)
world.explosion.post No ServerYes (Since 3.1)
player.logged_in No Server Yes (Since 3.1)
player.logged_out No ServerYes (Since 3.1)
player.tick No Server Yes (Since 3.1)
player.data_from_server. Yes ClientYes (Since 3.1)
player.data_from_client. Yes Server Yes (Since 3.1)
player.chat Yes Server Yes (Since 3.1)
player.advancement No ServerYes (Since 3.1)
player.inventory.opened No Server Yes (Since 3.1)
player.inventory.closed No ServerYes (Since 3.1)
player.inventory.changed No Server Yes (Since 3.1)
player.chest.opened No ServerYes (Since 3.1)
player.chest.closed No Server Yes (Since 3.1)
entity.death Yes ServerYes (Since 3.1)
entity.attack Yes Server Yes (Since 3.1)
entity.drops Yes ServerNo
entity.check_spawn Yes Server No
entity.spawned Yes ServerYes (Since 3.1)
block.registry No Startup Yes
block.missing_mappings No Server StartupNo
block.tags No Server StartupYes
block.right_click Yes Server Yes
block.left_click Yes ServerYes
block.place Yes Server Yes (Since 3.1)
block.break Yes Server Yes (Since 3.1)
block.drops No ServerNo
item.registry No Startup Yes
item.missing_mappings No Server StartupNo
item.tags No Server StartupYes
item.right_click Yes Server Yes
item.right_click_empty No ServerYes
item.left_click No Server Yes
item.entity_interact Yes Server
Yesitem.modification No Startup
item.pickup Yes ServerYes
item.tooltip No Client

Yes

item.toss Yes Server

Yes

item.crafted No Server Yes (Since 3.1)
item.smelted No ServerYes
fluid.registry No Startup No
fluid.tags No Server StartupYes
entity_type.tags No Server

Yes

worldgen.add No Startup

Yes

worldgen.remove No Startup

Yes