mooncraft

    Play Mooncraft (a MoonBit / WebGPU voxel sandbox game) in your browser via moonx

    moonx
    wasm
    game
    webgpu
    voxel
    Download zip
    Author
    Version
    0.0.1-alpha.2
    License
    MIT
    Last updated
    19 minutes ago
    Downloads
    9

    #Mooncraft Launcher (Lampese/mooncraft)

    Play Mooncraft (a MoonBit / WebGPU voxel sandbox game) in your browser with a single command:

    moonx Lampese/mooncraft

    #What It Does

    1. Automatically detects your HTTP proxy (--proxy, HTTPS_PROXY/HTTP_PROXY, or OS system proxy on macOS, Windows, and Linux GNOME).
    2. Downloads and verifies (SHA-256) the prebuilt browser engine (~13 MiB) and asset bundle (~375 MiB) from Lampese/mooncraft_release with a live progress bar, speed/ETA readout, automatic HTTP Range resume, and retries.
    3. Caches the engine and assets separately in ~/.cache/mooncraft/ so engine updates only download the small engine archive while reusing cached assets.
    4. Starts a local MoonBit HTTP server on http://127.0.0.1:4173/ with the required COOP/COEP headers, gzip-encoded .json.gz headers, ETag caching, and 206 Partial Content byte-range audio streaming.
    5. Opens your default browser automatically. Subsequent runs start in under a second with zero downloads.

    #Options

    moonx Lampese/mooncraft [OPTIONS]

    OptionDescription
    --port <PORT>Preferred local port (default: 4173, auto-falls back if busy)
    --host <ADDR>Local bind IP address (default: 127.0.0.1)
    --tag <TAG>GitHub Release tag to launch (default: v0.0.1-alpha)
    --proxy <URL>HTTP proxy URL (overrides env & OS system proxy)
    --no-proxyDisable all proxy detection (direct connection)
    --mirror <URL>Mirror base URL (or template containing {url}) for faster downloads; also reads MOONCRAFT_MIRROR
    --cache-dir <DIR>Override local cache directory (also reads MOONCRAFT_CACHE_DIR)
    --no-browserStart the local server without opening a browser tab
    --check-onlyEnsure release bundles are downloaded and verified, then exit
    --clean-cacheRemove cached files for the selected release before starting
    --help, -hShow usage help
    --version, -VShow launcher version

    #Requirements

    • A browser with WebGPU support (Chrome 113+, Edge 113+, Safari 26+, or Firefox with WebGPU enabled).

    #Disclaimer

    NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT. Mooncraft is an independent, unofficial fan project, not affiliated with, endorsed by, sponsored by, or connected to Mojang Studios, Mojang Synergies AB, or Microsoft Corporation.