• Generates a drain fill.

    Parameters

    • begin: Vector3

      The location of a corner of the area to drain.

    • end: Vector3

      The location of the opposite corner of the area to drain.

    • dimension: Dimension

      The dimension to generate the drain fill in.

    • Optionaloptions: { minMSBetweenYields?: number }

      Optional extra options for the fill generation execution.

      • OptionalminMSBetweenYields?: number

        The shortest the generation can run for before pausing until the next tick.

    • integrity: number = 100

      The integrity of the drain fill 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 drain fill generation once the drain fill generation is complete.

    Legacy function. Superceeded by fillDrain.