Skip to content

Commit 6cfd699

Browse files
p-ouelletterubenwardy
authored andcommittedMar 5, 2018
Fix bad markdown in lua_api.txt
1 parent 540e07e commit 6cfd699

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed
 

Diff for: ‎doc/lua_api.txt

+24-21
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,29 @@ Paths
4747
Games
4848
-----
4949
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+
5254
Where `gameid` is unique to each game.
5355

5456
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.
7473

7574
### Menu images
7675

@@ -555,6 +554,7 @@ stretched to contain exactly 256 pixels (after arranging the pixels
555554
to one line). The indexing starts from 0.
556555

557556
Examples:
557+
558558
* 16x16 palette, index = 0: the top left corner
559559
* 16x16 palette, index = 4: the fifth pixel in the first row
560560
* 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
579579
a texture. You can also use texture modifiers.
580580
The node's color depends on its `param2`, so you also must set an
581581
appropriate `drawtype`:
582+
582583
* `drawtype = "color"` for nodes which use their full `param2` for
583584
palette indexing. These nodes can have 256 different colors.
584585
The palette should contain 256 pixels.
@@ -621,6 +622,7 @@ when a player digs or places a colored node.
621622
You can disable this feature by setting the `drop` field of the node
622623
to itself (without metadata).
623624
To transfer the color to a special drop, you need a drop table.
625+
624626
Example:
625627

626628
minetest.register_node("mod:stone", {
@@ -2419,6 +2421,7 @@ The file should be a text file, with the following format:
24192421

24202422
### Escapes
24212423
Strings that need to be translated can contain several escapes, preceded by `@`.
2424+
24222425
* `@@` acts as a literal `@`.
24232426
* `@n`, where `n` is a digit between 1 and 9, is an argument for the translated string that will be inlined
24242427
when translation. Due to how translations are implemented, the original translation string **must** have

0 commit comments

Comments
 (0)
Please sign in to comment.