]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - README.md
Document map saving in README.md
[dragonblocks_alpha.git] / README.md
1 # Dragonblocks alpha
2
3 ## Usage
4 ```bash
5 ./DragonblocksServer <port>
6 ./Dragonblocks <address> <port>
7 ```
8
9 The server will save the map to a file named "map" in the directory it is run in. It will also load the map from there at startup, given that the file exists.
10
11 ## Client commands:
12 - `setnode <x> <y> <z> <node>`: set a node somewhere
13 - `getnode <x> <y> <z>`: download the mapblock containing the node at x y z from server
14 - `printnode <x> <y> <z>`: print the node at x y z (download the mapblock using getnode first)
15 - `kick <name>`: kick a player
16 - `disconnect`: disconnect from server
17
18 All positions are signed integers (`s32`)
19
20 ## Nodes:
21 - `unloaded`: used for nodes in unloaded mapblocks
22 - `air`: default node in newly generated mapblocks
23 - `dirt`
24 - `grass`
25 - `stone`
26 - `invalid`: unknown nodes received from server
27
28 Interrupt handlers for SIGINT und SIGTERM are implemented.