Basalt's own: the before half of worldLoad, the place to register item custom components.
Interface in @minecraft/server
Basalt’s own: the before half of worldLoad, the place to register item custom components.
import type { WorldLoadBeforeEvent } from '@minecraft/server';Subscribe to it with world.beforeEvents.worldLoad.
Example
Section titled “Example”import { world, type WorldLoadBeforeEvent } from '@minecraft/server';
world.beforeEvents.worldLoad.subscribe((event: WorldLoadBeforeEvent) => { console.log('worldLoad');});import { world } from '@minecraft/server';
world.beforeEvents.worldLoad.subscribe((event) => { console.log('worldLoad');});Properties
Section titled “Properties”itemComponentRegistry
Section titled “itemComponentRegistry”read-only
readonly itemComponentRegistry: ItemComponentRegistry;