@@ -47,30 +47,29 @@ Paths
47
47
Games
48
48
-----
49
49
Games are looked up from:
50
- * `$path_share/games/gameid/`
51
- * `$path_user/games/gameid/`
50
+
51
+ * `$path_share/games/gameid/`
52
+ * `$path_user/games/gameid/`
53
+
52
54
Where `gameid` is unique to each game.
53
55
54
56
The game directory can contain the following files:
55
- * `game.conf`
56
- Which contains:
57
- * name = <Human-readable full name of the game>
58
- e.g.
59
- name = Minetest
60
- * Optionally, game.conf can also contain:
61
- disallowed_mapgens = <comma-separated mapgens>
62
- e.g.
63
- disallowed_mapgens = v5,v6,flat
64
- These mapgens are removed from the list of mapgens for the game.
65
- * minetest.conf
66
- Used to set default settings when running this game.
67
- * settingtypes.txt
68
- In the same format as the one in builtin.
69
- This settingtypes.txt will be parsed by the menu and the settings will be
70
- displayed in the "Games" category in the advanced settings tab.
71
- * If the subgame contains a folder called `textures` the server will load it
72
- as a texturepack, overriding mod textures.
73
- Any server texturepack will override mod textures and the game texturepack.
57
+
58
+ * `game.conf`, which contains:
59
+ * `name = <Human-readable full name of the game>` e.g. `name = Minetest`
60
+ * Optionally, game.conf can also contain
61
+ `disallowed_mapgens = <comma-separated mapgens>`
62
+ e.g. `disallowed_mapgens = v5,v6,flat`
63
+ These mapgens are removed from the list of mapgens for the game.
64
+ * `minetest.conf`:
65
+ Used to set default settings when running this game.
66
+ * `settingtypes.txt`:
67
+ In the same format as the one in builtin.
68
+ This settingtypes.txt will be parsed by the menu and the settings will be
69
+ displayed in the "Games" category in the advanced settings tab.
70
+ * If the subgame contains a folder called `textures` the server will load it
71
+ as a texturepack, overriding mod textures.
72
+ Any server texturepack will override mod textures and the game texturepack.
74
73
75
74
### Menu images
76
75
@@ -555,6 +554,7 @@ stretched to contain exactly 256 pixels (after arranging the pixels
555
554
to one line). The indexing starts from 0.
556
555
557
556
Examples:
557
+
558
558
* 16x16 palette, index = 0: the top left corner
559
559
* 16x16 palette, index = 4: the fifth pixel in the first row
560
560
* 16x16 palette, index = 16: the pixel below the top left corner
@@ -579,6 +579,7 @@ When registering a node, set the item definition's `palette` field to
579
579
a texture. You can also use texture modifiers.
580
580
The node's color depends on its `param2`, so you also must set an
581
581
appropriate `drawtype`:
582
+
582
583
* `drawtype = "color"` for nodes which use their full `param2` for
583
584
palette indexing. These nodes can have 256 different colors.
584
585
The palette should contain 256 pixels.
@@ -621,6 +622,7 @@ when a player digs or places a colored node.
621
622
You can disable this feature by setting the `drop` field of the node
622
623
to itself (without metadata).
623
624
To transfer the color to a special drop, you need a drop table.
625
+
624
626
Example:
625
627
626
628
minetest.register_node("mod:stone", {
@@ -2419,6 +2421,7 @@ The file should be a text file, with the following format:
2419
2421
2420
2422
### Escapes
2421
2423
Strings that need to be translated can contain several escapes, preceded by `@`.
2424
+
2422
2425
* `@@` acts as a literal `@`.
2423
2426
* `@n`, where `n` is a digit between 1 and 9, is an argument for the translated string that will be inlined
2424
2427
when translation. Due to how translations are implemented, the original translation string **must** have
0 commit comments