add wool sound

master
Milan* 2017-09-18 17:28:28 +02:00
parent 3d961d39a8
commit 836d1d9122
2 changed files with 19 additions and 0 deletions

View File

@ -392,3 +392,22 @@ minetest.register_entity("illuna:rulehint", {
physical = false,
textures = {"illuna_rulehint.png"},
})
function illuna.node_sound_wool(table)
table = table or {}
table.footstep = table.footstep or
{name = "wool", gain = 1.0}
table.dug = table.dug or
{name = "default_dug_node", gain = 0.25}
table.place = table.place or
{name = "default_place_node_hard", gain = 1.0}
return table
end
local name = {"red", "green", "white", "black", "blue", "brown", "cyan",
"grey", "dark_green", "dark_grey", "magenta", "orange", "pink",
"red", "violet", "yellow"}
for i = 1, 16 do
local name = name[i]
minetest.override_item("wool:"..name, {sounds = illuna.node_sound_wool()})
end

BIN
sounds/wool.ogg Normal file

Binary file not shown.