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

    Class EntityRidingComponent

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

    for (const entity of world.getDimension("overworld").getEntities()) {
    const riding = entity.getComponent("riding");
    if (!riding) continue;
    riding.entityRidingOn;
    riding.isValid;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    entity: Entity

    This property can throw errors.

    InvalidEntityError

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

    entityRidingOn: Entity

    This property can throw errors.

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

    isValid: boolean
    typeId: string