2015-06-20 20:58:56 +02:00
|
|
|
soundset MOD for MINETEST
|
|
|
|
========================
|
|
|
|
|
|
|
|
by Mg (@LeMagnesium) and @crabman77
|
|
|
|
|
|
|
|
YOUR mod can use THIS mod to have a volume that's adjustable by the player(s)
|
|
|
|
|
2016-02-25 15:26:57 +01:00
|
|
|
EXAMPLE
|
2015-06-20 20:58:56 +02:00
|
|
|
|
|
|
|
minetest.sound_play("music_file", {to_player=player:get_player_name(),gain=sounds.get_gain(player:get_player_name(), "music")})
|
|
|
|
|
|
|
|
OR
|
|
|
|
|
|
|
|
minetest.sound_play("mob_sound", {to_player=player:get_player_name(),gain=sounds.get_gain(player:get_player_name(), "mobs")})
|
|
|
|
|
|
|
|
OR
|
|
|
|
|
|
|
|
minetest.sound_play("wind_sound", {to_player=player:get_player_name(),gain=sounds.get_gain(player:get_player_name(), "ambience")})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandchat
|
|
|
|
|
|
|
|
/soundset : display menu
|
|
|
|
|
|
|
|
/soundsetg : display player config
|
|
|
|
|
|
|
|
/soundsets <music|ambience|mobs|other> <number> : set volume
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-25 15:26:57 +01:00
|
|
|
Licenses images:
|
|
|
|
Author : Obani CC-BY
|
2015-06-20 20:58:56 +02:00
|
|
|
|
|
|
|
0.1 - Initial Release
|
|
|
|
|
|
|
|
0.2 - change default volume to 50, add serialise|deserialise to read|write config file
|
|
|
|
|
|
|
|
0.3 - add menu setting and button for unified_inventory and chatcommand to display menu
|