Function downloadMinecraft

  • Downloads a Minecraft version and all of its assets.

    Example

    Downloading Minecraft 1.19.3.

    // Import the functions
    import { downloadMinecraft } from "mc-piston-api";

    // Download Minecraft!
    await downloadMinecraft("1.19.3", "./minecraft");

    Parameters

    • versionId: string

      The Minecraft version to download.

    • root: string = "./"

      An optional root directory to download to. Defaults to ./ (the current directory).

    Returns Promise<void>

Generated using TypeDoc