From 7def486bdc460c6fe61da60f1e6181ccf45cc953 Mon Sep 17 00:00:00 2001 From: "A.C.M" Date: Sun, 26 Sep 2021 06:22:57 +0200 Subject: [PATCH] Signs_Bot support updated. Better support for Petz. --- asparagus_default.lua | 10 +++++++--- asparagus_redo.lua | 9 ++++++--- chives_default.lua | 11 ++++++++--- chives_redo.lua | 9 ++++++--- flax_default.lua | 10 +++++++--- flax_redo.lua | 10 +++++++--- items.lua | 2 +- kohlrabi_default.lua | 10 +++++++--- kohlrabi_redo.lua | 9 ++++++--- lettuce_default.lua | 10 +++++++--- lettuce_redo.lua | 9 ++++++--- parsley_default.lua | 10 +++++++--- parsley_redo.lua | 9 ++++++--- peanut_default.lua | 14 +++++++++----- peanut_redo.lua | 9 ++++++--- register_signs_bot.lua | 18 +++++++++++++++--- rice_default.lua | 10 +++++++--- rice_redo.lua | 9 ++++++--- rosemary_default.lua | 10 +++++++--- rosemary_redo.lua | 9 ++++++--- soy_default.lua | 11 +++++++---- soy_redo.lua | 9 ++++++--- sunflower_default.lua | 10 +++++++--- sunflower_redo.lua | 9 ++++++--- 24 files changed, 163 insertions(+), 73 deletions(-) diff --git a/asparagus_default.lua b/asparagus_default.lua index fd58aae..b3866c6 100755 --- a/asparagus_default.lua +++ b/asparagus_default.lua @@ -14,6 +14,7 @@ local step = 6 -- asparagus farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.asparagus_light, @@ -46,8 +47,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -57,6 +61,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/asparagus_redo.lua b/asparagus_redo.lua index 7b8336f..249885a 100755 --- a/asparagus_redo.lua +++ b/asparagus_redo.lua @@ -127,8 +127,11 @@ end }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -138,6 +141,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/chives_default.lua b/chives_default.lua index 8d16420..4dca0eb 100755 --- a/chives_default.lua +++ b/chives_default.lua @@ -14,6 +14,7 @@ local step = 5 -- chives farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.chives_light, @@ -46,8 +47,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -57,6 +61,7 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) + end diff --git a/chives_redo.lua b/chives_redo.lua index 98fdad3..3c9082a 100755 --- a/chives_redo.lua +++ b/chives_redo.lua @@ -118,8 +118,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname .. "", { }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -129,6 +132,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/flax_default.lua b/flax_default.lua index 668f822..709f560 100755 --- a/flax_default.lua +++ b/flax_default.lua @@ -14,6 +14,7 @@ local step = 6 -- flex farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.flax_light, @@ -48,8 +49,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { cucina_vegana.add_group("cucina_vegana:seed_" .. pname, {seed_flax = 1}) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -59,7 +63,7 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/flax_redo.lua b/flax_redo.lua index 1d7abaa..2eee116 100755 --- a/flax_redo.lua +++ b/flax_redo.lua @@ -121,8 +121,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname .. "", { cucina_vegana.add_group("cucina_vegana:" .. pname .. "_seed", {seed_flax = 1}) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -132,7 +135,8 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) + end diff --git a/items.lua b/items.lua index bdc2fbe..5e21b8f 100755 --- a/items.lua +++ b/items.lua @@ -131,7 +131,7 @@ minetest.register_craftitem("cucina_vegana:imitation_fish", { minetest.register_craftitem("cucina_vegana:imitation_meat", { description = S("Imitation Meat"), - groups = {food = 1, food_meat = 1, food_vegan = 1, eatable = 1}, + groups = {food = 1, food_meat = 1, food_vegan = 1, eatable = 1, foot_meat_raw}, inventory_image = "cucina_vegana_imitation_meat.png", on_use = minetest.item_eat(3), }) diff --git a/kohlrabi_default.lua b/kohlrabi_default.lua index f2bbb4d..fbbd7bd 100755 --- a/kohlrabi_default.lua +++ b/kohlrabi_default.lua @@ -14,6 +14,7 @@ local step = 6 -- kohlrabi farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.kohlrabi_light, @@ -50,8 +51,11 @@ minetest.register_alias("kohlrabi:kohlrabi", "cucina_vegana:" .. pname) minetest.register_alias("kohlrabi:seed", "cucina_vegana:" .. pname .. "_seed") minetest.register_alias("kohlrabi:wild_kohlrabi", "cucina_vegana:wild_" .. pname) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -61,6 +65,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/kohlrabi_redo.lua b/kohlrabi_redo.lua index dbc6ab6..a17b078 100755 --- a/kohlrabi_redo.lua +++ b/kohlrabi_redo.lua @@ -141,8 +141,11 @@ minetest.register_alias("kohlrabi:kohlrabi", "cucina_vegana:" .. pname .. "") minetest.register_alias("kohlrabi:seed", "cucina_vegana:" .. pname .. "_seed") minetest.register_alias("kohlrabi:wild_kohlrabi", "cucina_vegana:wild_" .. pname .. "") -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -152,6 +155,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/lettuce_default.lua b/lettuce_default.lua index 7159338..39f1887 100755 --- a/lettuce_default.lua +++ b/lettuce_default.lua @@ -14,6 +14,7 @@ local step = 5 -- lettuce farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.lettuce_light, @@ -53,8 +54,11 @@ minetest.register_alias("lettuce:lettuce", "cucina_vegana:" .. pname) minetest.register_alias("lettuce:seed", "cucina_vegana:" .. pname .. "_seed") minetest.register_alias("lettuce:wild_lettuce", "cucina_vegana:wild_" .. pname) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -64,6 +68,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/lettuce_redo.lua b/lettuce_redo.lua index 1d4e6c0..36b31b4 100755 --- a/lettuce_redo.lua +++ b/lettuce_redo.lua @@ -131,8 +131,11 @@ minetest.register_alias("lettuce:lettuce", "cucina_vegana:" .. pname .. "") minetest.register_alias("lettuce:seed", "cucina_vegana:" .. pname .. "_seed") minetest.register_alias("lettuce:wild_lettuce", "cucina_vegana:wild_" .. pname .. "") -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -142,6 +145,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/parsley_default.lua b/parsley_default.lua index 1f3b2ae..9512130 100755 --- a/parsley_default.lua +++ b/parsley_default.lua @@ -14,6 +14,7 @@ local step = 5 -- Parsley farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.parsley_light, @@ -50,8 +51,11 @@ minetest.register_alias("parsley:parsley", "cucina_vegana:" .. pname) minetest.register_alias("parsley:seed", "cucina_vegana:" .. pname .. "_seed") minetest.register_alias("parsley:wild_parsley", "cucina_vegana:wild_" .. pname) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -61,6 +65,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/parsley_redo.lua b/parsley_redo.lua index 965f333..d5d11d6 100755 --- a/parsley_redo.lua +++ b/parsley_redo.lua @@ -131,8 +131,11 @@ minetest.register_alias("parsley:parsley", "cucina_vegana:" .. pname .. "") minetest.register_alias("parsley:seed", "cucina_vegana:" .. pname .. "_seed") minetest.register_alias("parsley:wild_parsley", "cucina_vegana:wild_" .. pname .. "") -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -142,6 +145,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/peanut_default.lua b/peanut_default.lua index 552335b..f5854ca 100755 --- a/peanut_default.lua +++ b/peanut_default.lua @@ -1,6 +1,6 @@ --[[ ********************************************** - *** Flex default *** + *** Peanut default *** ********************************************** ]]-- @@ -11,9 +11,10 @@ local dname = S("Peanut") local pname = "peanut" local step = 7 --- flex +-- Peanut farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.peanut_light, @@ -47,8 +48,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { cucina_vegana.add_group("cucina_vegana:seed_" .. pname, {seed_peanut = 1}) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -58,6 +62,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.sign_bot) then - cucina_vegana.register_sign_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/peanut_redo.lua b/peanut_redo.lua index 6c36521..c0b87ec 100755 --- a/peanut_redo.lua +++ b/peanut_redo.lua @@ -122,8 +122,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname .. "", { cucina_vegana.add_group("cucina_vegana:" .. pname .. "_seed", {seed_peanut = 1}) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -133,6 +136,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.sign_bot) then - cucina_vegana.register_sign_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/register_signs_bot.lua b/register_signs_bot.lua index 850cc83..0c8effe 100755 --- a/register_signs_bot.lua +++ b/register_signs_bot.lua @@ -1,6 +1,18 @@ -function cucina_vegana.register_signs_bot(pname, step) +-- inv_seed is the seed inventory name +-- plantlet is what has to be placed on the ground (stage 1) +-- crop is the farming crop in the final stage +-- function signs_bot.register_farming_plant(inv_seed, plantlet, crop) + +function cucina_vegana.register_signs_bot(pname, start, steps) local fp = signs_bot.register_farming_plant local mname = cucina_vegana.modname - - fp("cucina_vegana:" .. mname, "cucina_vegana:" .. "_1", "cucina_vegana:" .. "_" .. step) + + if(cucina_vegana.farming_default) then + fp("cucina_vegana:seed_" .. pname, "cucina_vegana:" .. pname .. "_" .. start, "cucina_vegana:" .. pname .. "_" .. steps) + + else + fp("cucina_vegana:" .. pname .. "_seed", "cucina_vegana:" .. pname .. "_" .. start, "cucina_vegana:" .. pname .. "_" .. steps) + + end + end diff --git a/rice_default.lua b/rice_default.lua index f71ad92..16aee6f 100755 --- a/rice_default.lua +++ b/rice_default.lua @@ -14,6 +14,7 @@ local step = 6 -- rice farming.register_plant("cucina_vegana:" .. pname .. "", { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.rice_light, @@ -46,8 +47,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -57,7 +61,7 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/rice_redo.lua b/rice_redo.lua index 8829287..4acb267 100755 --- a/rice_redo.lua +++ b/rice_redo.lua @@ -127,8 +127,11 @@ end }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -138,6 +141,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/rosemary_default.lua b/rosemary_default.lua index 81cbe7c..00439c6 100755 --- a/rosemary_default.lua +++ b/rosemary_default.lua @@ -14,6 +14,7 @@ local step = 6 -- rosemary farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = 6, minlight = cucina_vegana.plant_settings.rosemary_light, @@ -46,8 +47,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -57,6 +61,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/rosemary_redo.lua b/rosemary_redo.lua index 1b95d14..1e66379 100755 --- a/rosemary_redo.lua +++ b/rosemary_redo.lua @@ -128,8 +128,11 @@ minetest.register_node("cucina_vegana:wild_" .. pname, { }, }) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -139,6 +142,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/soy_default.lua b/soy_default.lua index 8fa069c..fa187fd 100755 --- a/soy_default.lua +++ b/soy_default.lua @@ -13,6 +13,7 @@ local step = 8 farming.register_plant("cucina_vegana:".. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_".. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.soy_light, @@ -52,8 +53,11 @@ minetest.register_alias("soy:wild_".. pname, "cucina_vegana:wild_".. pname) minetest.register_alias("soy:".. pname, "cucina_vegana:".. pname) minetest.register_alias("soy:seed_".. pname, "cucina_vegana:seed_".. pname) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -63,6 +67,5 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) - + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/soy_redo.lua b/soy_redo.lua index 978625b..291f4fa 100755 --- a/soy_redo.lua +++ b/soy_redo.lua @@ -161,8 +161,11 @@ minetest.register_alias("soy:wild_soy", "cucina_vegana:wild_" .. pname) minetest.register_alias("soy:soy", "cucina_vegana:" .. pname) minetest.register_alias("soy:seed_soy", "cucina_vegana:seed_" .. pname) -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -172,6 +175,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/sunflower_default.lua b/sunflower_default.lua index f27c5b8..112e5b2 100755 --- a/sunflower_default.lua +++ b/sunflower_default.lua @@ -21,6 +21,7 @@ else farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), + harvest_description = dname, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, minlight = cucina_vegana.plant_settings.sunflower_light, @@ -55,8 +56,11 @@ else end -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:seed_" .. pname}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -66,6 +70,6 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end diff --git a/sunflower_redo.lua b/sunflower_redo.lua index 5e932cb..e8c2843 100755 --- a/sunflower_redo.lua +++ b/sunflower_redo.lua @@ -123,8 +123,11 @@ else end -table.insert(cucina_vegana.plant_settings.bonemeal_list, - {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) +if(cucina_vegana.plant_settings.bonemeal) then + table.insert(cucina_vegana.plant_settings.bonemeal_list, + {"cucina_vegana:" .. pname .. "_", step, "cucina_vegana:" .. pname .. "_seed"}) + +end -- if(cucina_vegana.plant_settings.bonemeal -- Register @ farming_nextgen if cucina_vegana.farming_ng then @@ -134,7 +137,7 @@ end -- if(cucina_vegana.farming_ng -- Register @ Signs_bot if(cucina_vegana.signs_bot) then - cucina_vegana.register_signs_bot(pname, step) + cucina_vegana.register_signs_bot(pname, 1, step) end