From: Perttu Ahola Date: Sat, 16 Jun 2012 20:42:04 +0000 (+0300) Subject: Mention node drawtypes in lua_api.txt X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d159591b9a01eb4385276497ba8c5fa4b30ab7de;p=zefram%2Fminetest%2Fminetest_engine.git Mention node drawtypes in lua_api.txt --- diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6f2d0e03..28042fa8 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