Blockbench Reference Docs
    Preparing search index...
    interface PreviewModelOptions {
        color?: string;
        condition?: ConditionResolvable;
        cubes?: PreviewModelCubeTemplate[];
        id?: string;
        name?: string;
        position?: ArrayVector3;
        prefabs?: Record<string, PrefabTemplate>;
        render_side?: number;
        rotation?: ArrayVector3;
        scale?: ArrayVector3;
        shading?: boolean;
        texture?: string;
        texture_size?: [number, number];
        onUpdate?(): void;
    }
    Index

    Methods

    • Returns void

    Properties

    color?: string

    Model tint color

    id?: string
    name?: string
    position?: ArrayVector3
    prefabs?: Record<string, PrefabTemplate>
    render_side?: number

    THREE.JS material render side

    rotation?: ArrayVector3
    scale?: ArrayVector3
    shading?: boolean

    Enable shading on the material

    texture?: string

    Source of the model's texture

    texture_size?: [number, number]