From: paramat Date: Fri, 22 Apr 2016 15:20:47 +0000 (+0100) Subject: Farming: Add quiet sounds to seeds X-Git-Tag: 0.4.14~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f32a3ff57c00fcba0ec5bbfb85888fca67d614c1;p=oweals%2Fminetest_game.git Farming: Add quiet sounds to seeds --- diff --git a/mods/farming/api.lua b/mods/farming/api.lua index a0c1992f..68f7be75 100644 --- a/mods/farming/api.lua +++ b/mods/farming/api.lua @@ -220,9 +220,14 @@ farming.register_plant = function(name, def) fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}, }, fertility = def.fertility, + sounds = default.node_sound_dirt_defaults({ + dug = {name = "default_grass_footstep", gain = 0.2}, + place = {name = "default_place_node", gain = 0.25}, + }), + on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, mname .. ":seed_" .. pname) - end + end, }) -- Register harvest