From d7bc9b16fc68af6fbd643c6afdf619a0478a8579 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 29 Sep 2018 16:53:18 +0100 Subject: added crop information to farming.registered_plants table --- crops/garlic.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'crops/garlic.lua') diff --git a/crops/garlic.lua b/crops/garlic.lua index f2bb16d..09ab375 100644 --- a/crops/garlic.lua +++ b/crops/garlic.lua @@ -27,7 +27,7 @@ minetest.register_craftitem("farming:garlic", { minetest.register_craft({ type = "shapeless", - output = "farming:garlic_clove 9", + output = "farming:garlic_clove 8", recipe = { "farming:garlic" } }) @@ -35,7 +35,7 @@ minetest.register_craft({ output = "farming:garlic", recipe = { {"farming:garlic_clove", "farming:garlic_clove", "farming:garlic_clove"}, - {"farming:garlic_clove", "farming:garlic_clove", "farming:garlic_clove"}, + {"farming:garlic_clove", "", "farming:garlic_clove"}, {"farming:garlic_clove", "farming:garlic_clove", "farming:garlic_clove"} } }) @@ -126,3 +126,12 @@ crop_def.drop = { } } minetest.register_node("farming:garlic_5", table.copy(crop_def)) + +-- add to registered_plants +farming.registered_plants["farming:garlic"] = { + crop = "farming:garlic", + seed = "farming:garlic_clove", + minlight = 13, + maxlight = 15, + steps = 5 +} -- cgit v1.2.3