diff --git a/init.lua b/init.lua index e50b7b6..eae63f5 100644 --- a/init.lua +++ b/init.lua @@ -37,6 +37,11 @@ if fun_caves.starting_equipment == nil then fun_caves.starting_equipment = false end +fun_caves.pyramids_everywhere = minetest.setting_getbool('fun_caves_pyramids_everywhere') +if fun_caves.pyramids_everywhere == nil then + fun_caves.pyramids_everywhere = false +end + fun_caves.DEBUG = false -- for maintenance only diff --git a/pyramid.lua b/pyramid.lua index 36059b3..75021cb 100644 --- a/pyramid.lua +++ b/pyramid.lua @@ -83,7 +83,7 @@ fun_caves.pyramid = function(minp, maxp, data, p2data, area, biomemap, biome_ids if biomemap then local biome = biome_ids[biomemap[3240]] - if not pyramid_biomes[biome] then + if not (fun_caves.pyramids_everywhere or pyramid_biomes[biome]) then return end elseif math.random(5) ~= 1 then diff --git a/settingtypes.txt b/settingtypes.txt index 7b3bf87..ff5c51c 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -15,3 +15,6 @@ fun_caves_use_villages (Villages) bool true # Set to give wooden tools to starting players. fun_caves_starting_equipment (Starting Equipment) bool false + +# Set to create pyramids in any biome. +fun_caves_pyramids_everywhere (Pyramids Everywhere) bool false