First start

Create an empty folder for your server and start Vanillite in it:

mkdir my-server
cd my-server
/path/to/vanillite run

/path/to/vanillite is the downloaded program or your own build (target/release/vanillite, see Installation). On Windows, a double click on vanillite.exe starts it in its own folder. Or point it at a folder: vanillite run --dir my-server.

Accept the EULA

Like Vanilla, Vanillite only runs once you accept the Minecraft EULA. The first start creates eula.txt with eula=false.

  • At a terminal (or after a double click on Windows), Vanillite asks Do you accept the Minecraft EULA? Type 'yes' to accept:. Type yes: it saves eula=true and starts.
  • Without a person to ask (Docker, a server panel, a service, piped input), it stops and prints a message with the full path of eula.txt, the EULA link and the hint to set VANILLITE_EULA=true. Change eula=false to eula=true and start again, or set the environment variable VANILLITE_EULA=true.

On Windows, a start that fails keeps the console window open until you press Enter, so you can read the message.

What happens on the first start

  1. Vanillite creates server.properties with all of Vanilla's settings and their defaults.
  2. It creates vanillite.toml with every Vanillite setting, commented out and explained. The file starts with profile = "paper", the default profile: it behaves like a default Paper server. Change it to profile = "vanilla" for behaviour that aims to match Vanilla as exactly as possible.
  3. It checks the EULA (see above).
  4. It creates the world folder (world by default) and locks it, so no second server can open the same world.
  5. It downloads the official Minecraft server file from Mojang once and takes the Vanilla data (biomes, dimensions, tags) from it. The copy is kept in the cache folder, so later starts need no internet (see Data and version updates).
  6. It picks the world seed: level-seed from server.properties, or a random one. The world type comes from level-type (normal by default; flat also works). The log shows New world: preset …, seed ….
  7. It loads the plugins in plugins/, if there are any.
  8. It opens the network on server-port (25565 by default) and prints Done (…s)! For help, type "help".

Since 0.1.0-beta.4 the start is much faster: the terrain generators are built in the background and the data is loaded in parallel (Memory and startup).

If you start Vanillite in a folder whose vanillite.toml already exists but has no profile line, it adds profile = "vanilla" once, so a server made before paper became the default keeps behaving as before.

Starting in the folder of a Paper, Spigot or Bukkit server (development version, not in 0.1.0-beta.4): if there is no vanillite.toml yet but a bukkit.yml, spigot.yml or Paper's config/paper-*.yml, step 2 writes that server's settings into vanillite.toml instead, and its worlds and plugins are used. Nothing of the old server is changed. See Move a world to Vanillite and back.

The world is generated as players walk around. A new world is saved in Vanillite's own format (.vwr region files), which is smaller and faster than Vanilla's (World storage). A world that is already in Vanilla's format (Anvil, .mca files), for example from a Vanilla or Paper server, stays in Anvil. The setting storage.world-format picks the format for new worlds (see Performance settings). level.dat (spawn, time, game rules, weather, difficulty) is written in Vanilla's format. Player data (position, dimension, game mode, health, hunger, experience, inventory, status effects) is saved in world/players/data, statistics in world/players/stats and advancements in world/players/advancements, like on Vanilla. Saving runs in the background, and level.dat and player files keep a _old copy as a fallback, like on Vanilla. Optional automatic backups are set up with backup.* (see Performance settings). Operators and the whitelist are kept in ops.json and whitelist.json, like on Vanilla, but matched by account ID (see Security by design).

If the disk is full or read-only, the server keeps running, logs the error and tries to write again at every save. A file that cannot be read is never overwritten without a copy: it is kept next to the new one (.corrupted-… or .damaged-…), or in the unreadable folder for chunks.

Want more than one world on the server? Declare extra worlds in vanillite.toml; each gets its own folder next to world (see Configuration overview).

Both config files are explained in Configuration overview.

The console

The log looks like Vanilla's: [12:00:00] [Server thread/INFO]: …. Its first line names the version, like Starting Vanillite 0.1.0-beta.4 (Minecraft 26.3, …). Set VANILLITE_LOG=debug for more detail (levels: error, warn, info, debug, trace). On a terminal the log has colours like Paper's (warnings yellow, errors red, colour codes of chat and command output); NO_COLOR=1 or VANILLITE_COLOR=never switch them off.

In a terminal, the console shows the prompt > . What you type stays visible while new log lines appear above it, and the arrow keys bring back earlier commands. In Docker, a panel or a pipe, the console reads plain lines instead. More in Server console and first admin steps.

The console takes the same commands as the game, without the /. Like Vanilla, the answer of a command and its errors are logged as System chat: <text>. A few useful commands:

Command What it does
help Lists the commands.
op <player> Makes a player an operator.
whitelist on / whitelist add <player> Turns the whitelist on, adds a player.
save-all Saves the world now (save-all flush waits until everything is on disk). save-off / save-on pause and resume saving the world, for example during an outside backup.
stop Saves and shuts down the server.
vanillite reload config Reloads vanillite.toml without a restart (see Reloading).

Ctrl+C (and Ctrl+D at the prompt) also stops the server cleanly. vanillite --version prints the Vanillite version, the Minecraft version and the build, e.g. Vanillite 0.1.0-beta.4 (Minecraft 26.3, 3bd22ae). vanillite health pings a running server and ends with exit code 0 if it answers (handy for monitoring and containers).

Switching the world format

Run these while the server is stopped (add --dir <folder> for another server folder):

Command What it does
vanillite convert --to anvil Converts the world to Vanilla's format (--to vanillite the other way). The new files are checked before the old ones are moved into world-format-backup/ (or deleted, with storage.keep-converted-files = false). If it is stopped half way, run it again: it continues where it stopped.
vanillite export <folder> Writes a copy of the world into <folder> and leaves the world as it is: by default a Vanilla (Anvil) copy of an own-format world, for example to open it in Vanilla; with --to vanillite an own-format copy of an Anvil world. Every file is copied and checked.
vanillite upgrade-world Rewrites every chunk of an own-format world that an older Minecraft version wrote, in the current version. Optional: without it, chunks are upgraded when they are loaded and saved again.

storage.convert-world = true converts the world into storage.world-format at the next start instead. The dimensions of the world's enabled data packs are converted with the rest. A world with dimension folders that Vanillite does not load (for example those of a removed data pack) is not converted.

After a Minecraft update, an own-format world of the older version opens as usual: blocks are mapped to the new version as chunks load. Blocks that no longer exist become air, and the log lists them. A world from a newer version than the server is refused. Anvil worlds need no upgrade step here.

Next: Connecting.