summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-16 23:42:04 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-16 23:42:04 +0300
commitd159591b9a01eb4385276497ba8c5fa4b30ab7de (patch)
tree16aaebe69158c86db91dca955273eacd343a71da /doc/lua_api.txt
parent57550b2b3d5ce5a8a7616c08b6517dc6fd8e1075 (diff)
downloadminetest-d159591b9a01eb4385276497ba8c5fa4b30ab7de.tar.gz
minetest-d159591b9a01eb4385276497ba8c5fa4b30ab7de.tar.bz2
minetest-d159591b9a01eb4385276497ba8c5fa4b30ab7de.zip
Mention node drawtypes in lua_api.txt
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 6f2d0e033..28042fa81 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -280,6 +280,26 @@ param2 is reserved for the engine when any of these are used:
Nodes can also contain extra data. See "Node Metadata".
+Node drawtypes
+---------------
+There are a bunch of different looking node types. These are mostly just
+copied from Minetest 0.3; more may be made in the future.
+
+Look for examples in games/minimal or games/minetest_game.
+
+- normal
+- airlike
+- liquid
+- flowingliquid
+- glasslike
+- allfaces
+- allfaces_optional
+- torchlike
+- signlike
+- plantlike
+- fencelike
+- raillike
+
Representations of simple things
--------------------------------
Position/vector:
@@ -1139,7 +1159,7 @@ Node definition (register_node)
{
<all fields allowed in item definitions>,
- drawtype = "normal",
+ drawtype = "normal", -- See "Node drawtypes"
visual_scale = 1.0,
tiles = {tile definition 1, def2, def3, def4, def5, def6},
^ List can be shortened to needed length