• Generates an outline fill.

    Parameters

    • begin: Vector3

      The location of a corner of the area to have its outline filled in.

    • end: Vector3

      The location of the opposite corner of the area to have its outline filled in.

    • dimension: Dimension

      The dimension to generate the outline fill in.

    • block: (location: DimensionLocation, index: bigint) => BlockPermutation

      The function to determine the BlockPermutation to generate.

    • Optionaloptions: {
          matchingBlock?: string;
          matchingBlockStates?: Record<string, string | number | boolean>;
          minMSBetweenYields?: number;
      }

      Optional extra options for the outline fill generation execution.

      • OptionalmatchingBlock?: string

        The type of the block mask to match.

      • OptionalmatchingBlockStates?: Record<string, string | number | boolean>

        The block states of the block mask to match.

      • OptionalminMSBetweenYields?: number

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

    • replacemode: boolean = false

      Whether or not to clear container blocks before replacing them.

    • integrity: number = 100

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

    Legacy function. Superceeded by fillOutline.