diff --git a/nodes.lua b/nodes.lua index d954c32c3ef90519695f7aa1921aa4611d346ae4..1bdae54512371119490c87906296587506b8b5fe 100644 --- a/nodes.lua +++ b/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 diff --git a/sounds/wool.ogg b/sounds/wool.ogg new file mode 100644 index 0000000000000000000000000000000000000000..ff3585de2ad597bffbc68c72fd5d906e94a42282 Binary files /dev/null and b/sounds/wool.ogg differ