Default: Add tool breaking sounds
authorAuke Kok <sofar@foo-projects.org>
Sat, 23 Jan 2016 06:04:38 +0000 (22:04 -0800)
committerparamat <mat.gregory@virginmedia.com>
Fri, 18 Nov 2016 08:08:59 +0000 (08:08 +0000)
These will automatically play when a tool breaks.

mods/default/README.txt
mods/default/sounds/default_tool_breaks.1.ogg [new file with mode: 0644]
mods/default/sounds/default_tool_breaks.2.ogg [new file with mode: 0644]
mods/default/sounds/default_tool_breaks.3.ogg [new file with mode: 0644]
mods/default/tools.lua

index d7fede087375966fda1f771c0f30a920d3cf8285..842133689f79d780fcee41c0eb8a72b08bbc059b 100644 (file)
@@ -247,3 +247,5 @@ Metal sounds:
   default_place_node_metal.*.ogg - Ogrebane - CC0
   - http://opengameart.org/content/wood-and-metal-sound-effects-volume-2
 
+Tool breaking sounds added by sofar: CC-BY-3.0
+  default_tool_breaks.* - http://www.freesound.org/people/HerbertBoland/sounds/33206/
diff --git a/mods/default/sounds/default_tool_breaks.1.ogg b/mods/default/sounds/default_tool_breaks.1.ogg
new file mode 100644 (file)
index 0000000..2a571ae
Binary files /dev/null and b/mods/default/sounds/default_tool_breaks.1.ogg differ
diff --git a/mods/default/sounds/default_tool_breaks.2.ogg b/mods/default/sounds/default_tool_breaks.2.ogg
new file mode 100644 (file)
index 0000000..1789352
Binary files /dev/null and b/mods/default/sounds/default_tool_breaks.2.ogg differ
diff --git a/mods/default/sounds/default_tool_breaks.3.ogg b/mods/default/sounds/default_tool_breaks.3.ogg
new file mode 100644 (file)
index 0000000..a99c4b7
Binary files /dev/null and b/mods/default/sounds/default_tool_breaks.3.ogg differ
index d4dd9739c765c326b506ca40e2f034b647eca3bf..5a39615ce629c637bd18679ba5d38d24928f18e4 100644 (file)
@@ -33,7 +33,9 @@ minetest.register_tool("default:pick_wood", {
                damage_groups = {fleshy=2},
        },
        groups = {flammable = 2},
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:pick_stone", {
        description = "Stone Pickaxe",
        inventory_image = "default_tool_stonepick.png",
@@ -45,7 +47,9 @@ minetest.register_tool("default:pick_stone", {
                },
                damage_groups = {fleshy=3},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:pick_steel", {
        description = "Steel Pickaxe",
        inventory_image = "default_tool_steelpick.png",
@@ -57,7 +61,9 @@ minetest.register_tool("default:pick_steel", {
                },
                damage_groups = {fleshy=4},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:pick_bronze", {
        description = "Bronze Pickaxe",
        inventory_image = "default_tool_bronzepick.png",
@@ -69,7 +75,9 @@ minetest.register_tool("default:pick_bronze", {
                },
                damage_groups = {fleshy=4},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:pick_mese", {
        description = "Mese Pickaxe",
        inventory_image = "default_tool_mesepick.png",
@@ -81,7 +89,9 @@ minetest.register_tool("default:pick_mese", {
                },
                damage_groups = {fleshy=5},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:pick_diamond", {
        description = "Diamond Pickaxe",
        inventory_image = "default_tool_diamondpick.png",
@@ -93,6 +103,7 @@ minetest.register_tool("default:pick_diamond", {
                },
                damage_groups = {fleshy=5},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
 
 --
@@ -112,7 +123,9 @@ minetest.register_tool("default:shovel_wood", {
                damage_groups = {fleshy=2},
        },
        groups = {flammable = 2},
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:shovel_stone", {
        description = "Stone Shovel",
        inventory_image = "default_tool_stoneshovel.png",
@@ -125,7 +138,9 @@ minetest.register_tool("default:shovel_stone", {
                },
                damage_groups = {fleshy=2},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:shovel_steel", {
        description = "Steel Shovel",
        inventory_image = "default_tool_steelshovel.png",
@@ -138,7 +153,9 @@ minetest.register_tool("default:shovel_steel", {
                },
                damage_groups = {fleshy=3},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:shovel_bronze", {
        description = "Bronze Shovel",
        inventory_image = "default_tool_bronzeshovel.png",
@@ -151,7 +168,9 @@ minetest.register_tool("default:shovel_bronze", {
                },
                damage_groups = {fleshy=3},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:shovel_mese", {
        description = "Mese Shovel",
        inventory_image = "default_tool_meseshovel.png",
@@ -164,7 +183,9 @@ minetest.register_tool("default:shovel_mese", {
                },
                damage_groups = {fleshy=4},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:shovel_diamond", {
        description = "Diamond Shovel",
        inventory_image = "default_tool_diamondshovel.png",
@@ -177,6 +198,7 @@ minetest.register_tool("default:shovel_diamond", {
                },
                damage_groups = {fleshy=4},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
 
 --
@@ -195,7 +217,9 @@ minetest.register_tool("default:axe_wood", {
                damage_groups = {fleshy=2},
        },
        groups = {flammable = 2},
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:axe_stone", {
        description = "Stone Axe",
        inventory_image = "default_tool_stoneaxe.png",
@@ -207,7 +231,9 @@ minetest.register_tool("default:axe_stone", {
                },
                damage_groups = {fleshy=3},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:axe_steel", {
        description = "Steel Axe",
        inventory_image = "default_tool_steelaxe.png",
@@ -219,7 +245,9 @@ minetest.register_tool("default:axe_steel", {
                },
                damage_groups = {fleshy=4},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:axe_bronze", {
        description = "Bronze Axe",
        inventory_image = "default_tool_bronzeaxe.png",
@@ -231,7 +259,9 @@ minetest.register_tool("default:axe_bronze", {
                },
                damage_groups = {fleshy=4},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:axe_mese", {
        description = "Mese Axe",
        inventory_image = "default_tool_meseaxe.png",
@@ -243,7 +273,9 @@ minetest.register_tool("default:axe_mese", {
                },
                damage_groups = {fleshy=6},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:axe_diamond", {
        description = "Diamond Axe",
        inventory_image = "default_tool_diamondaxe.png",
@@ -255,6 +287,7 @@ minetest.register_tool("default:axe_diamond", {
                },
                damage_groups = {fleshy=7},
        },
+       sound = {breaks = "default_tool_breaks"},
 })
 
 --
@@ -273,7 +306,9 @@ minetest.register_tool("default:sword_wood", {
                damage_groups = {fleshy=2},
        },
        groups = {flammable = 2},
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:sword_stone", {
        description = "Stone Sword",
        inventory_image = "default_tool_stonesword.png",
@@ -284,8 +319,10 @@ minetest.register_tool("default:sword_stone", {
                        snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
                },
                damage_groups = {fleshy=4},
-       }
+       },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:sword_steel", {
        description = "Steel Sword",
        inventory_image = "default_tool_steelsword.png",
@@ -296,8 +333,10 @@ minetest.register_tool("default:sword_steel", {
                        snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
                },
                damage_groups = {fleshy=6},
-       }
+       },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:sword_bronze", {
        description = "Bronze Sword",
        inventory_image = "default_tool_bronzesword.png",
@@ -308,8 +347,10 @@ minetest.register_tool("default:sword_bronze", {
                        snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2},
                },
                damage_groups = {fleshy=6},
-       }
+       },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:sword_mese", {
        description = "Mese Sword",
        inventory_image = "default_tool_mesesword.png",
@@ -320,8 +361,10 @@ minetest.register_tool("default:sword_mese", {
                        snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=30, maxlevel=3},
                },
                damage_groups = {fleshy=7},
-       }
+       },
+       sound = {breaks = "default_tool_breaks"},
 })
+
 minetest.register_tool("default:sword_diamond", {
        description = "Diamond Sword",
        inventory_image = "default_tool_diamondsword.png",
@@ -332,5 +375,6 @@ minetest.register_tool("default:sword_diamond", {
                        snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
                },
                damage_groups = {fleshy=8},
-       }
+       },
+       sound = {breaks = "default_tool_breaks"},
 })