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

    Class EntityRideableComponent

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

    const boat = world.getDimension("overworld").spawnEntity("minecraft:boat", { x: 0, y: 5, z: 0 });
    const riderEntity = world.getAllPlayers()[0]; // Assuming you have an 'riderEntity' instance
    const rideable = boat.getComponent("rideable");
    rideable.controllingSeat;
    rideable.crouchingSkipInteract;
    rideable.interactText;
    rideable.pullInEntities;
    rideable.riderCanInteract;
    rideable.seatCount;
    rideable.addRider(riderEntity);
    rideable.ejectRider(riderEntity);
    rideable.ejectRiders();
    rideable.getFamilyTypes();
    rideable.getRiders();
    rideable.getSeats();
    rideable.isValid;

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    controllingSeat: number

    This property can throw errors.

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

    crouchingSkipInteract: boolean

    This property can throw errors.

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

    entity: Entity

    This property can throw errors.

    InvalidEntityError

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

    interactText: string

    This property can throw errors.

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

    isValid: boolean
    passengerMaxWidth: number

    This property can throw errors.

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

    pullInEntities: boolean

    This property can throw errors.

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

    riderCanInteract: boolean

    This property can throw errors.

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

    seatCount: number

    This property can throw errors.

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

    typeId: string

    Methods

    • Parameters

      Returns boolean

      This function can't be called in read-only mode.

      This function can throw errors.

      This function can't be called in early-execution mode.

    • Parameters

      Returns void

      This function can't be called in read-only mode.

      This function can throw errors.

      This function can't be called in early-execution mode.

    • Returns void

      This function can't be called in read-only mode.

      This function can throw errors.

      This function can't be called in early-execution mode.

    • Returns string[]

      This function can't be called in read-only mode.

      This function can throw errors.

      This function can't be called in early-execution mode.