minecraft-pi-docker/docs/COMMAND_LINE.md

65 lines
2.3 KiB
Markdown
Raw Normal View History

2022-03-10 03:37:37 +00:00
# Command Line Usage
2021-06-18 12:48:55 +00:00
2022-03-10 03:37:37 +00:00
## Command Line Arguments
2024-02-01 08:18:47 +00:00
### `--version` (Or `-v`)
If you run MCPI-Reborn with `--version` it will print its version to `stdout`.
2024-02-01 08:18:47 +00:00
### `--debug`
This sets `MCPI_DEBUG`.
2022-10-02 04:47:11 +00:00
2024-02-01 08:18:47 +00:00
### `--copy-sdk`
2024-01-24 02:57:57 +00:00
This extracts the modding SDK and immediately exits. (This allows the SDK to be extracted without starting the game.)
2022-09-23 04:31:42 +00:00
### Client Mode Only
2024-02-01 08:18:47 +00:00
#### `--print-available-feature-flags`
This print the available feature flags (and their default values) to `stdout` and then immediately exit.
2022-03-10 03:37:37 +00:00
The feature flags are printed in the following format:
2021-06-18 12:48:55 +00:00
```
TRUE This Flag Is On By Default
FALSE This Flag Is Off By Default
```
2024-02-01 08:18:47 +00:00
#### `--default`
This will skip the startup configuration dialogs and just use the default values. This will use the cached configuration unless `--no-cache` is used.
2021-11-14 04:29:48 +00:00
2024-02-01 08:18:47 +00:00
#### `--benchmark`
2022-09-23 04:31:42 +00:00
This will make MCPI-Reborn enter a simple benchmark mode. This means automatically loading a newly generated world, then rotating the camera for a period of time. When it has finished, it will then exit and print the average FPS while the world was loaded. In this mode, all user input is blocked. However you can still modify rendering settings by changing feature flags.
2021-11-14 04:29:48 +00:00
The world used will always be re-created on start and uses a hard-coded seed.
2022-03-10 03:37:37 +00:00
2024-02-01 08:18:47 +00:00
#### `--no-cache`
2022-09-23 04:31:42 +00:00
This will skip loading and saving the cached launcher configuration.
2024-02-01 08:18:47 +00:00
#### `--wipe-cache`
2022-09-23 04:31:42 +00:00
This will wipe the cached launcher configuration.
### Server Mode Only
2024-02-01 08:18:47 +00:00
#### `--only-generate`
2022-09-23 04:31:42 +00:00
This will make MCPI-Reborn immediately exit once world generation has completed. This is mainly used for automatically testing MCPI-Reborn.
2022-09-22 21:43:21 +00:00
2022-03-10 03:37:37 +00:00
## Environmental Variables
2024-02-01 08:18:47 +00:00
### `MCPI_DEBUG`
2022-07-08 17:57:48 +00:00
This enables debug logging if it is set.
2022-03-10 03:37:37 +00:00
2024-02-01 08:18:47 +00:00
### `MCPI_API_PORT`
2022-09-21 21:54:40 +00:00
This configures the API to use a different port (the default is 4711).
2022-03-10 03:37:37 +00:00
### Client Mode Only
2022-07-08 17:57:48 +00:00
If any of the following variables aren't set, one configuration dialog will open on startup for each unset variable.
2022-03-10 03:37:37 +00:00
2024-02-01 08:18:47 +00:00
#### `MCPI_FEATURE_FLAGS`
This corresponds to `--print-available-feature-flags`. This is just a list of all enabled feature flags separated by `|`.
2022-03-10 03:37:37 +00:00
2024-02-01 08:18:47 +00:00
For instance, the string `Feature A|Feature B` would enable both `Feature A` and `Feature B` and *disable every other available feature flag*.
2022-03-10 03:37:37 +00:00
2024-02-01 08:18:47 +00:00
#### `MCPI_RENDER_DISTANCE`
This is the render distance. The possible values are: `Far`, `Normal`, `Short`, and `Tiny`.
2022-03-10 03:37:37 +00:00
2024-02-01 08:18:47 +00:00
#### `MCPI_USERNAME`
2022-03-10 03:37:37 +00:00
This is the username.