Default: Add tool breaking sounds

These will automatically play when a tool breaks.
This commit is contained in:
Auke Kok 2016-01-22 22:04:38 -08:00 committed by paramat
parent 022d22ceca
commit 68192a17e9
5 changed files with 51 additions and 5 deletions

View File

@ -247,3 +247,5 @@ Metal sounds:
default_place_node_metal.*.ogg - Ogrebane - CC0 default_place_node_metal.*.ogg - Ogrebane - CC0
- http://opengameart.org/content/wood-and-metal-sound-effects-volume-2 - 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/

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -33,7 +33,9 @@ minetest.register_tool("default:pick_wood", {
damage_groups = {fleshy=2}, damage_groups = {fleshy=2},
}, },
groups = {flammable = 2}, groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:pick_stone", { minetest.register_tool("default:pick_stone", {
description = "Stone Pickaxe", description = "Stone Pickaxe",
inventory_image = "default_tool_stonepick.png", inventory_image = "default_tool_stonepick.png",
@ -45,7 +47,9 @@ minetest.register_tool("default:pick_stone", {
}, },
damage_groups = {fleshy=3}, damage_groups = {fleshy=3},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:pick_steel", { minetest.register_tool("default:pick_steel", {
description = "Steel Pickaxe", description = "Steel Pickaxe",
inventory_image = "default_tool_steelpick.png", inventory_image = "default_tool_steelpick.png",
@ -57,7 +61,9 @@ minetest.register_tool("default:pick_steel", {
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:pick_bronze", { minetest.register_tool("default:pick_bronze", {
description = "Bronze Pickaxe", description = "Bronze Pickaxe",
inventory_image = "default_tool_bronzepick.png", inventory_image = "default_tool_bronzepick.png",
@ -69,7 +75,9 @@ minetest.register_tool("default:pick_bronze", {
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:pick_mese", { minetest.register_tool("default:pick_mese", {
description = "Mese Pickaxe", description = "Mese Pickaxe",
inventory_image = "default_tool_mesepick.png", inventory_image = "default_tool_mesepick.png",
@ -81,7 +89,9 @@ minetest.register_tool("default:pick_mese", {
}, },
damage_groups = {fleshy=5}, damage_groups = {fleshy=5},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:pick_diamond", { minetest.register_tool("default:pick_diamond", {
description = "Diamond Pickaxe", description = "Diamond Pickaxe",
inventory_image = "default_tool_diamondpick.png", inventory_image = "default_tool_diamondpick.png",
@ -93,6 +103,7 @@ minetest.register_tool("default:pick_diamond", {
}, },
damage_groups = {fleshy=5}, damage_groups = {fleshy=5},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
-- --
@ -112,7 +123,9 @@ minetest.register_tool("default:shovel_wood", {
damage_groups = {fleshy=2}, damage_groups = {fleshy=2},
}, },
groups = {flammable = 2}, groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:shovel_stone", { minetest.register_tool("default:shovel_stone", {
description = "Stone Shovel", description = "Stone Shovel",
inventory_image = "default_tool_stoneshovel.png", inventory_image = "default_tool_stoneshovel.png",
@ -125,7 +138,9 @@ minetest.register_tool("default:shovel_stone", {
}, },
damage_groups = {fleshy=2}, damage_groups = {fleshy=2},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:shovel_steel", { minetest.register_tool("default:shovel_steel", {
description = "Steel Shovel", description = "Steel Shovel",
inventory_image = "default_tool_steelshovel.png", inventory_image = "default_tool_steelshovel.png",
@ -138,7 +153,9 @@ minetest.register_tool("default:shovel_steel", {
}, },
damage_groups = {fleshy=3}, damage_groups = {fleshy=3},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:shovel_bronze", { minetest.register_tool("default:shovel_bronze", {
description = "Bronze Shovel", description = "Bronze Shovel",
inventory_image = "default_tool_bronzeshovel.png", inventory_image = "default_tool_bronzeshovel.png",
@ -151,7 +168,9 @@ minetest.register_tool("default:shovel_bronze", {
}, },
damage_groups = {fleshy=3}, damage_groups = {fleshy=3},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:shovel_mese", { minetest.register_tool("default:shovel_mese", {
description = "Mese Shovel", description = "Mese Shovel",
inventory_image = "default_tool_meseshovel.png", inventory_image = "default_tool_meseshovel.png",
@ -164,7 +183,9 @@ minetest.register_tool("default:shovel_mese", {
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:shovel_diamond", { minetest.register_tool("default:shovel_diamond", {
description = "Diamond Shovel", description = "Diamond Shovel",
inventory_image = "default_tool_diamondshovel.png", inventory_image = "default_tool_diamondshovel.png",
@ -177,6 +198,7 @@ minetest.register_tool("default:shovel_diamond", {
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
-- --
@ -195,7 +217,9 @@ minetest.register_tool("default:axe_wood", {
damage_groups = {fleshy=2}, damage_groups = {fleshy=2},
}, },
groups = {flammable = 2}, groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:axe_stone", { minetest.register_tool("default:axe_stone", {
description = "Stone Axe", description = "Stone Axe",
inventory_image = "default_tool_stoneaxe.png", inventory_image = "default_tool_stoneaxe.png",
@ -207,7 +231,9 @@ minetest.register_tool("default:axe_stone", {
}, },
damage_groups = {fleshy=3}, damage_groups = {fleshy=3},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:axe_steel", { minetest.register_tool("default:axe_steel", {
description = "Steel Axe", description = "Steel Axe",
inventory_image = "default_tool_steelaxe.png", inventory_image = "default_tool_steelaxe.png",
@ -219,7 +245,9 @@ minetest.register_tool("default:axe_steel", {
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:axe_bronze", { minetest.register_tool("default:axe_bronze", {
description = "Bronze Axe", description = "Bronze Axe",
inventory_image = "default_tool_bronzeaxe.png", inventory_image = "default_tool_bronzeaxe.png",
@ -231,7 +259,9 @@ minetest.register_tool("default:axe_bronze", {
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:axe_mese", { minetest.register_tool("default:axe_mese", {
description = "Mese Axe", description = "Mese Axe",
inventory_image = "default_tool_meseaxe.png", inventory_image = "default_tool_meseaxe.png",
@ -243,7 +273,9 @@ minetest.register_tool("default:axe_mese", {
}, },
damage_groups = {fleshy=6}, damage_groups = {fleshy=6},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:axe_diamond", { minetest.register_tool("default:axe_diamond", {
description = "Diamond Axe", description = "Diamond Axe",
inventory_image = "default_tool_diamondaxe.png", inventory_image = "default_tool_diamondaxe.png",
@ -255,6 +287,7 @@ minetest.register_tool("default:axe_diamond", {
}, },
damage_groups = {fleshy=7}, damage_groups = {fleshy=7},
}, },
sound = {breaks = "default_tool_breaks"},
}) })
-- --
@ -273,7 +306,9 @@ minetest.register_tool("default:sword_wood", {
damage_groups = {fleshy=2}, damage_groups = {fleshy=2},
}, },
groups = {flammable = 2}, groups = {flammable = 2},
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:sword_stone", { minetest.register_tool("default:sword_stone", {
description = "Stone Sword", description = "Stone Sword",
inventory_image = "default_tool_stonesword.png", 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}, snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
} },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:sword_steel", { minetest.register_tool("default:sword_steel", {
description = "Steel Sword", description = "Steel Sword",
inventory_image = "default_tool_steelsword.png", 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}, snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
}, },
damage_groups = {fleshy=6}, damage_groups = {fleshy=6},
} },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:sword_bronze", { minetest.register_tool("default:sword_bronze", {
description = "Bronze Sword", description = "Bronze Sword",
inventory_image = "default_tool_bronzesword.png", 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}, snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=40, maxlevel=2},
}, },
damage_groups = {fleshy=6}, damage_groups = {fleshy=6},
} },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:sword_mese", { minetest.register_tool("default:sword_mese", {
description = "Mese Sword", description = "Mese Sword",
inventory_image = "default_tool_mesesword.png", 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}, snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=30, maxlevel=3},
}, },
damage_groups = {fleshy=7}, damage_groups = {fleshy=7},
} },
sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("default:sword_diamond", { minetest.register_tool("default:sword_diamond", {
description = "Diamond Sword", description = "Diamond Sword",
inventory_image = "default_tool_diamondsword.png", 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}, snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
}, },
damage_groups = {fleshy=8}, damage_groups = {fleshy=8},
} },
sound = {breaks = "default_tool_breaks"},
}) })