From 68332f27067b93976caf3f3e1e231e264f9588a2 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 20 Apr 2020 09:38:28 +0100 Subject: [PATCH] added farming_stage_lengh setting to determine speed of crop growth --- README.md | 1 + init.lua | 4 ++-- settingtypes.txt | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 settingtypes.txt diff --git a/README.md b/README.md index 128bf76..f569e3e 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t ### Changelog: +- 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth - 1.43 - Scythe works on use instead of right-click, added seed=1 groups to actual seeds and seed=2 group for plantable food items. - 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block. - 1.41 - Each crop has it's own spawn rate (can be changed in farming.conf) diff --git a/init.lua b/init.lua index 0625f0a..2cb5544 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ farming = { mod = "redo", - version = "20191202", + version = "20200420", path = minetest.get_modpath("farming"), select = { type = "fixed", @@ -79,7 +79,7 @@ end -- Growth Logic -local STAGE_LENGTH_AVG = 160.0 +local STAGE_LENGTH_AVG = tonumber(minetest.settings:get("farming_stage_length")) or 160 local STAGE_LENGTH_DEV = STAGE_LENGTH_AVG / 6 diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..05f50af --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,2 @@ +# Contains a value used for speed of crop growth in seconds +farming_stage_length (Farming Stage Length) float 160.0