diff options
Diffstat (limited to 'potato.lua')
-rw-r--r-- | potato.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -22,6 +22,10 @@ minetest.register_node("crops:potato_eyes", { walkable = false, paramtype = "light", groups = { snappy=3,flammable=3,flora=1,attached_node=1 }, + selection_box = { + type = "fixed", + fixed = {-0.45, -0.5, -0.45, 0.45, -0.4, 0.45} + }, on_place = function(itemstack, placer, pointed_thing) local under = minetest.get_node(pointed_thing.under) @@ -51,7 +55,7 @@ minetest.register_node("crops:potato_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 |