Events

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 its class and see information, fields, and methods.

#Event Types

#Startup

Scripts go into the startup_scripts/ folder. Startup scripts run once, at startup, on both the client and server. Most events that require registering or modifying something at game start (like custom blocks, items, and fluids) will be Startup events.

#Server

Scripts go into the server_scripts/ folder. It will be reloaded when you run /reload command. Server events are always accessible, even in single-player worlds. Most events that make changes to the world while the game is running (such as breaking blocks, teleporting players, or adding recipes) will go here.

#Client

Scripts go into the client_scripts/ folder. Will be reloaded when you press F3+T. Most changes that are per-client (such as resource packs, Painter, and JEI) are client events.

#List of all Events

Event
BlockEvents.brokenThis page hasn't been written yet!
BlockEvents.detectorChangedThis page hasn't been written yet!
BlockEvents.detectorPoweredThis page hasn't been written yet!
BlockEvents.detectorUnpoweredThis page hasn't been written yet!
BlockEvents.farmlandTrampledThis page hasn't been written yet!
BlockEvents.leftClickedThis page hasn't been written yet!
BlockEvents.modificationThis page hasn't been written yet!
BlockEvents.placedThis page hasn't been written yet!
BlockEvents.rightClickedThis page hasn't been written yet!
ClientEvents.highPriorityAssetsThis page hasn't been written yet!
ClientEvents.initThis page hasn't been written yet!
ClientEvents.leftDebugInfoThis page hasn't been written yet!
ClientEvents.loggedInThis page hasn't been written yet!
ClientEvents.loggedOutThis page hasn't been written yet!
ClientEvents.painterUpdatedThis page hasn't been written yet!
ClientEvents.paintScreenThis page hasn't been written yet!
ClientEvents.rightDebugInfoThis page hasn't been written yet!
ClientEvents.tickThis page hasn't been written yet!
EntityEvents.checkSpawnThis page hasn't been written yet!
EntityEvents.deathThis page hasn't been written yet!
EntityEvents.hurtThis page hasn't been written yet!
EntityEvents.spawnedThis page hasn't been written yet!
ItemEvents.armorTierRegistryThis page hasn't been written yet!
ItemEvents.canPickUpThis page hasn't been written yet!
ItemEvents.craftedThis page hasn't been written yet!
ItemEvents.droppedThis page hasn't been written yet!
ItemEvents.entityInteractedThis page hasn't been written yet!
ItemEvents.firstLeftClickedThis page hasn't been written yet!
ItemEvents.firstRightClickedThis page hasn't been written yet!
ItemEvents.foodEatenThis page hasn't been written yet!
ItemEvents.modelPropertiesThis page hasn't been written yet!
ItemEvents.modificationThis page hasn't been written yet!
ItemEvents.pickedUpThis page hasn't been written yet!
ItemEvents.rightClickedThis page hasn't been written yet!
ItemEvents.smeltedThis page hasn't been written yet!
ItemEvents.toolTierRegistryThis page hasn't been written yet!
ItemEvents.tooltipThis page hasn't been written yet!
LevelEvents.afterExplosionThis page hasn't been written yet!
LevelEvents.beforeExplosionThis page hasn't been written yet!
LevelEvents.loadedThis page hasn't been written yet!
LevelEvents.tickThis page hasn't been written yet!
LevelEvents.unloadedThis page hasn't been written yet!
NetworkEvents.dataReceivedThis page hasn't been written yet!
PlayerEvents.advancementThis page hasn't been written yet!
PlayerEvents.chatThis page hasn't been written yet!
PlayerEvents.chestClosedThis page hasn't been written yet!
PlayerEvents.chestOpenedThis page hasn't been written yet!
PlayerEvents.decorateChatThis page hasn't been written yet!
PlayerEvents.inventoryChangedThis page hasn't been written yet!
PlayerEvents.inventoryClosedThis page hasn't been written yet!
PlayerEvents.inventoryOpenedThis page hasn't been written yet!
PlayerEvents.loggedInThis page hasn't been written yet!
PlayerEvents.loggedOutThis page hasn't been written yet!
PlayerEvents.respawnedThis page hasn't been written yet!
PlayerEvents.tickThis page hasn't been written yet!
ServerEvents.blockLootTablesThis page hasn't been written yet!
ServerEvents.chestLootTablesThis page hasn't been written yet!
ServerEvents.commandThis page hasn't been written yet!
ServerEvents.commandRegistryThis page hasn't been written yet!
ServerEvents.compostableRecipesThis page hasn't been written yet!
ServerEvents.customCommandThis page hasn't been written yet!
ServerEvents.entityLootTablesThis page hasn't been written yet!
ServerEvents.fishingLootTablesThis page hasn't been written yet!
ServerEvents.genericLootTablesThis page hasn't been written yet!
ServerEvents.giftLootTablesThis page hasn't been written yet!
ServerEvents.highPriorityDataThis page hasn't been written yet!
ServerEvents.loadedThis page hasn't been written yet!
ServerEvents.lowPriorityDataThis page hasn't been written yet!
ServerEvents.recipesThis page hasn't been written yet!
ServerEvents.recipeTypeRegistryThis page hasn't been written yet!
ServerEvents.specialRecipeSerializersThis page hasn't been written yet!
ServerEvents.tagsThis page hasn't been written yet!
ServerEvents.tickThis page hasn't been written yet!
ServerEvents.tickThis page hasn't been written yet!
ServerEvents.unloadedThis page hasn't been written yet!
StartupEvents.initThis page hasn't been written yet!
StartupEvents.modifyCreativeTabAdd items to tab, remove items from tab
StartupEvents.postInitThis page hasn't been written yet!
StartupEvents.registryThis page hasn't been written yet!
WorldgenEvents.addThis page hasn't been written yet!
WorldgenEvents.removeThis page hasn't been written yet!