diff options
Diffstat (limited to 'tomato.lua')
-rw-r--r-- | tomato.lua | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -55,7 +55,7 @@ minetest.register_node("crops:tomato_plant_" .. stage , { 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} + fixed = {-0.45, -0.5, -0.45, 0.45, -0.6 + (((math.min(stage, 4)) + 1) / 5), 0.45} } }) end @@ -72,6 +72,10 @@ minetest.register_node("crops:tomato_plant_5" , { 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.45, -0.5, -0.45, 0.45, 0.45, 0.45} + }, on_dig = function(pos, node, digger) local drops = {} for i = 1, math.random(1, 2) do @@ -102,6 +106,10 @@ minetest.register_node("crops:tomato_plant_6", { 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.45, -0.5, -0.45, 0.45, 0.45, 0.45} + }, }) minetest.register_craftitem("crops:tomato", { |