From 70ddf360c90af147ad992b2b1284676c3ca8db45 Mon Sep 17 00:00:00 2001 From: Auke Kok <auke-jan.h.kok@intel.com> Date: Wed, 8 Apr 2015 14:29:08 -0700 Subject: Tweak melon plant hitbox, remove unneeded texture. --- melon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'melon.lua') diff --git a/melon.lua b/melon.lua index 40cccc4..22b7196 100644 --- a/melon.lua +++ b/melon.lua @@ -52,7 +52,7 @@ minetest.register_node("crops:melon_plant_" .. stage , { drop = "crops:melon_seed", selection_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (((3 * stage) + 1) / 16), 0.5} + fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (((math.min(stage, 4)) + 1) / 5), 0.5} } }) end @@ -61,7 +61,7 @@ minetest.register_node("crops:melon_plant_5_attached", { visual = "mesh", mesh = "crops_plant_extra_face.obj", description = "melon plant", - tiles = { "crops_melon_stem.png", "crops_melon_plant_5_attached.png" }, + tiles = { "crops_melon_stem.png", "crops_melon_plant_4.png" }, drawtype = "mesh", paramtype2 = "facedir", sunlight_propagates = true, -- cgit v1.2.3