add wool sound
This commit is contained in:
parent
3d961d39a8
commit
836d1d9122
19
nodes.lua
19
nodes.lua
@ -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
BIN
sounds/wool.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user