aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Parzefall <82708541+grorp@users.noreply.github.com>2022-12-21 13:29:43 +0100
committerGitHub <noreply@github.com>2022-12-21 13:29:43 +0100
commit475f85fc91b56b4626ddad105bb11f1d1fd913fd (patch)
treefc865a7576d3796a5dcdfef61ba57ed3dcb6aadb
parent0fc97a1483961e0bc617ca67a348dcb2cbeb6bc0 (diff)
downloadminetest-475f85fc91b56b4626ddad105bb11f1d1fd913fd.tar.xz
Document the gain of auto-selected dig sounds
-rw-r--r--doc/lua_api.txt4
1 files 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_<groupname>`: Default node digging sound
+ * `default_dig_<groupname>`: 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 = <SimpleSoundSpec> or "__group",
-- While digging node.
-- If `"__group"`, then the sound will be
- -- `default_dig_<groupname>`, where `<groupname>` is the
+ -- `{name = "default_dig_<groupname>", gain = 0.5}` , where `<groupname>` 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)