Update README.md
Add details about current server functionality
This commit is contained in:
36
README.md
36
README.md
@@ -34,30 +34,42 @@ Basic LAN multiplayer is available on the Windows build
|
||||
- Other players on the same LAN can discover the session from the in-game Join Game menu
|
||||
- Game connections use TCP port `25565` by default
|
||||
- LAN discovery uses UDP port `25566`
|
||||
- Add servers to your server list with `servers.txt` (temp solution)
|
||||
- Rename yourself without losing data by keeping your `uid.dat`
|
||||
|
||||
This feature is based on [LCEMP](https://github.com/LCEMP/LCEMP)
|
||||
Parts of this feature are based on code from [LCEMP](https://github.com/LCEMP/LCEMP) (thanks!)
|
||||
|
||||
### servers.txt
|
||||
|
||||
To add a server to your game, create the `servers.txt` file in the same directory as you have `Minecraft.Client.exe`. Inside, follow this format:
|
||||
```
|
||||
serverip.example.com
|
||||
25565
|
||||
The name of your server in UI!
|
||||
```
|
||||
|
||||
For example, here's a valid servers.txt
|
||||
```
|
||||
1.1.1.1
|
||||
25565
|
||||
Cloudflare's Very Own LCE Server
|
||||
127.0.0.1
|
||||
25565
|
||||
Localhost Test Crap
|
||||
```
|
||||
|
||||
### Launch Arguments
|
||||
|
||||
| Argument | Description |
|
||||
|--------------------|-----------------------------------------------------------------------------------------------------|
|
||||
| `-name <username>` | Sets your in-game username. |
|
||||
| `-server` | Launches a headless server instead of the client. |
|
||||
| `-ip <address>` | Client mode: manually connect to an IP. Server mode: override the bind IP from `server.properties`. |
|
||||
| `-port <port>` | Client mode: override the join port. Server mode: override the listen port from `server.properties`.|
|
||||
| `-fullscreen` | Launches the game in Fullscreen mode |
|
||||
|
||||
Example:
|
||||
```
|
||||
Minecraft.Client.exe -name Steve -ip 192.168.0.25 -port 25565
|
||||
Minecraft.Client.exe -name Steve -fullscreen
|
||||
```
|
||||
|
||||
Headless server example:
|
||||
```
|
||||
Minecraft.Client.exe -server -ip 0.0.0.0 -port 25565
|
||||
```
|
||||
|
||||
The headless server also reads and writes `server.properties` in the working directory. If `-ip` / `-port` are omitted in `-server` mode, it falls back to `server-ip` / `server-port` from that file. Dedicated-server host options such as `trust-players`, `pvp`, `fire-spreads`, `tnt`, `difficulty`, `gamemode`, `spawn-animals`, and `spawn-npcs` are persisted there as well.
|
||||
|
||||
## Controls (Keyboard & Mouse)
|
||||
|
||||
- **Movement**: `W` `A` `S` `D`
|
||||
|
||||
Reference in New Issue
Block a user