From d159591b9a01eb4385276497ba8c5fa4b30ab7de Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 16 Jun 2012 23:42:04 +0300 Subject: [PATCH] Mention node drawtypes in lua_api.txt --- doc/lua_api.txt | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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) { , - 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 -- 2.25.1