added farming.rarety to settings

This commit is contained in:
TenPlus1 2017-08-14 18:42:03 +01:00
parent a501c5d0d4
commit 1c06bf2628
4 changed files with 8 additions and 3 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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,