From 475f85fc91b56b4626ddad105bb11f1d1fd913fd Mon Sep 17 00:00:00 2001 From: Gregor Parzefall <82708541+grorp@users.noreply.github.com> Date: Wed, 21 Dec 2022 13:29:43 +0100 Subject: [PATCH] Document the gain of auto-selected dig sounds --- doc/lua_api.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ba6ff75f3..6f2f6c307 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -981,7 +981,7 @@ These sound files are played back by the engine if provided. * `player_falling_damage`: Played when the local player takes damage by falling (gain = 0.5) * `player_jump`: Played when the local player jumps - * `default_dig_`: Default node digging sound + * `default_dig_`: Default node digging sound (gain = 0.5) (see node sound definition for details) Registered definitions @@ -8438,7 +8438,7 @@ Used by `minetest.register_node`. dig = or "__group", -- While digging node. -- If `"__group"`, then the sound will be - -- `default_dig_`, where `` is the + -- `{name = "default_dig_", gain = 0.5}` , where `` is the -- name of the item's digging group with the fastest digging time. -- In case of a tie, one of the sounds will be played (but we -- cannot predict which one) -- 2.44.0