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

    Class EntityMarkVariantComponent

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

    world.afterEvents.entitySpawn.subscribe(({ entity }) => {
    const markVariant = entity.getComponent("mark_variant");
    markVariant.value;
    markVariant.isValid;
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    entity: Entity

    This property can throw errors.

    InvalidEntityError

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

    isValid: boolean
    typeId: string
    value: number

    This property can throw errors.

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