From 3ddde145a72d9bad20488a37ab4967b5305a96eb Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 15 Sep 2022 08:07:36 +0100 Subject: [PATCH] increase selection box to show strawberry/onion final stage --- onion.lua | 4 ++++ strawberry.lua | 16 ++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/onion.lua b/onion.lua index 83bf730..aae064c 100644 --- a/onion.lua +++ b/onion.lua @@ -57,6 +57,10 @@ minetest.register_node("ethereal:onion_4", table.copy(crop_def)) --stage 5 crop_def.tiles = {"ethereal_wild_onion_5.png"} crop_def.groups.growing = nil +crop_def.selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5} +} crop_def.drop = { items = { {items = {"ethereal:wild_onion_plant 2"}, rarity = 1}, diff --git a/strawberry.lua b/strawberry.lua index 16329c6..6a052a4 100644 --- a/strawberry.lua +++ b/strawberry.lua @@ -57,8 +57,8 @@ minetest.register_node("ethereal:strawberry_5", table.copy(crop_def)) crop_def.tiles = {"ethereal_strawberry_6.png"} crop_def.drop = { items = { - {items = {"ethereal:strawberry 1"},rarity = 2}, - {items = {"ethereal:strawberry 2"},rarity = 3} + {items = {"ethereal:strawberry 1"}, rarity = 2}, + {items = {"ethereal:strawberry 2"}, rarity = 3} } } minetest.register_node("ethereal:strawberry_6", table.copy(crop_def)) @@ -67,8 +67,8 @@ minetest.register_node("ethereal:strawberry_6", table.copy(crop_def)) crop_def.tiles = {"ethereal_strawberry_7.png"} crop_def.drop = { items = { - {items = {"ethereal:strawberry 1"},rarity = 1}, - {items = {"ethereal:strawberry 2"},rarity = 3} + {items = {"ethereal:strawberry 1"}, rarity = 1}, + {items = {"ethereal:strawberry 2"}, rarity = 3} } } minetest.register_node("ethereal:strawberry_7", table.copy(crop_def)) @@ -76,10 +76,14 @@ minetest.register_node("ethereal:strawberry_7", table.copy(crop_def)) -- stage 8 crop_def.tiles = {"ethereal_strawberry_8.png"} crop_def.groups.growing = nil +crop_def.selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5} +} crop_def.drop = { items = { - {items = {"ethereal:strawberry 2"},rarity = 1}, - {items = {"ethereal:strawberry 3"},rarity = 3} + {items = {"ethereal:strawberry 2"}, rarity = 1}, + {items = {"ethereal:strawberry 3"}, rarity = 3} } } minetest.register_node("ethereal:strawberry_8", table.copy(crop_def))