1
0
Fork 0

Merge pull request 'adjust crop hitboxes' (#3555) from Fix-potato-hitbox into master

Reviewed-on: MineClone2/MineClone2#3555
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
ancientmarinerdev 2023-03-18 22:04:07 +00:00
commit 1182ce349a
3 changed files with 9 additions and 9 deletions

View File

@ -54,7 +54,7 @@ minetest.register_node("mcl_farming:beetroot_1", {
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, -3/16, 0.5} {-0.5, -0.5, -0.5, 0.5, -4/16, 0.5}
}, },
}, },
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1}, groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1},
@ -78,7 +78,7 @@ minetest.register_node("mcl_farming:beetroot_2", {
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 2/16, 0.5} {-0.5, -0.5, -0.5, 0.5, -3/16, 0.5}
}, },
}, },
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1}, groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1},
@ -129,7 +129,7 @@ minetest.register_node("mcl_farming:beetroot", {
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 3 / 16, 0.5} {-0.5, -0.5, -0.5, 0.5, -1/16, 0.5}
}, },
}, },
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,beetroot=4}, groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1,beetroot=4},

View File

@ -6,10 +6,10 @@ for i=1, 7 do
sel_height = -5/16 sel_height = -5/16
texture = "farming_carrot_1.png" texture = "farming_carrot_1.png"
elseif i < 5 then elseif i < 5 then
sel_height = -3/16 sel_height = -4/16
texture = "farming_carrot_2.png" texture = "farming_carrot_2.png"
else else
sel_height = 2/16 sel_height = -3/16
texture = "farming_carrot_3.png" texture = "farming_carrot_3.png"
end end
@ -72,7 +72,7 @@ minetest.register_node("mcl_farming:carrot", {
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.5, -0.5, -0.5, 0.5, 4/16, 0.5} {-0.5, -0.5, -0.5, 0.5, -1/16, 0.5}
}, },
}, },
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1}, groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1},

View File

@ -9,10 +9,10 @@ for i=1, 7 do
selbox = { -0.5, -0.5, -0.5, 0.5, -5/16, 0.5 } selbox = { -0.5, -0.5, -0.5, 0.5, -5/16, 0.5 }
elseif i < 5 then elseif i < 5 then
texture = "mcl_farming_potatoes_stage_1.png" texture = "mcl_farming_potatoes_stage_1.png"
selbox = { -0.5, -0.5, -0.5, 0.5, -2/16, 0.5 } selbox = { -0.5, -0.5, -0.5, 0.5, -4/16, 0.5 }
else else
texture = "mcl_farming_potatoes_stage_2.png" texture = "mcl_farming_potatoes_stage_2.png"
selbox = { -0.5, -0.5, -0.5, 0.5, 2/16, 0.5 } selbox = { -0.5, -0.5, -0.5, 0.5, -3/16, 0.5 }
end end
local create, name, longdesc local create, name, longdesc
@ -77,7 +77,7 @@ minetest.register_node("mcl_farming:potato", {
selection_box = { selection_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{ -0.5, -0.5, -0.5, 0.5, 1/16, 0.5 } { -0.5, -0.5, -0.5, 0.5, -1/16, 0.5 }
} }
}, },
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1}, groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1},