diff --git a/config.lua b/config.lua
index 5f1b630751cd3038a45aae0337be7fb7f8fa58c9..2df6d0d6f4562c35eefc45beebd07d715a336be7 100644
--- a/config.lua
+++ b/config.lua
@@ -50,6 +50,9 @@ setting("number", "fortcha", 0.0003) --chance of fortresses
 --realm limits for Dungeon Masters' Lair
 setting("number", "dm_top", -4000) --upper limit 
 setting("number", "dm_bot", -5000) --lower limit 
+--should fortresses and fountains spawn?
+setting("bool", "fortresses", true)
+setting("bool", "fountains", true)
 
 --minimum number of items in chests found in fortresses
 setting("number", "min_items", 2)
diff --git a/init.lua b/init.lua
index f213157659d6b2f70d5b2c519d9d7a1888477935..7852799894fb652756b048ae50009654e9067a5e 100644
--- a/init.lua
+++ b/init.lua
@@ -22,6 +22,9 @@ if caverealms.config.falling_icicles == true then
 	print("[caverealms] falling icicles enabled.")
 end
 
+local FORTRESSES = caverealms.config.fortresses --true | Should fortresses spawn?
+local FOUNTAINS = caverealms.config.fountains --true | Should fountains spawn?
+
 -- Parameters
 
 local YMIN = caverealms.config.ymin -- Approximate realm limits.
@@ -284,10 +287,10 @@ minetest.register_on_generated(function(minp, maxp, seed)
 							if math.random() < FLACHA then --neverending flames
 								data[ai] = c_flame
 							end
-							if math.random() < FOUNCHA then --DM FOUNTAIN
+							if math.random() < FOUNCHA and FOUNTAINS then --DM FOUNTAIN
 								data[ai] = c_fountain
 							end
-							if math.random() < FORTCHA then --DM FORTRESS
+							if math.random() < FORTCHA and FORTRESSES then --DM FORTRESS
 								data[ai] = c_fortress
 							end
 						end