diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 04:31:38 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 04:32:31 +0200 |
commit | 74780134f2825427bb0db3b370642d3512af5ecd (patch) | |
tree | c17042795558c76f60c961d0b2a60e191f86017a | |
parent | 93219e3b9d2eae11a447556dfe837706baeff22a (diff) | |
download | minetest-74780134f2825427bb0db3b370642d3512af5ecd.tar.gz minetest-74780134f2825427bb0db3b370642d3512af5ecd.tar.bz2 minetest-74780134f2825427bb0db3b370642d3512af5ecd.zip |
Update doc/lua_api.txt
-rw-r--r-- | doc/lua_api.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 60bc49304..53857ee3c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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 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 ------ Node (register_node): @@ -672,6 +679,10 @@ Node definition (register_node) selection_box = {type="regular"}, legacy_facedir_simple = 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) |