Skip to main content

blockenv setup

Usage

blockenv setup [options]

Setup the testing environment

Options

OptionDescription
-s, --side <side>Whether to setup the server or client (choices: "client", "server")
-e, --environment <environment>Which environment to setup
-l, --loader <loader>Specify the modloader to use (currently only 'neoforge' is supported)
--loader-version <version>Specify the modloader version to use
-m, --minecraft-version <version>Specify the Minecraft version to use
--new-setup-orderEnable the new order of setup, which first runs the installer and then downloads the libraries and assets (default: false)
-h, --helpdisplay help for command

Examples

Display the help message for the setup command:

blockenv setup --help

Set up a new BlockEnv client environment with NeoForge loader version 21.1.173 for Minecraft 1.21.1:

blockenv setup --side client --loader neoforge --loader-version 21.1.173 --minecraft-version 1.21.1

By using the --new-setup-order flag, you can set up a new BlockEnv server environment without the need to specify the Minecraft version, as it will infer the version from the loader:

blockenv setup --side server --loader neoforge --loader-version 21.1.173 --new-setup-order

When using the --environment flag, you don't need to specify the loader and loader version as long as this configuration is present in your configuration file (e.g., blockenv.config.json):

blockenv setup --environment client --minecraft-version 1.21.1

The --environment flag can also be used in combination with the --new-setup-order flag to set up a new BlockEnv server environment:

blockenv setup --environment server --loader neoforge --loader-version 21.1.173 --new-setup-order