• Generates a tunnel.

    Parameters

    • center: Vector3

      The location of the center of the tunnel.

    • radius: number

      The radius of the tunnel.

    • length: number

      The length of the tunnel.

    • axis: string

      The axis of the tunnel.

    • dimension: Dimension

      The dimension to generate the tunnel in.

    • block: string

      The block type of the block permutation to generate.

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

      The block states of the block permutation to generate.

    • Optionaloptions: FillOptions1

      Optional extra options for the tunnel generation execution.

    • Optionalplaceholderid: string

      The namespaced id of the block type to use as a placeholder block during generation.

    • Optionalreplacemode: boolean = false

      Whether or not to clear container blocks before replacing them.

    • Optionalintegrity: number = 100

      The integrity of the tunnel generation.

    Returns number

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

    Legacy function that may cause script hang errors. Superceeded by fillTunnel.