From 635256c2456bc409ca64fc3570612e124fedcafe Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 1 Apr 2017 05:10:56 +0200 Subject: [PATCH] Fix some beetroot bugs - Improve selection box - Fix incorrect texture of a beetroot stage (used carrot image, lol) - Did not drop when supporting node was destroyed --- mods/ITEMS/mcl_farming/beetroot.lua | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/mods/ITEMS/mcl_farming/beetroot.lua b/mods/ITEMS/mcl_farming/beetroot.lua index 1fa3d68ee6..7927942efa 100644 --- a/mods/ITEMS/mcl_farming/beetroot.lua +++ b/mods/ITEMS/mcl_farming/beetroot.lua @@ -22,13 +22,15 @@ minetest.register_node("mcl_farming:beetroot_0", { drawtype = "plantlike", drop = "mcl_farming:beetroot_seeds", tiles = {"mcl_farming_beetroot_0.png"}, + inventory_image = "mcl_farming_beetroot_0.png", + wield_image = "mcl_farming_beetroot_0.png", selection_box = { type = "fixed", fixed = { - {-0.5, -0.5, -0.5, 0.5, -0.125, 0.5} + {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5} }, }, - groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1,dig_by_piston=1}, + groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1,dig_by_piston=1}, sounds = mcl_sounds.node_sound_leaves_defaults(), _mcl_blast_resistance = 0, }) @@ -44,13 +46,15 @@ minetest.register_node("mcl_farming:beetroot_1", { drawtype = "plantlike", drop = "mcl_farming:beetroot_seeds", tiles = {"mcl_farming_beetroot_1.png"}, + inventory_image = "mcl_farming_beetroot_1.png", + wield_image = "mcl_farming_beetroot_1.png", selection_box = { type = "fixed", fixed = { - {-0.5, -0.5, -0.5, 0.5, -0.125, 0.5} + {-0.5, -0.5, -0.5, 0.5, -3/16, 0.5} }, }, - groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1,dig_by_piston=1}, + groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1,dig_by_piston=1}, sounds = mcl_sounds.node_sound_leaves_defaults(), _mcl_blast_resistance = 0, }) @@ -65,14 +69,16 @@ minetest.register_node("mcl_farming:beetroot_2", { walkable = false, drawtype = "plantlike", drop = "mcl_farming:beetroot_seeds", - tiles = {"farming_carrot_2.png"}, + tiles = {"mcl_farming_beetroot_2.png"}, + inventory_image = "mcl_farming_beetroot_2.png", + wield_image = "mcl_farming_beetroot_2.png", selection_box = { type = "fixed", fixed = { - {-0.5, -0.5, -0.5, 0.5, -0.125, 0.5} + {-0.5, -0.5, -0.5, 0.5, 2/16, 0.5} }, }, - groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1,dig_by_piston=1}, + groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1,dig_by_piston=1}, sounds = mcl_sounds.node_sound_leaves_defaults(), _mcl_blast_resistance = 0, }) @@ -97,13 +103,15 @@ minetest.register_node("mcl_farming:beetroot", { }, }, tiles = {"mcl_farming_beetroot_3.png"}, + inventory_image = "mcl_farming_beetroot_3.png", + wield_image = "mcl_farming_beetroot_3.png", selection_box = { type = "fixed", fixed = { - {-0.5, -0.5, -0.5, 0.5, -0.125, 0.5} + {-0.5, -0.5, -0.5, 0.5, 3/16, 0.5} }, }, - groups = {dig_immediate=3, not_in_creative_inventory=1,dig_by_water=1,dig_by_piston=1,beetroot=4}, + groups = {dig_immediate=3, not_in_creative_inventory=1,attached_node=1,dig_by_water=1,dig_by_piston=1,beetroot=4}, sounds = mcl_sounds.node_sound_leaves_defaults(), _mcl_blast_resistance = 0, })