diff --git a/CREDITS.md b/CREDITS.md index 7d27846..bcd592d 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -84,7 +84,7 @@ Sounds: - by Fourier - Edit by Wuzzy (shortened) - License: CC BY 3.0 -- `lzr_sounds_footstep_stone.*.ogg`, `lzr_sounds_footstep_dirt.*.png` +- `lzr_sounds_footstep_stone.*.ogg`, `lzr_sounds_footstep_dirt.*.ogg`, `lzr_sounds_footstep_leaves.*.ogg`, `lzr_sounds_dug_grass.*.ogg`: - by Wuzzy - License: MIT License - All other sounds come from Minetest Game (see license of Minetest Game 5.4.1 for details) diff --git a/mods/lzr_plants/init.lua b/mods/lzr_plants/init.lua index 151177b..9f097c8 100644 --- a/mods/lzr_plants/init.lua +++ b/mods/lzr_plants/init.lua @@ -22,7 +22,7 @@ minetest.register_node("lzr_plants:island_grass", { paramtype = "light", sunlight_propagates = true, is_ground_content = false, - sounds = lzr_sounds.node_sound_leaves_defaults(), + sounds = lzr_sounds.node_sound_grass_defaults(), groups = { punchdig = 1, laser_destroys = 1, attached_node = 1 }, drop = "", buildable_to = true, @@ -43,7 +43,7 @@ minetest.register_node("lzr_plants:crab_grass", { paramtype = "light", sunlight_propagates = true, is_ground_content = false, - sounds = lzr_sounds.node_sound_leaves_defaults(), + sounds = lzr_sounds.node_sound_grass_defaults(), groups = { punchdig = 1, laser_destroys = 1, attached_node = 1 }, drop = "", buildable_to = true, @@ -65,7 +65,7 @@ minetest.register_node("lzr_plants:seaweed", { paramtype = "light", sunlight_propagates = true, is_ground_content = false, - sounds = lzr_sounds.node_sound_leaves_defaults(), + sounds = lzr_sounds.node_sound_grass_defaults(), groups = { punchdig = 1, laser_destroys = 1, attached_node = 1 }, drop = "", buildable_to = true, @@ -86,7 +86,7 @@ minetest.register_node("lzr_plants:coral_purple", { paramtype = "light", sunlight_propagates = true, is_ground_content = false, - sounds = lzr_sounds.node_sound_leaves_defaults(), + sounds = lzr_sounds.node_sound_grass_defaults(), groups = { punchdig = 1, laser_destroys = 1, attached_node = 1 }, drop = "", buildable_to = true, diff --git a/mods/lzr_sounds/init.lua b/mods/lzr_sounds/init.lua index f8f8bf5..58e7cbb 100644 --- a/mods/lzr_sounds/init.lua +++ b/mods/lzr_sounds/init.lua @@ -21,8 +21,29 @@ function lzr_sounds.node_sound_stone_defaults(table) return table end --- TODO: leaves -lzr_sounds.node_sound_leaves_defaults = lzr_sounds.node_sound_defaults +function lzr_sounds.node_sound_leaves_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name = "lzr_sounds_footstep_leaves", gain = 1.0} + table.dug = table.dug or + {name = "lzr_sounds_footstep_leaves", gain = 1.0} + table.place = table.place or + {name = "default_place_node", gain = 1.0} + lzr_sounds.node_sound_defaults(table) + return table +end + +function lzr_sounds.node_sound_grass_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name = "lzr_sounds_footstep_leaves", gain = 1.0} + table.dug = table.dug or + {name = "lzr_sounds_dug_grass", gain = 1.0} + table.place = table.place or + {name = "default_place_node", gain = 1.0} + lzr_sounds.node_sound_defaults(table) + return table +end function lzr_sounds.node_sound_dirt_defaults(table) table = table or {} diff --git a/mods/lzr_sounds/sounds/default_hard_footstep.1.ogg b/mods/lzr_sounds/sounds/default_hard_footstep.1.ogg deleted file mode 100644 index 0a08efa..0000000 Binary files a/mods/lzr_sounds/sounds/default_hard_footstep.1.ogg and /dev/null differ diff --git a/mods/lzr_sounds/sounds/default_hard_footstep.2.ogg b/mods/lzr_sounds/sounds/default_hard_footstep.2.ogg deleted file mode 100644 index be52a87..0000000 Binary files a/mods/lzr_sounds/sounds/default_hard_footstep.2.ogg and /dev/null differ diff --git a/mods/lzr_sounds/sounds/default_hard_footstep.3.ogg b/mods/lzr_sounds/sounds/default_hard_footstep.3.ogg deleted file mode 100644 index a342787..0000000 Binary files a/mods/lzr_sounds/sounds/default_hard_footstep.3.ogg and /dev/null differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.1.ogg b/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.1.ogg new file mode 100644 index 0000000..06e69f1 Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.1.ogg differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.2.ogg b/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.2.ogg new file mode 100644 index 0000000..e115027 Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.2.ogg differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.3.ogg b/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.3.ogg new file mode 100644 index 0000000..a97b6b3 Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_dug_grass.3.ogg differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.1.ogg b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.1.ogg new file mode 100644 index 0000000..51a9341 Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.1.ogg differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.2.ogg b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.2.ogg new file mode 100644 index 0000000..92ee251 Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.2.ogg differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.3.ogg b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.3.ogg new file mode 100644 index 0000000..3367d1d Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.3.ogg differ diff --git a/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.4.ogg b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.4.ogg new file mode 100644 index 0000000..fcfc0bf Binary files /dev/null and b/mods/lzr_sounds/sounds/lzr_sounds_footstep_leaves.4.ogg differ