Add paper sounds

This commit is contained in:
Wuzzy 2021-10-02 19:10:18 +02:00
parent 68ce4b2b45
commit 39ed4b3a3d
7 changed files with 10 additions and 4 deletions

View File

@ -36,7 +36,7 @@ See the GNU Lesser General Public License for more details.
http://www.gnu.org/licenses/lgpl-2.1.html
Multimedia License (textures and models)
Multimedia License (textures, sounds and models)
----------------------------------------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
@ -84,6 +84,8 @@ Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
by Toby109tt
modified by Wuzzy
All other files also fall under the same license.
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose, even commercially.

View File

@ -36,9 +36,8 @@ local box_colors = {
{ "violet", S("Violet Gift Box"), false},
}
local sounds, gui_bg
local gui_bg
if minetest.get_modpath("default") then
sounds = default.node_sound_dirt_defaults()
gui_bg = default.gui_bg .. default.gui_bg_img
else
gui_bg = ""
@ -58,7 +57,12 @@ for i, colortab in ipairs( box_colors ) do
sunlight_propagates = true,
is_ground_content = false,
groups = { choppy = 2, oddly_breakable_by_hand = 2, flammable = 1 },
sounds = sounds,
sounds = {
footstep = {name="giftbox_step", gain=0.2},
place = {name="giftbox_step", gain=0.6},
dig = {name="giftbox_dig", gain=0.2},
dug = {name="giftbox_dug", gain=0.4},
},
paramtype2 = "facedir",
selection_box = {

BIN
sounds/giftbox_dig.1.ogg Normal file

Binary file not shown.

BIN
sounds/giftbox_dig.2.ogg Normal file

Binary file not shown.

BIN
sounds/giftbox_dig.3.ogg Normal file

Binary file not shown.

BIN
sounds/giftbox_dug.1.ogg Normal file

Binary file not shown.

BIN
sounds/giftbox_step.1.ogg Normal file

Binary file not shown.