From 3e69ae2588e8b2a68edc3338179f80c33c18244a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 6 Jun 2017 12:44:58 +0200 Subject: [PATCH] Tweak selection box of tallgrass, saplings, reeds --- mods/ITEMS/mcl_core/nodes.lua | 10 +++++----- mods/ITEMS/mcl_flowers/init.lua | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index ade28249..90c93451 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -701,7 +701,7 @@ minetest.register_node("mcl_core:sapling", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + fixed = {-6/16, -0.5, -6/16, 6/16, 0.5, 6/16} }, stack_max = 64, groups = {dig_immediate=3, plant=1,sapling=1,non_mycelium_plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1}, @@ -787,7 +787,7 @@ minetest.register_node("mcl_core:darksapling", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + fixed = {-5.5/16, -0.5, -5.5/16, 5.5/16, 0.5, 5.5/16} }, stack_max = 64, groups = {dig_immediate=3, plant=1,sapling=1,non_mycelium_plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1}, @@ -931,7 +931,7 @@ minetest.register_node("mcl_core:junglesapling", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + fixed = {-4/16, -0.5, -4/16, 4/16, 0.5, 4/16} }, stack_max = 64, groups = {dig_immediate=3, plant=1,sapling=1,non_mycelium_plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1}, @@ -1176,7 +1176,7 @@ minetest.register_node("mcl_core:birchsapling", { walkable = false, selection_box = { type = "fixed", - fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + fixed = {-6/16, -0.5, -6/16, 6/16, 0.5, 6/16} }, stack_max = 64, groups = {dig_immediate=3, plant=1,sapling=1,non_mycelium_plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,deco_block=1}, @@ -1284,7 +1284,7 @@ minetest.register_node("mcl_core:reeds", { selection_box = { type = "fixed", fixed = { - {-7/16, -8/16, -7/16, 7/16, 8/16, 7/16}, + {-6/16, -8/16, -6/16, 6/16, 8/16, 6/16}, }, }, stack_max = 64, diff --git a/mods/ITEMS/mcl_flowers/init.lua b/mods/ITEMS/mcl_flowers/init.lua index 6000d4c5..59aab092 100644 --- a/mods/ITEMS/mcl_flowers/init.lua +++ b/mods/ITEMS/mcl_flowers/init.lua @@ -62,6 +62,10 @@ minetest.register_node("mcl_flowers:tallgrass", { tiles = {"mcl_flowers_tallgrass.png"}, inventory_image = "mcl_flowers_tallgrass.png", wield_image = "mcl_flowers_tallgrass.png", + selection_box = { + type = "fixed", + fixed = {{ -6/16, -8/16, -6/16, 6/16, 8/16, 6/16 }}, + }, paramtype = "light", sunlight_propagates = true, walkable = false,