From 5f9a5d783528fe712ffe6ab96d95cbe893f37398 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Sun, 12 Apr 2015 18:56:52 -0700 Subject: Add default leaf sounds to all the crops. Only melon blocks have a different sound at this point. --- tomato.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tomato.lua') diff --git a/tomato.lua b/tomato.lua index 81519a9..d34f58f 100644 --- a/tomato.lua +++ b/tomato.lua @@ -25,6 +25,7 @@ minetest.register_node("crops:tomato_seed", { paramtype = "light", groups = { snappy=3,flammable=3,flora=1,attached_node=1 }, drop = {}, + sounds = default.node_sound_leaves_defaults(), on_place = function(itemstack, placer, pointed_thing) local under = minetest.get_node(pointed_thing.under) @@ -50,6 +51,7 @@ minetest.register_node("crops:tomato_plant_" .. stage , { paramtype = "light", groups = { snappy=3, flammable=3, flora=1, attached_node=1, not_in_creative_inventory=1 }, drop = {}, + sounds = default.node_sound_leaves_defaults(), selection_box = { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (((math.min(stage, 4)) + 1) / 5), 0.5} @@ -67,6 +69,7 @@ minetest.register_node("crops:tomato_plant_5" , { paramtype = "light", groups = { snappy=3, flammable=3, flora=1, attached_node=1, not_in_creative_inventory=1 }, drop = {}, + sounds = default.node_sound_leaves_defaults(), on_dig = function(pos, node, digger) local drops = {} for i = 1, math.random(1, 2) do @@ -96,6 +99,7 @@ minetest.register_node("crops:tomato_plant_6", { paramtype = "light", groups = { snappy=3, flammable=3, flora=1, attached_node=1, not_in_creative_inventory=1 }, drop = {}, + sounds = default.node_sound_leaves_defaults(), }) minetest.register_craftitem("crops:tomato", { -- cgit v1.2.3