mirror of
https://github.com/minetest/minetest.git
synced 2024-11-14 03:33:44 +01:00
Update doc/lua_api.txt
This commit is contained in:
parent
93219e3b9d
commit
74780134f2
@ -160,6 +160,13 @@ eg. {name="default:apple", count=1, wear=0, metadata=""}
|
|||||||
Any time an item must be passed to a function, it can be an
|
Any time an item must be passed to a function, it can be an
|
||||||
ItemStack (see below), an itemstring or a table in the above format.
|
ItemStack (see below), an itemstring or a table in the above format.
|
||||||
|
|
||||||
|
SimpleSoundSpec:
|
||||||
|
eg. ""
|
||||||
|
eg. "default_place_node"
|
||||||
|
eg. {}
|
||||||
|
eg. {name="default_place_node"}
|
||||||
|
eg. {name="default_place_node", gain=1.0}
|
||||||
|
|
||||||
Items
|
Items
|
||||||
------
|
------
|
||||||
Node (register_node):
|
Node (register_node):
|
||||||
@ -672,6 +679,10 @@ Node definition (register_node)
|
|||||||
selection_box = {type="regular"},
|
selection_box = {type="regular"},
|
||||||
legacy_facedir_simple = false, -- Support maps made in and before January 2012
|
legacy_facedir_simple = false, -- Support maps made in and before January 2012
|
||||||
legacy_wallmounted = false, -- Support maps made in and before January 2012
|
legacy_wallmounted = false, -- Support maps made in and before January 2012
|
||||||
|
sounds = {
|
||||||
|
footstep = <SimpleSoundSpec>,
|
||||||
|
dug = <SimpleSoundSpec>,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
Recipe: (register_craft)
|
Recipe: (register_craft)
|
||||||
|
Loading…
Reference in New Issue
Block a user