@minecraft/server
    Preparing search index...

    Interface SpawnEntityOptionsBeta

    Contains additional options for spawning an Entity.

    interface SpawnEntityOptions {
        initialPersistence?: boolean;
        initialRotation?: number;
        spawnEvent?: string;
    }
    Index

    Properties

    initialPersistence?: boolean

    Optional boolean which determines if this entity should persist in the game world. Persistence prevents the entity from automatically despawning.

    initialRotation?: number

    Optional initial rotation, in degrees, to set on the entity when it spawns.

    spawnEvent?: string

    Optional spawn event to send to the entity after it is spawned.