Script API - v1.26.10.23
    Preparing search index...

    Class PlayerSpawnAfterEventSignal

    import { world } from "@minecraft/server";

    world.afterEvents.playerSpawn.subscribe((eventData) => {
    const { player, initialSpawn } = eventData;
    if (!initialSpawn) return;

    // This runs when the player joins the game for the first time!
    });
    Index

    Constructors

    Methods

    Constructors

    Methods