Interface in @minecraft/server
The world has loaded. Fires right after startup.
import type { WorldLoadAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.worldLoad.
Example
Section titled “Example”import { world, type WorldLoadAfterEvent } from '@minecraft/server';
world.afterEvents.worldLoad.subscribe((event: WorldLoadAfterEvent) => { console.log('worldLoad');});import { world } from '@minecraft/server';
world.afterEvents.worldLoad.subscribe((event) => { console.log('worldLoad');});Used by
Section titled “Used by”WorldAfterEvents.worldLoad, WorldAfterEvents.worldInitialize, WorldLoadAfterEventSignal.subscribe, WorldLoadAfterEventSignal.unsubscribe