diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-23 20:17:44 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-23 20:17:44 +0300 |
commit | 9af9d8f5d003d87aeea269b88463e7c20cc7bda0 (patch) | |
tree | b3443c87bd284c130fc8b442015d62d1112ddb43 /doc | |
parent | 2c027b03db1446e13ee8a0791e37ec4eb6672a9d (diff) | |
download | minetest-9af9d8f5d003d87aeea269b88463e7c20cc7bda0.tar.gz minetest-9af9d8f5d003d87aeea269b88463e7c20cc7bda0.tar.bz2 minetest-9af9d8f5d003d87aeea269b88463e7c20cc7bda0.zip |
Describe node definition fields better in lua_api.txt
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 2157ca8a8..d0af5b4db 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1280,30 +1280,29 @@ Node definition (register_node) drawtype = "normal", -- See "Node drawtypes" visual_scale = 1.0, tiles = {tile definition 1, def2, def3, def4, def5, def6}, + ^ Textures of node; +Y, -Y, +X, -X, +Z, -Z (old field name: tile_images) ^ List can be shortened to needed length - ^ Old field name: tile_images special_tiles = {tile definition 1, Tile definition 2}, + ^ Special textures of node; used rarely (old field name: special_materials) ^ List can be shortened to needed length - ^ Old field name: special_materials alpha = 255, - post_effect_color = {a=0, r=0, g=0, b=0}, - paramtype = "none", - paramtype2 = "none", - is_ground_content = false, - sunlight_propagates = false, - walkable = true, - pointable = true, - diggable = true, - climbable = false, - buildable_to = false, - drop = "", - -- alternatively drop = { max_items = ..., items = { ... } } - liquidtype = "none", - liquid_alternative_flowing = "", - liquid_alternative_source = "", - liquid_viscosity = 0, - light_source = 0, - damage_per_second = 0, + post_effect_color = {a=0, r=0, g=0, b=0}, -- If player is inside node + paramtype = "none", -- See "Nodes" + paramtype2 = "none", -- See "Nodes" + is_ground_content = false, -- Currently not used for anything + sunlight_propagates = false, -- If true, sunlight will go infinitely through this + walkable = true, -- If true, objects collide with node + pointable = true, -- If true, can be pointed at + diggable = true, -- If false, can never be dug + climbable = false, -- If true, can be climbed on (ladder) + buildable_to = false, -- If true, placed nodes can replace this node + drop = "", -- alternatively drop = { max_items = ..., items = { ... } } + liquidtype = "none", -- "none"/"source"/"flowing" + liquid_alternative_flowing = "", -- Flowing version of source liquid + liquid_alternative_source = "", -- Source version of flowing liquid + liquid_viscosity = 0, -- Higher viscosity = slower flow (max. 7) + light_source = 0, -- Amount of light emitted by node + damage_per_second = 0, -- If player is inside node, this damage is caused node_box = {type="regular"}, -- See "Node boxes" selection_box = {type="regular"}, -- See "Node boxes" legacy_facedir_simple = false, -- Support maps made in and before January 2012 |