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

    Class EntityHealableComponent

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

    const entity = world.getDimension("overworld").getEntities({ type: "minecraft:wolf" })[0];
    const healable = entity.getComponent("healable");
    healable.forceUse;
    healable.getFeedItems();
    healable.isValid;

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    entity: Entity

    This property can throw errors.

    InvalidEntityError

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

    forceUse: boolean

    This property can throw errors.

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

    isValid: boolean
    typeId: string

    Methods