@minecraft
    正在准备搜索索引...

    接口 SpawnEntityOptions预览版

    Contains additional options for spawning an Entity.

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

    属性

    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.