mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-12 19:20:27 +01:00
add various eating sounds
This commit is contained in:
parent
4a40eaf2b2
commit
e59144a33b
@ -119,6 +119,7 @@ minetest.register_craftitem("df_farming:cave_bread", {
|
|||||||
_doc_items_longdesc = df_farming.doc.cave_bread_desc,
|
_doc_items_longdesc = df_farming.doc.cave_bread_desc,
|
||||||
_doc_items_usagehelp = df_farming.doc.cave_bread_usage,
|
_doc_items_usagehelp = df_farming.doc.cave_bread_usage,
|
||||||
inventory_image = "dfcaverns_prepared_food13x16.png",
|
inventory_image = "dfcaverns_prepared_food13x16.png",
|
||||||
|
sound = {eat = {name = "df_farming_chomp_crunch", gain = 1.0}},
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
groups = {flammable = 2, food = 5},
|
groups = {flammable = 2, food = 5},
|
||||||
})
|
})
|
||||||
|
@ -11,6 +11,7 @@ local register_cooking_recipes = function(def)
|
|||||||
_doc_items_longdesc = df_farming.doc.simple_meal_desc,
|
_doc_items_longdesc = df_farming.doc.simple_meal_desc,
|
||||||
_doc_items_usagehelp = df_farming.doc.simple_meal_usage,
|
_doc_items_usagehelp = df_farming.doc.simple_meal_usage,
|
||||||
inventory_image = def.simple.image,
|
inventory_image = def.simple.image,
|
||||||
|
sound = def.simple.sound,
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
groups = {food = 4},
|
groups = {food = 4},
|
||||||
})
|
})
|
||||||
@ -19,6 +20,7 @@ local register_cooking_recipes = function(def)
|
|||||||
_doc_items_longdesc = df_farming.doc.medium_meal_desc,
|
_doc_items_longdesc = df_farming.doc.medium_meal_desc,
|
||||||
_doc_items_usagehelp = df_farming.doc.medium_meal_usage,
|
_doc_items_usagehelp = df_farming.doc.medium_meal_usage,
|
||||||
inventory_image = def.medium.image,
|
inventory_image = def.medium.image,
|
||||||
|
sound = def.medium.sound,
|
||||||
on_use = minetest.item_eat(6),
|
on_use = minetest.item_eat(6),
|
||||||
groups = {food = 6},
|
groups = {food = 6},
|
||||||
})
|
})
|
||||||
@ -27,6 +29,7 @@ local register_cooking_recipes = function(def)
|
|||||||
_doc_items_longdesc = df_farming.doc.complex_meal_desc,
|
_doc_items_longdesc = df_farming.doc.complex_meal_desc,
|
||||||
_doc_items_usagehelp = df_farming.doc.complex_meal_usage,
|
_doc_items_usagehelp = df_farming.doc.complex_meal_usage,
|
||||||
inventory_image = def.complex.image,
|
inventory_image = def.complex.image,
|
||||||
|
sound = def.complex.sound,
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
groups = {food = 8},
|
groups = {food = 8},
|
||||||
})
|
})
|
||||||
@ -63,65 +66,71 @@ end
|
|||||||
-- prefix =,
|
-- prefix =,
|
||||||
-- item =,
|
-- item =,
|
||||||
-- replacements =,
|
-- replacements =,
|
||||||
-- simple = {name = , image = },
|
-- simple = {name = , image = , sound = },
|
||||||
-- medium = {name = , image = },
|
-- medium = {name = , image = , sound = },
|
||||||
-- complex = {name = , image = },
|
-- complex = {name = , image = , sound = },
|
||||||
--}
|
--}
|
||||||
|
|
||||||
|
local chomp = {eat = {name = "df_farming_chomp_crunch", gain = 1.0}}
|
||||||
|
local crisp = {eat = {name = "df_farming_crisp_chew", gain = 1.0}}
|
||||||
|
local gummy = {eat = {name = "df_farming_gummy_chew", gain = 1.0}}
|
||||||
|
local mushy = {eat = {name = "df_farming_mushy_chew", gain = 1.0}}
|
||||||
|
local soft = {eat = {name = "df_farming_soft_chew", gain = 1.0}}
|
||||||
|
|
||||||
register_cooking_recipes({prefix="df_farming", item="cave_flour",
|
register_cooking_recipes({prefix="df_farming", item="cave_flour",
|
||||||
simple = {name=S("Cave Wheat Flour Biscuit"), image="dfcaverns_prepared_food08x16.png"},
|
simple = {name=S("Cave Wheat Flour Biscuit"), image="dfcaverns_prepared_food08x16.png", sound = crisp},
|
||||||
medium = {name=S("Cave Wheat Flour Bun"), image="dfcaverns_prepared_food11x16.png"},
|
medium = {name=S("Cave Wheat Flour Bun"), image="dfcaverns_prepared_food11x16.png", sound = mushy},
|
||||||
complex = {name=S("Cave Wheat Flour Pancake"), image="dfcaverns_prepared_food07x16.png"},
|
complex = {name=S("Cave Wheat Flour Pancake"), image="dfcaverns_prepared_food07x16.png", sound = mushy},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="cave_wheat_seed",
|
register_cooking_recipes({prefix="df_farming", item="cave_wheat_seed",
|
||||||
simple = {name=S("Cave Wheat Seed Loaf"), image="dfcaverns_prepared_food17x16.png"},
|
simple = {name=S("Cave Wheat Seed Loaf"), image="dfcaverns_prepared_food17x16.png", sound = crisp},
|
||||||
medium = {name=S("Cave Wheat Seed Puffs"), image="dfcaverns_prepared_food33x16.png"},
|
medium = {name=S("Cave Wheat Seed Puffs"), image="dfcaverns_prepared_food33x16.png", sound = soft},
|
||||||
complex = {name=S("Cave Wheat Seed Risotto"), image="dfcaverns_prepared_food14x16.png"},
|
complex = {name=S("Cave Wheat Seed Risotto"), image="dfcaverns_prepared_food14x16.png", sound = gummy},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="sweet_pod_seed",
|
register_cooking_recipes({prefix="df_farming", item="sweet_pod_seed",
|
||||||
simple = {name=S("Sweet Pod Spore Dumplings"), image="dfcaverns_prepared_food09x16.png"},
|
simple = {name=S("Sweet Pod Spore Dumplings"), image="dfcaverns_prepared_food09x16.png", sound = mushy},
|
||||||
medium = {name=S("Sweet Pod Spore Single Crust Pie"), image="dfcaverns_prepared_food05x16.png"},
|
medium = {name=S("Sweet Pod Spore Single Crust Pie"), image="dfcaverns_prepared_food05x16.png", sound = mushy},
|
||||||
complex = {name=S("Sweet Pod Spore Brule"), image="dfcaverns_prepared_food22x16.png"},
|
complex = {name=S("Sweet Pod Spore Brule"), image="dfcaverns_prepared_food22x16.png", sound = soft},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="sugar",
|
register_cooking_recipes({prefix="df_farming", item="sugar",
|
||||||
simple = {name=S("Sweet Pod Sugar Cookie"), image="dfcaverns_prepared_food02x16.png"},
|
simple = {name=S("Sweet Pod Sugar Cookie"), image="dfcaverns_prepared_food02x16.png", sound = crisp},
|
||||||
medium = {name=S("Sweet Pod Sugar Gingerbread"), image="dfcaverns_prepared_food21x16.png"},
|
medium = {name=S("Sweet Pod Sugar Gingerbread"), image="dfcaverns_prepared_food21x16.png", sound = chomp},
|
||||||
complex = {name=S("Sweet Pod Sugar Roll"), image="dfcaverns_prepared_food25x16.png"},
|
complex = {name=S("Sweet Pod Sugar Roll"), image="dfcaverns_prepared_food25x16.png", sound = crisp},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="group", item="plump_helmet",
|
register_cooking_recipes({prefix="group", item="plump_helmet",
|
||||||
simple = {name=S("Plump Helmet Mince"), image="dfcaverns_prepared_food15x16.png"},
|
simple = {name=S("Plump Helmet Mince"), image="dfcaverns_prepared_food15x16.png", sound = mushy},
|
||||||
medium = {name=S("Plump Helmet Stalk Sausage"), image="dfcaverns_prepared_food18x16.png"},
|
medium = {name=S("Plump Helmet Stalk Sausage"), image="dfcaverns_prepared_food18x16.png", sound = gummy},
|
||||||
complex = {name=S("Plump Helmet Roast"), image="dfcaverns_prepared_food04x16.png"},
|
complex = {name=S("Plump Helmet Roast"), image="dfcaverns_prepared_food04x16.png", sound = mushy},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="plump_helmet_spawn",
|
register_cooking_recipes({prefix="df_farming", item="plump_helmet_spawn",
|
||||||
simple = {name=S("Plump Helmet Spawn Soup"), image="dfcaverns_prepared_food10x16.png"},
|
simple = {name=S("Plump Helmet Spawn Soup"), image="dfcaverns_prepared_food10x16.png", sound = gummy},
|
||||||
medium = {name=S("Plump Helmet Spawn Jambalaya"), image="dfcaverns_prepared_food01x16.png"},
|
medium = {name=S("Plump Helmet Spawn Jambalaya"), image="dfcaverns_prepared_food01x16.png", sound = soft},
|
||||||
complex = {name=S("Plump Helmet Sprout Stew"), image="dfcaverns_prepared_food26x16.png"},
|
complex = {name=S("Plump Helmet Sprout Stew"), image="dfcaverns_prepared_food26x16.png", sound = gummy},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="quarry_bush_leaves",
|
register_cooking_recipes({prefix="df_farming", item="quarry_bush_leaves",
|
||||||
simple = {name=S("Quarry Bush Leaf Spicy Bun"), image="dfcaverns_prepared_food23x16.png"},
|
simple = {name=S("Quarry Bush Leaf Spicy Bun"), image="dfcaverns_prepared_food23x16.png", sound = soft},
|
||||||
medium = {name=S("Quarry Bush Leaf Croissant"), image="dfcaverns_prepared_food29x16.png"},
|
medium = {name=S("Quarry Bush Leaf Croissant"), image="dfcaverns_prepared_food29x16.png", sound = soft},
|
||||||
complex = {name=S("Stuffed Quarry Bush Leaf"), image="dfcaverns_prepared_food27x16.png"},
|
complex = {name=S("Stuffed Quarry Bush Leaf"), image="dfcaverns_prepared_food27x16.png", sound = chomp},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="quarry_bush_seed",
|
register_cooking_recipes({prefix="df_farming", item="quarry_bush_seed",
|
||||||
simple = {name=S("Rock Nut Bread"), image="dfcaverns_prepared_food16x16.png"},
|
simple = {name=S("Rock Nut Bread"), image="dfcaverns_prepared_food16x16.png", sound = soft},
|
||||||
medium = {name=S("Rock Nut Cookie"), image="dfcaverns_prepared_food07x16.png"},
|
medium = {name=S("Rock Nut Cookie"), image="dfcaverns_prepared_food07x16.png", sound = chomp},
|
||||||
complex = {name=S("Rock Nut Cake"), image="dfcaverns_prepared_food03x16.png"},
|
complex = {name=S("Rock Nut Cake"), image="dfcaverns_prepared_food03x16.png", sound = soft},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="dimple_cup_seed",
|
register_cooking_recipes({prefix="df_farming", item="dimple_cup_seed",
|
||||||
simple = {name=S("Dimple Cup Spore Flatbread"), image="dfcaverns_prepared_food12x16.png"},
|
simple = {name=S("Dimple Cup Spore Flatbread"), image="dfcaverns_prepared_food12x16.png", sound = crisp},
|
||||||
medium = {name=S("Dimple Cup Spore Scone"), image="dfcaverns_prepared_food32x16.png"},
|
medium = {name=S("Dimple Cup Spore Scone"), image="dfcaverns_prepared_food32x16.png", sound = chomp},
|
||||||
complex = {name=S("Dimple Cup Spore Roll"), image="dfcaverns_prepared_food31x16.png"},
|
complex = {name=S("Dimple Cup Spore Roll"), image="dfcaverns_prepared_food31x16.png", sound = soft},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="pig_tail_seed",
|
register_cooking_recipes({prefix="df_farming", item="pig_tail_seed",
|
||||||
simple = {name=S("Pig Tail Spore Sandwich"), image="dfcaverns_prepared_food20x16.png"},
|
simple = {name=S("Pig Tail Spore Sandwich"), image="dfcaverns_prepared_food20x16.png", sound = soft},
|
||||||
medium = {name=S("Pig Tail Spore Tofu"), image="dfcaverns_prepared_food30x16.png"},
|
medium = {name=S("Pig Tail Spore Tofu"), image="dfcaverns_prepared_food30x16.png", sound = gummy},
|
||||||
complex = {name=S("Pig Tail Spore Casserole"), image="dfcaverns_prepared_food34x16.png"},
|
complex = {name=S("Pig Tail Spore Casserole"), image="dfcaverns_prepared_food34x16.png", sound = mushy},
|
||||||
})
|
})
|
||||||
register_cooking_recipes({prefix="df_farming", item="dwarven_syrup_bucket", replacements={{"df_farming:dwarven_syrup_bucket", "bucket:bucket_empty"}},
|
register_cooking_recipes({prefix="df_farming", item="dwarven_syrup_bucket", replacements={{"df_farming:dwarven_syrup_bucket", "bucket:bucket_empty"}},
|
||||||
simple = {name=S("Dwarven Syrup Taffy"), image="dfcaverns_prepared_food19x16.png"},
|
simple = {name=S("Dwarven Syrup Taffy"), image="dfcaverns_prepared_food19x16.png", sound = gummy},
|
||||||
medium = {name=S("Dwarven Syrup Jellies"), image="dfcaverns_prepared_food06x16.png"},
|
medium = {name=S("Dwarven Syrup Jellies"), image="dfcaverns_prepared_food06x16.png", sound = gummy},
|
||||||
complex = {name=S("Dwarven Syrup Delight"), image="dfcaverns_prepared_food24x16.png"},
|
complex = {name=S("Dwarven Syrup Delight"), image="dfcaverns_prepared_food24x16.png", sound = mushy},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- dfcaverns_prepared_food28 is currently unused
|
-- dfcaverns_prepared_food28 is currently unused
|
||||||
|
@ -105,6 +105,8 @@ minetest.register_node("df_farming:plump_helmet_1", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
floodable = true,
|
floodable = true,
|
||||||
node_box = {
|
node_box = {
|
||||||
@ -142,6 +144,8 @@ minetest.register_node("df_farming:plump_helmet_2", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
floodable = true,
|
floodable = true,
|
||||||
@ -178,6 +182,8 @@ minetest.register_node("df_farming:plump_helmet_3", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
floodable = true,
|
floodable = true,
|
||||||
@ -212,6 +218,8 @@ minetest.register_node("df_farming:plump_helmet_4", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
floodable = false, -- I figure full grown plump helmets are sturdy enough to survive inundation
|
floodable = false, -- I figure full grown plump helmets are sturdy enough to survive inundation
|
||||||
@ -265,6 +273,8 @@ minetest.register_node("df_farming:plump_helmet_4_picked", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
floodable = false,
|
floodable = false,
|
||||||
|
BIN
df_farming/sounds/df_farming_chomp_crunch.1.ogg
Normal file
BIN
df_farming/sounds/df_farming_chomp_crunch.1.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_chomp_crunch.2.ogg
Normal file
BIN
df_farming/sounds/df_farming_chomp_crunch.2.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_chomp_crunch.3.ogg
Normal file
BIN
df_farming/sounds/df_farming_chomp_crunch.3.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_chomp_crunch.4.ogg
Normal file
BIN
df_farming/sounds/df_farming_chomp_crunch.4.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_crisp_chew.1.ogg
Normal file
BIN
df_farming/sounds/df_farming_crisp_chew.1.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_crisp_chew.2.ogg
Normal file
BIN
df_farming/sounds/df_farming_crisp_chew.2.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_gummy_chew.1.ogg
Normal file
BIN
df_farming/sounds/df_farming_gummy_chew.1.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_gummy_chew.2.ogg
Normal file
BIN
df_farming/sounds/df_farming_gummy_chew.2.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_gummy_chew.3.ogg
Normal file
BIN
df_farming/sounds/df_farming_gummy_chew.3.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_mushy_chew.1.ogg
Normal file
BIN
df_farming/sounds/df_farming_mushy_chew.1.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_mushy_chew.2.ogg
Normal file
BIN
df_farming/sounds/df_farming_mushy_chew.2.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_mushy_chew.3.ogg
Normal file
BIN
df_farming/sounds/df_farming_mushy_chew.3.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_soft_chew.1.ogg
Normal file
BIN
df_farming/sounds/df_farming_soft_chew.1.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_soft_chew.2.ogg
Normal file
BIN
df_farming/sounds/df_farming_soft_chew.2.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_soft_chew.3.ogg
Normal file
BIN
df_farming/sounds/df_farming_soft_chew.3.ogg
Normal file
Binary file not shown.
BIN
df_farming/sounds/df_farming_soft_chew.4.ogg
Normal file
BIN
df_farming/sounds/df_farming_soft_chew.4.ogg
Normal file
Binary file not shown.
5
df_farming/sounds/license.txt
Normal file
5
df_farming/sounds/license.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
df_farming_gummy_chew 1,2 and 3 are from https://freesound.org/people/Breviceps/sounds/447916/ by Breviceps under the CC0 public domain license
|
||||||
|
df_farming_chomp_crunch are from https://freesound.org/people/bbrocer/sounds/382650/ by bbrocer under the CC0 public domain license
|
||||||
|
df_farming_crisp_chew 1 and 2 are from https://freesound.org/people/InspectorJ/sounds/412068/ by InspectorJ under the CC-BY-SA 3.0 license
|
||||||
|
df_farming_soft_chew 1, 2, 3 and 4 are from https://freesound.org/people/miekyj/sounds/326464/ by miekyj under the CC0 public domain license
|
||||||
|
df_farming_mushy_chew 1, 2 and 3 are from https://freesound.org/people/nickyg11p/sounds/390800/ by nickyg11p under the CC0 public domain license
|
@ -71,6 +71,7 @@ minetest.register_craftitem("df_primordial_items:diced_mushroom", {
|
|||||||
_doc_items_usagehelp = df_primordial_items.doc.big_mushroom_usage,
|
_doc_items_usagehelp = df_primordial_items.doc.big_mushroom_usage,
|
||||||
inventory_image = "dfcaverns_mush_diced_giant_mushroom.png",
|
inventory_image = "dfcaverns_mush_diced_giant_mushroom.png",
|
||||||
groups = {food = 1, dfcaverns_cookable = 1},
|
groups = {food = 1, dfcaverns_cookable = 1},
|
||||||
|
sound = {eat = {name = "df_farming_gummy_chew", gain = 1.0}},
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user