diff --git a/asparagus_default.lua b/asparagus_default.lua index 7a134d4..165a7d4 100644 --- a/asparagus_default.lua +++ b/asparagus_default.lua @@ -18,7 +18,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 11, + minlight = cucina_vegana_plant_settings.asparagus_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4, attached_node = 1}, diff --git a/asparagus_redo.lua b/asparagus_redo.lua index 6806b52..49302f3 100644 --- a/asparagus_redo.lua +++ b/asparagus_redo.lua @@ -20,7 +20,7 @@ local modname = minetest.get_current_modname() inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 11, + minlight = cucina_vegana_plant_settings.asparagus_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, paramtype = "light", diff --git a/chives_default.lua b/chives_default.lua index ace19f7..650ecc9 100644 --- a/chives_default.lua +++ b/chives_default.lua @@ -18,7 +18,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 10, + minlight = cucina_vegana_plant_settings.chives_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4}, diff --git a/chives_redo.lua b/chives_redo.lua index 9101540..f824acc 100644 --- a/chives_redo.lua +++ b/chives_redo.lua @@ -19,7 +19,7 @@ minetest.register_node("cucina_vegana:" .. pname .. "_seed", { tiles = {"cucina_vegana_" .. pname .. "_seed.png"}, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", - minlight = 10, + minlight = cucina_vegana_plant_settings.chives_light, maxlight = default.LIGHT_MAX, drawtype = "signlike", groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, diff --git a/flax_default.lua b/flax_default.lua index b24fce5..8ee30c0 100644 --- a/flax_default.lua +++ b/flax_default.lua @@ -18,7 +18,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 10, + minlight = cucina_vegana_plant_settings.flax_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4}, diff --git a/flax_redo.lua b/flax_redo.lua index 933b222..ee0a112 100644 --- a/flax_redo.lua +++ b/flax_redo.lua @@ -19,7 +19,7 @@ minetest.register_node("cucina_vegana:" .. pname .. "_seed", { tiles = {"cucina_vegana_" .. pname .. "_seed.png"}, inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", - minlight = 10, + minlight = cucina_vegana_plant_settings.flax_light, maxlight = default.LIGHT_MAX, drawtype = "signlike", groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, diff --git a/kohlrabi_default.lua b/kohlrabi_default.lua index fdd885b..9df5c85 100644 --- a/kohlrabi_default.lua +++ b/kohlrabi_default.lua @@ -18,7 +18,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 13, + minlight = cucina_vegana_plant_settings.kohlrabi_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4, attached_node = 1}, diff --git a/kohlrabi_redo.lua b/kohlrabi_redo.lua index a980a45..26f563c 100644 --- a/kohlrabi_redo.lua +++ b/kohlrabi_redo.lua @@ -20,7 +20,7 @@ local modname = minetest.get_current_modname() inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 13, + minlight = cucina_vegana_plant_settings.kohlrabi_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, paramtype = "light", diff --git a/lettuce_default.lua b/lettuce_default.lua index e23c4b5..bbb04d7 100644 --- a/lettuce_default.lua +++ b/lettuce_default.lua @@ -19,7 +19,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 12, + minlight = cucina_vegana_plant_settings.lettuce_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4, attached_node = 1}, diff --git a/lettuce_redo.lua b/lettuce_redo.lua index 6f480d4..fbba78d 100644 --- a/lettuce_redo.lua +++ b/lettuce_redo.lua @@ -20,7 +20,7 @@ minetest.register_node("cucina_vegana:" .. pname .. "_seed", { inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 12, + minlight = cucina_vegana_plant_settings.lettuce_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, paramtype = "light", diff --git a/parsley_default.lua b/parsley_default.lua index 725bb88..95ab760 100644 --- a/parsley_default.lua +++ b/parsley_default.lua @@ -18,7 +18,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 11, + minlight = cucina_vegana_plant_settings.parsley_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4, attached_node = 1}, diff --git a/parsley_redo.lua b/parsley_redo.lua index 6f6487b..75e4261 100644 --- a/parsley_redo.lua +++ b/parsley_redo.lua @@ -20,7 +20,7 @@ minetest.register_node("cucina_vegana:" .. pname .. "_seed", { inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 11, + minlight = cucina_vegana_plant_settings.parsley_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4, attached_node = 1}, paramtype = "light", diff --git a/rice_default.lua b/rice_default.lua index b55a2dc..bfc9196 100644 --- a/rice_default.lua +++ b/rice_default.lua @@ -18,7 +18,7 @@ farming.register_plant("cucina_vegana:" .. pname .. "", { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 12, + minlight = cucina_vegana_plant_settings.rice_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4, attached_node = 1}, diff --git a/rice_redo.lua b/rice_redo.lua index 8907d5d..b30323b 100644 --- a/rice_redo.lua +++ b/rice_redo.lua @@ -20,7 +20,7 @@ local modname = minetest.get_current_modname() inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 12, + minlight = cucina_vegana_plant_settings.rice_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, paramtype = "light", diff --git a/rosemary_default.lua b/rosemary_default.lua index 6c306f6..bc05e73 100644 --- a/rosemary_default.lua +++ b/rosemary_default.lua @@ -19,7 +19,7 @@ farming.register_plant("cucina_vegana:" .. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = 6, - minlight = 12, + minlight = cucina_vegana_plant_settings.rosemary_light, maxlight = default.LIGHT_MAX, fertility = {"sand", "grassland"}, groups = {flammable = 4}, diff --git a/rosemary_redo.lua b/rosemary_redo.lua index df0be6e..f417252 100644 --- a/rosemary_redo.lua +++ b/rosemary_redo.lua @@ -20,7 +20,7 @@ minetest.register_node("cucina_vegana:" .. pname .. "_seed", { inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 12, + minlight = cucina_vegana_plant_settings.rosemary_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, paramtype = "light", diff --git a/settingtypes.lua b/settingtypes.lua index 96c9156..9b4d6b7 100644 --- a/settingtypes.lua +++ b/settingtypes.lua @@ -5,39 +5,50 @@ -- Asparagus cucina_vegana_plant_settings.asparagus = true -- Asparagus is on cucina_vegana_plant_settings.asparagus_scale = 0.0006 -- Scalevalue - +cucina_vegana_plant_settings.asparagus_light = 11 + -- Chives cucina_vegana_plant_settings.chives = true -- Chives is on cucina_vegana_plant_settings.chives_scale = 0.0005 +cucina_vegana_plant_settings.chives_light = 10 -- Flax cucina_vegana_plant_settings.flax = true -- Flax is on cucina_vegana_plant_settings.flax_scale = 0.0006 - +cucina_vegana_plant_settings.flax_light = 10 + -- Kohlrabi cucina_vegana_plant_settings.kohlrabi = true -- Kohlrabi is on cucina_vegana_plant_settings.kohlrabi_scale = 0.0007 - +cucina_vegana_plant_settings.kohlrabi_light = 13 + -- Lettuce cucina_vegana_plant_settings.lettuce = true -- Lettuce is on cucina_vegana_plant_settings.lettuce_scale = 0.0002 - +cucina_vegana_plant_settings.lettuce_light = 12 + -- Parsley cucina_vegana_plant_settings.parsley = true -- Parsley is on cucina_vegana_plant_settings.parsley_scale = 0.0005 - +cucina_vegana_plant_settings.parsley_light = 11 + -- Rice cucina_vegana_plant_settings.rice = true -- Rice is on cucina_vegana_plant_settings.rice_scale = 0.0007 - +cucina_vegana_plant_settings.rice_light = 12 + -- Rosemary cucina_vegana_plant_settings.rosemary = true -- Rosemary is on cucina_vegana_plant_settings.rosemary_scale = 0.0008 - +cucina_vegana_plant_settings.rosemary_light = 12 + -- Soy cucina_vegana_plant_settings.soy = true -- Soy is on cucina_vegana_plant_settings.soy_scale = 0.0007 - +cucina_vegana_plant_settings.soy_light = 12 + -- Sunflowers# cucina_vegana_plant_settings.sunflower = true -- Sunflower is on cucina_vegana_plant_settings.sunflower_scale = 0.0003 +cucina_vegana_plant_settings.sunflower_light = 13 + diff --git a/soy_default.lua b/soy_default.lua index a6f67d6..ed61ec1 100644 --- a/soy_default.lua +++ b/soy_default.lua @@ -17,7 +17,7 @@ farming.register_plant("cucina_vegana:".. pname, { description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_".. pname .. "_seed.png", steps = step, - minlight = 12, + minlight = cucina_vegana_plant_settings.soy_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4, attached_node = 1}, diff --git a/soy_redo.lua b/soy_redo.lua index dd41343..66464a8 100644 --- a/soy_redo.lua +++ b/soy_redo.lua @@ -20,7 +20,7 @@ minetest.register_node("cucina_vegana:".. pname .."_seed", { inventory_image = "cucina_vegana_".. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 12, + minlight = cucina_vegana_plant_settings.soy_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 4}, paramtype = "light", diff --git a/sunflower_default.lua b/sunflower_default.lua index 30501b8..ba3f245 100644 --- a/sunflower_default.lua +++ b/sunflower_default.lua @@ -26,7 +26,7 @@ else description = dname .. " " .. S("Seed"), inventory_image = "cucina_vegana_" .. pname .. "_seed.png", steps = step, - minlight = 13, + minlight = cucina_vegana_plant_settings.sunflower_light, maxlight = default.LIGHT_MAX, fertility = {"grassland"}, groups = {flammable = 4}, diff --git a/sunflower_redo.lua b/sunflower_redo.lua index d41587b..661f70e 100644 --- a/sunflower_redo.lua +++ b/sunflower_redo.lua @@ -28,7 +28,7 @@ else inventory_image = "cucina_vegana_" .. pname .. "_seed.png", wield_image = "cucina_vegana_" .. pname .. "_seed.png", drawtype = "signlike", - minlight = 13, + minlight = cucina_vegana_plant_settings.sunflower_light, maxlight = default.LIGHT_MAX, groups = {seed = 1, snappy = 3, attached_node = 1, dig_immediate=1, flammable = 4}, paramtype = "light",