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

    Class EntityAddRiderComponent

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

    const caveSpider = world.getDimension("overworld").getEntities({ type: "minecraft:cave_spider" })[0];
    const addRider = caveSpider.getComponent("addrider");
    addRider.entityType;
    addRider.spawnEvent;

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    entity: Entity

    This property can throw errors.

    InvalidEntityError

    This property can't be read in early-execution mode.

    entityType: string

    This property can throw errors.

    This property can't be read in early-execution mode.

    isValid: boolean
    spawnEvent: string

    This property can throw errors.

    This property can't be read in early-execution mode.

    typeId: string