forked from Mirrorlandia_minetest/minetest
Describe node definition fields better in lua_api.txt
This commit is contained in:
parent
2c027b03db
commit
9af9d8f5d0
@ -1280,30 +1280,29 @@ Node definition (register_node)
|
|||||||
drawtype = "normal", -- See "Node drawtypes"
|
drawtype = "normal", -- See "Node drawtypes"
|
||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {tile definition 1, def2, def3, def4, def5, def6},
|
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
|
^ List can be shortened to needed length
|
||||||
^ Old field name: tile_images
|
|
||||||
special_tiles = {tile definition 1, Tile definition 2},
|
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
|
^ List can be shortened to needed length
|
||||||
^ Old field name: special_materials
|
|
||||||
alpha = 255,
|
alpha = 255,
|
||||||
post_effect_color = {a=0, r=0, g=0, b=0},
|
post_effect_color = {a=0, r=0, g=0, b=0}, -- If player is inside node
|
||||||
paramtype = "none",
|
paramtype = "none", -- See "Nodes"
|
||||||
paramtype2 = "none",
|
paramtype2 = "none", -- See "Nodes"
|
||||||
is_ground_content = false,
|
is_ground_content = false, -- Currently not used for anything
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false, -- If true, sunlight will go infinitely through this
|
||||||
walkable = true,
|
walkable = true, -- If true, objects collide with node
|
||||||
pointable = true,
|
pointable = true, -- If true, can be pointed at
|
||||||
diggable = true,
|
diggable = true, -- If false, can never be dug
|
||||||
climbable = false,
|
climbable = false, -- If true, can be climbed on (ladder)
|
||||||
buildable_to = false,
|
buildable_to = false, -- If true, placed nodes can replace this node
|
||||||
drop = "",
|
drop = "", -- alternatively drop = { max_items = ..., items = { ... } }
|
||||||
-- alternatively drop = { max_items = ..., items = { ... } }
|
liquidtype = "none", -- "none"/"source"/"flowing"
|
||||||
liquidtype = "none",
|
liquid_alternative_flowing = "", -- Flowing version of source liquid
|
||||||
liquid_alternative_flowing = "",
|
liquid_alternative_source = "", -- Source version of flowing liquid
|
||||||
liquid_alternative_source = "",
|
liquid_viscosity = 0, -- Higher viscosity = slower flow (max. 7)
|
||||||
liquid_viscosity = 0,
|
light_source = 0, -- Amount of light emitted by node
|
||||||
light_source = 0,
|
damage_per_second = 0, -- If player is inside node, this damage is caused
|
||||||
damage_per_second = 0,
|
|
||||||
node_box = {type="regular"}, -- See "Node boxes"
|
node_box = {type="regular"}, -- See "Node boxes"
|
||||||
selection_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
|
legacy_facedir_simple = false, -- Support maps made in and before January 2012
|
||||||
|
Loading…
Reference in New Issue
Block a user