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/cotton.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crops/cotton.lua') diff --git a/crops/cotton.lua b/crops/cotton.lua index 7f893ec..24dc7bb 100644 --- a/crops/cotton.lua +++ b/crops/cotton.lua @@ -142,6 +142,15 @@ crop_def.drop = { } minetest.register_node("farming:cotton_8", table.copy(crop_def)) +-- add to registered_plants +farming.registered_plants["farming:cotton"] = { + crop = "farming:cotton", + seed = "farming:seed_cotton", + minlight = 13, + maxlight = 15, + steps = 8 +} + --[[ Cotton (example, is already registered in cotton.lua) farming.register_plant("farming:cotton", { description = "Cotton seed", -- cgit v1.2.3