forked from mtcontrib/plantlife_modpack
Renamed config/settings var names
This commit is contained in:
parent
c19eb709d8
commit
6583cff894
@ -102,9 +102,9 @@ minetest.register_node("ferns:fern_01", {
|
||||
-- Spawning
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
assert(abstract_ferns.config.Lady_fern == true)
|
||||
assert(abstract_ferns.config.enable_lady_fern == true)
|
||||
|
||||
if abstract_ferns.config.Ferns_near_Tree == true then
|
||||
if abstract_ferns.config.lady_ferns_near_tree == true then
|
||||
plantslib:register_generate_plant({ -- near trees (woodlands)
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
@ -132,7 +132,7 @@ if abstract_ferns.config.Ferns_near_Tree == true then
|
||||
)
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Ferns_near_Rock == true then
|
||||
if abstract_ferns.config.lady_ferns_near_rock == true then
|
||||
plantslib:register_generate_plant({ -- near stone (mountains)
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
@ -158,7 +158,7 @@ if abstract_ferns.config.Ferns_near_Rock == true then
|
||||
)
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Ferns_near_Ores == true then -- this one causes a huge fps drop
|
||||
if abstract_ferns.config.lady_ferns_near_ores == true then -- this one causes a huge fps drop
|
||||
plantslib:register_generate_plant({ -- near ores (potential mining sites)
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
@ -195,7 +195,7 @@ if abstract_ferns.config.Ferns_near_Ores == true then -- this one causes a huge
|
||||
)
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Ferns_in_Groups == true then -- this one is meant as a replacement of Ferns_near_Ores
|
||||
if abstract_ferns.config.lady_ferns_in_groups == true then -- this one is meant as a replacement of Ferns_near_Ores
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
|
@ -275,10 +275,10 @@ minetest.register_abm({
|
||||
-- GENERATE GIANT TREE FERN
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
assert(abstract_ferns.config.Giant_Tree_Fern == true)
|
||||
assert(abstract_ferns.config.enable_giant_treefern == true)
|
||||
|
||||
-- in jungles
|
||||
if abstract_ferns.config.Giant_Tree_Ferns_in_Jungle == true then
|
||||
if abstract_ferns.config.enable_giant_treeferns_in_jungle == true then
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
@ -303,7 +303,7 @@ if abstract_ferns.config.Giant_Tree_Ferns_in_Jungle == true then
|
||||
end
|
||||
|
||||
-- for oases & tropical beaches
|
||||
if abstract_ferns.config.Giant_Tree_Ferns_for_Oases == true then
|
||||
if abstract_ferns.config.enable_giant_treeferns_in_oases == true then
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:sand"--,
|
||||
|
@ -94,7 +94,7 @@ minetest.register_node("ferns:horsetail_04", { -- the one in inventory
|
||||
-----------------------------------------------------------------------------------------------
|
||||
-- Spawning
|
||||
-----------------------------------------------------------------------------------------------
|
||||
if abstract_ferns.config.Horsetails_Spawning == true then
|
||||
if abstract_ferns.config.enable_horsetails_spawning == true then
|
||||
plantslib:spawn_on_surfaces({
|
||||
spawn_delay = 1200,
|
||||
spawn_plants = {
|
||||
@ -125,9 +125,9 @@ end
|
||||
-- Generating
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
assert(abstract_ferns.config.Horsetails == true)
|
||||
assert(abstract_ferns.config.enable_horsetails == true)
|
||||
|
||||
if abstract_ferns.config.Horsetails_on_Grass == true then
|
||||
if abstract_ferns.config.enable_horsetails_on_grass == true then
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
@ -158,7 +158,7 @@ if abstract_ferns.config.Horsetails_on_Grass == true then
|
||||
)
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Horsetails_on_Stony == true then
|
||||
if abstract_ferns.config.enable_horsetails_on_stones == true then
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:gravel", -- roots go deep
|
||||
|
@ -10,19 +10,19 @@ abstract_ferns = {}
|
||||
|
||||
dofile(minetest.get_modpath("ferns").."/settings.lua")
|
||||
|
||||
if abstract_ferns.config.Lady_fern == true then
|
||||
if abstract_ferns.config.enable_lady_fern == true then
|
||||
dofile(minetest.get_modpath("ferns").."/fern.lua")
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Horsetails == true then
|
||||
if abstract_ferns.config.enable_horsetails == true then
|
||||
dofile(minetest.get_modpath("ferns").."/horsetail.lua")
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Tree_Fern == true then
|
||||
if abstract_ferns.config.enable_treefern == true then
|
||||
dofile(minetest.get_modpath("ferns").."/treefern.lua")
|
||||
end
|
||||
|
||||
if abstract_ferns.config.Giant_Tree_Fern == true then
|
||||
if abstract_ferns.config.enable_giant_treefern == true then
|
||||
dofile(minetest.get_modpath("ferns").."/gianttreefern.lua")
|
||||
end
|
||||
|
||||
|
@ -16,28 +16,28 @@
|
||||
abstract_ferns.config = {}
|
||||
|
||||
-- Which plants should generate/spawn?
|
||||
abstract_ferns.config.Lady_fern = true
|
||||
abstract_ferns.config.Horsetails = true
|
||||
abstract_ferns.config.Tree_Fern = true
|
||||
abstract_ferns.config.Giant_Tree_Fern = true
|
||||
abstract_ferns.config.enable_lady_fern = true
|
||||
abstract_ferns.config.enable_horsetails = true
|
||||
abstract_ferns.config.enable_treefern = true
|
||||
abstract_ferns.config.enable_giant_treefern = true
|
||||
|
||||
-- Where should they generate/spawn? (if they generate/spawn)
|
||||
--
|
||||
-- Lady-Fern
|
||||
abstract_ferns.config.Ferns_near_Tree = true
|
||||
abstract_ferns.config.Ferns_near_Rock = true
|
||||
abstract_ferns.config.Ferns_near_Ores = true -- if there's a bunch of ferns there's ores nearby, this one causes a huge fps drop
|
||||
abstract_ferns.config.Ferns_in_Groups = false -- this one is meant as a replacement of Ferns_near_Ores: ferns tend to generate in groups, less fps drop, no hint for nearby ores
|
||||
abstract_ferns.config.lady_ferns_near_tree = true
|
||||
abstract_ferns.config.lady_ferns_near_rock = true
|
||||
abstract_ferns.config.lady_ferns_near_ores = true -- if there's a bunch of ferns there's ores nearby, this one causes a huge fps drop
|
||||
abstract_ferns.config.lady_ferns_in_groups = false -- this one is meant as a replacement of Ferns_near_Ores: ferns tend to generate in groups, less fps drop, no hint for nearby ores
|
||||
--
|
||||
-- Horsetails
|
||||
abstract_ferns.config.Horsetails_Spawning = false -- horsetails will grow in already explored areas, over time, near water or gravel
|
||||
abstract_ferns.config.Horsetails_on_Grass = true -- on dirt with grass and swamp (sumpf mod)
|
||||
abstract_ferns.config.Horsetails_on_Stony = true -- on gravel, mossy cobble and silex (stoneage mod)
|
||||
abstract_ferns.config.enable_horsetails_spawning = false -- horsetails will grow in already explored areas, over time, near water or gravel
|
||||
abstract_ferns.config.enable_horsetails_on_grass = true -- on dirt with grass and swamp (sumpf mod)
|
||||
abstract_ferns.config.enable_horsetails_on_stones = true -- on gravel, mossy cobble and silex (stoneage mod)
|
||||
--
|
||||
-- Tree_Fern
|
||||
abstract_ferns.config.Tree_Ferns_in_Jungle = true
|
||||
abstract_ferns.config.Tree_Ferns_for_Oases = true -- for oases and tropical beaches
|
||||
abstract_ferns.config.enable_treeferns_in_jungle = true
|
||||
abstract_ferns.config.enable_treeferns_in_oases = true -- for oases and tropical beaches
|
||||
--
|
||||
-- Giant_Tree_Fern
|
||||
abstract_ferns.config.Giant_Tree_Ferns_in_Jungle = true
|
||||
abstract_ferns.config.Giant_Tree_Ferns_for_Oases = true -- for oases and tropical beaches
|
||||
abstract_ferns.config.enable_giant_treeferns_in_jungle = true
|
||||
abstract_ferns.config.enable_giant_treeferns_in_oases = true -- for oases and tropical beaches
|
||||
|
@ -189,10 +189,10 @@ minetest.register_abm({
|
||||
-- GENERATE TREE FERN
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
assert(abstract_ferns.config.Tree_Fern == true)
|
||||
assert(abstract_ferns.config.enable_treefern == true)
|
||||
|
||||
-- in jungles
|
||||
if abstract_ferns.config.Tree_Ferns_in_Jungle == true then
|
||||
if abstract_ferns.config.enable_treeferns_in_jungle == true then
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:dirt_with_grass",
|
||||
@ -220,7 +220,7 @@ if abstract_ferns.config.Tree_Ferns_in_Jungle == true then
|
||||
end
|
||||
|
||||
-- for oases & tropical beaches
|
||||
if abstract_ferns.config.Tree_Ferns_for_Oases == true then
|
||||
if abstract_ferns.config.enable_treeferns_in_oases == true then
|
||||
plantslib:register_generate_plant({
|
||||
surface = {
|
||||
"default:sand"--,
|
||||
|
Loading…
Reference in New Issue
Block a user