Skip to content
Snippets Groups Projects
Commit 836d1d91 authored by Milan's avatar Milan
Browse files

add wool sound

parent 3d961d39
No related branches found
No related tags found
No related merge requests found
......@@ -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
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment