@minecraft/server
    Preparing search index...

    Class EntitySpawnTypeBeta

    A container for information relating to an entity spawn event.

    Required Experiments:

    • Simplified Spawn Rules
    Index

    Properties

    entityId: string

    The entity Id.

    height: number

    The height of the entity to spawn.

    isImmuneFire: boolean

    Is the entity immune to fire.

    isSummonable: boolean

    Is the entity summonable.

    spawnCategory: EntitySpawnCategory

    The category determining the type of spawn.

    width: number

    The width of the entity to spawn.

    Methods

    • Beta

      Parameters

      Returns BoundingBox

      Helper to get the AABB for the entity at a given location

    • Beta

      Parameters

      Returns boolean

      Is the block being spawned on dangerous.