mirror of
https://github.com/minetest-mods/moreores.git
synced 2024-11-16 15:20:35 +01:00
e67cc361e9
All configurable settings are moved into settingtypes. The three minerals can be independently enabled/disabled. Also, the unrealistic default crafting recipe for bronze can be disabled so that only the tin+copper recipe is available. Updating the internationalization mod to current version.
43 lines
2.8 KiB
Lua
43 lines
2.8 KiB
Lua
------------------------------------------------------------------------------
|
|
------------------------------ CONFIGURATION ---------------------------------
|
|
------------------------------------------------------------------------------
|
|
|
|
-- Chunk sizes for ore generation (bigger = ore deposits are more scattered around)
|
|
-- Amount of ore per chunk (higher = bigger ore deposits)
|
|
-- Minimal depths of ore generation (Y coordinate, 0 being sea level by default)
|
|
-- Maximal depths of ore generation (Y coordinate, 0 being sea level by default)
|
|
|
|
-- Tin
|
|
moreores.tin_enabled = minetest.setting_getbool("moreores_tin_enabled")
|
|
if moreores.tin_enabled == nil then moreores.tin_enabled = true end -- defaults to true
|
|
moreores.tin_chunk_size = tonumber(minetest.setting_get("moreores_tin_chunk_size")) or 7
|
|
moreores.tin_ore_per_chunk = tonumber(minetest.setting_get("moreores_tin_ore_per_chunk")) or 3
|
|
moreores.tin_min_depth = tonumber(minetest.setting_get("moreores_tin_min_depth")) or -31000
|
|
moreores.tin_max_depth = tonumber(minetest.setting_get("moreores_tin_max_depth")) or 8
|
|
|
|
moreores.override_default_bronze_recipe = minetest.setting_getbool("moreores_override_default_bronze_recipe") -- defaults to false
|
|
|
|
minetest.debug("tin", tostring(moreores.tin_enabled), moreores.tin_chunk_size, moreores.tin_ore_per_chunk, moreores.tin_min_depth, moreores.tin_max_depth)
|
|
|
|
-- Silver
|
|
|
|
moreores.silver_enabled = minetest.setting_getbool("moreores_silver_enabled")
|
|
if moreores.silver_enabled == nil then moreores.silver_enabled = true end -- defaults to true
|
|
moreores.silver_chunk_size = tonumber(minetest.setting_get("moreores_silver_chunk_size")) or 11
|
|
moreores.silver_ore_per_chunk = tonumber(minetest.setting_get("moreores_silver_ore_per_chunk")) or 4
|
|
moreores.silver_min_depth = tonumber(minetest.setting_get("moreores_silver_min_depth")) or -31000
|
|
moreores.silver_max_depth = tonumber(minetest.setting_get("moreores_silver_max_depth")) or -2
|
|
|
|
minetest.debug("silver", tostring(moreores.silver_enabled), moreores.silver_chunk_size, moreores.silver_ore_per_chunk, moreores.silver_min_depth, moreores.silver_max_depth)
|
|
|
|
-- Mithril
|
|
|
|
moreores.mithril_enabled = minetest.setting_getbool("moreores_mithril_enabled")
|
|
if moreores.mithril_enabled == nil then moreores.mithril_enabled = true end -- defaults to true
|
|
moreores.mithril_chunk_size = tonumber(minetest.setting_get("moreores_mithril_chunk_size")) or 11
|
|
moreores.mithril_ore_per_chunk = tonumber(minetest.setting_get("moreores_mithril_ore_per_chunk")) or 1
|
|
moreores.mithril_min_depth = tonumber(minetest.setting_get("moreores_mithril_min_depth")) or -31000
|
|
moreores.mithril_max_depth = tonumber(minetest.setting_get("moreores_mithril_max_depth")) or -512
|
|
|
|
minetest.debug("mithril", tostring(moreores.mithril_enabled), moreores.mithril_chunk_size, moreores.mithril_ore_per_chunk, moreores.mithril_min_depth, moreores.mithril_max_depth)
|