added farming_stage_lengh setting to determine speed of crop growth

This commit is contained in:
TenPlus1 2020-04-20 09:38:28 +01:00
parent 17359d50af
commit 68332f2706
3 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
### Changelog: ### 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.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.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) - 1.41 - Each crop has it's own spawn rate (can be changed in farming.conf)

View File

@ -7,7 +7,7 @@
farming = { farming = {
mod = "redo", mod = "redo",
version = "20191202", version = "20200420",
path = minetest.get_modpath("farming"), path = minetest.get_modpath("farming"),
select = { select = {
type = "fixed", type = "fixed",
@ -79,7 +79,7 @@ end
-- Growth Logic -- 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 local STAGE_LENGTH_DEV = STAGE_LENGTH_AVG / 6

2
settingtypes.txt Normal file
View File

@ -0,0 +1,2 @@
# Contains a value used for speed of crop growth in seconds
farming_stage_length (Farming Stage Length) float 160.0