diff --git a/config.lua b/config.lua index bc79dae..392db3a 100644 --- a/config.lua +++ b/config.lua @@ -26,3 +26,5 @@ end setting("int", "spread", 400, "Approximate spacing between magma conduits") setting("bool", "remove_default_lava", true, "Removes default mapgen lava") setting("bool", "ameliorate_floods", true, "Ameliorate lava floods on the surface") +setting("int", "upper_limit", 512, "Upper extent of magma conduits") +setting("int", "lower_limit", -31000, "Lower extent of magma conduits") diff --git a/init.lua b/init.lua index ada4ac3..e5653c8 100644 --- a/init.lua +++ b/init.lua @@ -34,8 +34,8 @@ minetest.register_ore({ }, column_height_min = 2, column_height_max = 6, - height_min = -31000, - height_max = 512, + height_min = magma_conduits.config.lower_limit, + height_max = magma_conduits.config.upper_limit, noise_threshold = 0.9, noise_params = { offset = 0, diff --git a/settingtypes.txt b/settingtypes.txt index e01b383..1bef4f4 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -1,3 +1,5 @@ magma_conduits_spread (Approximate spacing between magma conduits) int 400 +magma_conduits_upper_limit (Upper extent of magma conduits) int 512 +magma_conduits_lower_limit (Lower extent of magma conduits) int -31000 magma_conduits_ameliorate_floods (Ameliorate lava floods on the surface) bool true magma_conduits_remove_default_lava (Remove default mapgen lava) bool true \ No newline at end of file