diff options
author | sfan5 <sfan5@live.de> | 2022-09-11 21:16:17 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-09-30 14:02:14 +0200 |
commit | 525fc3833c40dcca478719533a87bc7b5e285e4e (patch) | |
tree | e052ace4266381dbb3f7d8b8591a9d7d66ea6915 /doc/lua_api.txt | |
parent | bbdb1929c61a7cf851b498f34154ac0f9528fbb4 (diff) | |
download | minetest-525fc3833c40dcca478719533a87bc7b5e285e4e.tar.xz |
Implement tool use sounds
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 10c624033..e253af30e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -8027,6 +8027,12 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and eat = <SimpleSoundSpec>, -- When item is eaten with `minetest.do_item_eat` + + punch_use = <SimpleSoundSpec>, + -- When item is used with the 'punch/mine' key pointing at a node or entity + + punch_use_air = <SimpleSoundSpec>, + -- When item is used with the 'punch/mine' key pointing at nothing (air) }, on_place = function(itemstack, placer, pointed_thing), |