summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-12-07 07:26:12 +0100
committerest31 <MTest31@outlook.com>2015-12-07 07:27:51 +0100
commit9a5a538e8d1981fb3c2dd69ca3d37e4f9c426cf5 (patch)
tree49fe86ce6f8700989e52dd58ccd868820c8e041f /doc
parent49073ba2c34dfd8e286865ed2d108a4ec1eb3e3c (diff)
downloadminetest-9a5a538e8d1981fb3c2dd69ca3d37e4f9c426cf5.tar.gz
minetest-9a5a538e8d1981fb3c2dd69ca3d37e4f9c426cf5.tar.bz2
minetest-9a5a538e8d1981fb3c2dd69ca3d37e4f9c426cf5.zip
lua_api.txt: add blank lines before * lists
If rendered as markdown, lists need a blank line before them so that they are recognized as such.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 98442f395..56dc84d24 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1305,10 +1305,12 @@ mentioned in "Nodes". However, it is possible to insert extra data into a
node. It is called "node metadata"; See "`NodeMetaRef`".
Metadata contains two things:
+
* A key-value store
* An inventory
Some of the values in the key-value store are handled specially:
+
* `formspec`: Defines a right-click inventory menu. See "Formspec".
* `infotext`: Text shown on the screen when the node is pointed at
@@ -2938,6 +2940,7 @@ core.CONTENT_IGNORE (ID for "ignore" nodes)
Inside of `on_generated()` callbacks, it is possible to retrieve the same VoxelManip object used by the
core's Map Generator (commonly abbreviated Mapgen). Most of the rules previously described still apply
but with a few differences:
+
* The Mapgen VoxelManip object is retrieved using: `minetest.get_mapgen_object("voxelmanip")`
* This VoxelManip object already has the region of map just generated loaded into it; it's not necessary
to call `VoxelManip:read_from_map()` before using a Mapgen VoxelManip.