• Generates a skygrid.

    Parameters

    • from: Vector3

      The location of a corner of the area to generate the skygrid in.

    • to: Vector3

      The location of the opposite corner of the area to generate the skygrid in.

    • skygridSize: number

      The size of the skygrid.

    • dimension: Dimension

      The dimension to generate the skygrid in.

    • block: string

      The block type of the BlockPermutation to generate.

    • OptionalblockStates: Record<string, string | number | boolean>

      The block states of the BlockPermutation to generate.

    • Optionaloptions: FillOptions2

      Optional extra options for the inverse skygrid generation execution.

    • Optionalplaceholderid: string
    • replacemode: boolean = false

      Whether or not to clear container blocks before replacing them.

    • integrity: number = 100

      The integrity of the skygrid generation.

    Returns Promise<
        {
            completionData: {
                containsUnloadedChunks?: boolean;
                done: boolean;
                endTick?: number;
                endTime?: number;
                startTick: number;
                startTime: number;
            };
            counter: number;
        },
    >

    A promise that resolves with the details of the skygrid generation once the skygrid generation is complete.

    Legacy function. Superceeded by fillBlocksHSGGB.