From af7aaca77ad04e7c164d5465eefa51b919e04fbf Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 4 Jan 2013 18:56:09 -0500 Subject: [PATCH] moved perlin seeddiff settings to respective mods' init.lua's, tweaked default perlin values to be the same as used in the game's mapgen for spawning dry shrubs and jungle grass, so that jungle grass mod will replenish the game's biomes. --- flowers/init.lua | 1 + junglegrass/init.lua | 1 + plants_lib/init.lua | 13 +++++-------- poinsonivy/init.lua | 1 + 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/flowers/init.lua b/flowers/init.lua index 8126725..94e3182 100644 --- a/flowers/init.lua +++ b/flowers/init.lua @@ -4,6 +4,7 @@ local spawn_delay = 2000 -- 2000 local spawn_chance = 100 -- 100 local grow_delay = 1000 -- 1000 local grow_chance = 10 -- 10 +local flowers_seed_diff = plantlife_seed_diff local flowers_list = { { "Rose", "rose", spawn_delay, 10, spawn_chance , 10}, diff --git a/junglegrass/init.lua b/junglegrass/init.lua index 4f93768..5a18eed 100644 --- a/junglegrass/init.lua +++ b/junglegrass/init.lua @@ -4,6 +4,7 @@ local spawn_delay = 2000 -- 2000 local spawn_chance = 100 -- 100 local grow_delay = 1000 -- 1000 local grow_chance = 10 -- 10 +local junglegrass_seed_diff = plantlife_seed_diff local grasses_list = { {"junglegrass:shortest","junglegrass:short" }, diff --git a/plants_lib/init.lua b/plants_lib/init.lua index 529734a..c0cb353 100644 --- a/plants_lib/init.lua +++ b/plants_lib/init.lua @@ -12,19 +12,16 @@ -- Various settings - most of these probably won't need to be changed -local plantlife_debug = true -- ...unless you want the modpack to spam the console ;-) +plantlife_seed_diff = 329 -- needs to be global so other mods can see it + +local plantlife_debug = false -- ...unless you want the modpack to spam the console ;-) -local plantlife_seed_diff = 123 local perlin_octaves = 3 -local perlin_persistence = 0.2 -local perlin_scale = 25 +local perlin_persistence = 0.6 +local perlin_scale = 100 local plantlife_limit = 0.1 -- compared against perlin noise. lower = more abundant -local flowers_seed_diff = plantlife_seed_diff -local junglegrass_seed_diff = plantlife_seed_diff + 10 -local poisonivy_seed_diff = plantlife_seed_diff + 10 - -- Local functions math.randomseed(os.time()) diff --git a/poinsonivy/init.lua b/poinsonivy/init.lua index b98e024..316a3ae 100644 --- a/poinsonivy/init.lua +++ b/poinsonivy/init.lua @@ -4,6 +4,7 @@ local spawn_delay = 2000 -- 2000 local spawn_chance = 100 -- 100 local grow_delay = 1000 -- 1000 local grow_chance = 10 -- 10 +local poisonivy_seed_diff = plantlife_seed_diff + 10 local verticals_list = { "default:dirt",