diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-14 18:42:03 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-14 18:42:03 +0100 |
commit | 1c06bf2628af2c5d0bc8a5b0c32ad8c617083e40 (patch) | |
tree | 9bfd082fdcd7f5cc13634ffd1b351c1a60143f10 | |
parent | a501c5d0d4398cf0338e98d5880b3cb17844bc80 (diff) |
added farming.rarety to settings
-rw-r--r-- | README.txt | 1 | ||||
-rw-r--r-- | farming.conf_example | 3 | ||||
-rw-r--r-- | init.lua | 3 | ||||
-rw-r--r-- | mapgen.lua | 4 |
4 files changed, 8 insertions, 3 deletions
@@ -13,6 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t Changelog: +1.27 - Added meshoptions to api and wheat plants, added farming.rarity setting to spawn more/less crops on map 1.26 - Added support for [toolranks] mod when using hoe's 1.25 - Added check for farming.conf setting file to disable specific crops globally (inside mod folder) or world specific (inside world folder) 1.24 - Added Hemp which can be crafted into fibre, paper, string, rope and oil. diff --git a/farming.conf_example b/farming.conf_example index 696d007..636322b 100644 --- a/farming.conf_example +++ b/farming.conf_example @@ -25,3 +25,6 @@ farming.grapes = true farming.barley = true farming.hemp = true farming.donuts = true + +-- rarety of crops on map, default is 0.006 (higher number = more crops) +farming.rarety = 0.006 @@ -1,5 +1,5 @@ --[[ - Farming Redo Mod 1.25 (6th May 2017) + Farming Redo Mod by TenPlus1 NEW growing routine by prestidigitator auto-refill by crabman77 @@ -646,6 +646,7 @@ farming.grapes = true farming.barley = true farming.hemp = true farming.donuts = true +farming.rarety = 0.006 -- Load new global settings if found inside mod folder @@ -12,7 +12,7 @@ local function register_plant(name, min, max, spawnby, num, enabled) sidelen = 16, noise_params = { offset = 0, - scale = 0.006, + scale = farming.rarety, -- 0.006, spread = {x = 100, y = 100, z = 100}, seed = 329, octaves = 3, @@ -60,7 +60,7 @@ minetest.register_decoration({ sidelen = 16, noise_params = { offset = 0, - scale = 0.06, + scale = farming.rarety, -- 0.06, spread = {x = 100, y = 100, z = 100}, seed = 420, octaves = 3, |