Skip to content

Run a server and join it

WIP: not implemented yet or partly. Follow: #82, #740, #904, #905, #912, #916, #917, #918, #968

On this page you start a server on your own machine, join it with a vanilla client and see what you can do there. You need the tools from Install the tools first.

Terminal window
cargo run --release
cargo run --release -- "<path to a world folder>"

The first command generates a world in memory. The second opens a Java Edition save, or creates one if the folder exists but has no saved world settings. An existing save must have the same data version as the game snapshot (26.4-snapshot-7). Saves of other versions do not load, and there are no datafixers.1

Use a vanilla client of the same snapshot, 26.4-snapshot-7. The server announces itself in the LAN worlds list, and you can also join by the address localhost:25565. The server runs in offline mode.

  • Write in chat.
  • Run commands from the server console, which reads standard input: /gamemode, /tp, /summon pig, /time, /fill. To run them from the client you need operator rights. Joining from the same machine does not give them, so after you join, type op <your name> in the console, or list the player in ops.json in the working directory of the server and restart it, because the server reads the file only at start.2 Who becomes an operator explains the rules.
  • Place and break blocks. The default game mode is creative. You can also dig in survival mode, but a tool is no faster than an empty hand yet. A broken block drops items that you can pick up.
  • Fly around the generated world and spawn mobs with /summon: pigs, cows, sheep, chickens and zombified piglins.
  • Hit living entities. Basic attacks include attack strength, baseline reach checks and server knockback; Status lists the remaining combat limits.3

The server reads its settings from environment variables, for example MCRS_PORT, MCRS_WORLD_SEED, MCRS_WORLD_PRESET (normal or flat) and MCRS_DEFAULT_GAMEMODE. The full list is in server_settings.rs.

The server writes changed chunks back to the region files of the world folder every 6000 ticks, so a block you break survives a restart. A clean shutdown, the first Ctrl+C, saves the world and the players before the server exits.4 Without a world folder nothing reaches the disk.

The expected console output and a first-run checklist are not written yet. For those details, read the README.

  1. Not planned#388 The decision that saves are read at exactly the targeted data version, with no datafixers. ↩

  2. Works#933 The server binary gives operator rights only to the players that ops.json or the op command names. ↩

  3. Works#1106 Adds baseline player attacks and knockback. ↩

  4. Works#624 The server disconnects and saves every player before a shutdown exits. ↩

Sources and verification

Verified: 26.4-snapshot-7, 1cf84286c, 2026-11-30

Related open issues:

  • #82 WIP Online mode: encryption and session authentication
  • #740 WIP Weather on the server: rain and thunder cycles, lightning strikes and their packets
  • #904 WIP Entity cap per dimension with a refused-spawn message
  • #905 WIP Baseline server sounds: block break and place, steps, item pickup
  • #912 WIP Operator commands: kick, list, say, msg, stop, save-all, give and title
  • #916 WIP Chat rate limit and mute
  • #917 WIP Cancellable break and place message, and spawn protection with a radius
  • #918 WIP Run the server: config file, release build, restart on crash, world backup
  • #968 WIP Stop a dedicated server on a held world folder before it binds