1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Implement tool use sounds

This commit is contained in:
sfan5
2022-09-11 21:16:17 +02:00
parent bbdb1929c6
commit 525fc3833c
6 changed files with 66 additions and 2 deletions

View File

@@ -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),