Adding settings, optional override of default bronze recipe, update internationalization

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.
This commit is contained in:
FaceDeer 2017-02-10 14:43:25 -07:00
parent a4d6418c83
commit e67cc361e9
17 changed files with 729 additions and 230 deletions

View File

@ -1,27 +0,0 @@
------------------------------------------------------------------------------
------------------------------ CONFIGURATION ---------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-------- Change settings by changing the values after the "=". ---------------
------------------------------------------------------------------------------
-- Chunk sizes for ore generation (bigger = ore deposits are more scattered around)
moreores.tin_chunk_size = 7
moreores.silver_chunk_size = 11
moreores.mithril_chunk_size = 11
-- Amount of ore per chunk (higher = bigger ore deposits)
moreores.tin_ore_per_chunk = 3
moreores.silver_ore_per_chunk = 4
moreores.mithril_ore_per_chunk = 1
-- Minimal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores.tin_min_depth = -31000
moreores.silver_min_depth = -31000
moreores.mithril_min_depth = -31000
-- Maximal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores.tin_max_depth = 8
moreores.silver_max_depth = -2
moreores.mithril_max_depth = -512

198
init.lua
View File

@ -3,23 +3,18 @@
** More Ores **
By Calinou, with the help of Nore.
Copyright (c) 2011-2015 Calinou and contributors.
Copyright (c) 2011-2017 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]
moreores = {}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
-- internationalization boilerplate
local modpath = minetest.get_modpath("moreores")
local S, NS = dofile(modpath.."/intllib.lua")
dofile(modpath .. "/_config.txt")
dofile(modpath .. "/readsettings.lua")
-- `mg` support:
if minetest.get_modpath("mg") then
@ -233,83 +228,91 @@ end
-- Add everything:
local modname = "moreores"
local oredefs = {
silver = {
description = "Silver",
makes = {ore = true, block = true, lump = true, ingot = true, chest = true},
oredef = {clust_scarcity = moreores.silver_chunk_size * moreores.silver_chunk_size * moreores.silver_chunk_size,
clust_num_ores = moreores.silver_ore_per_chunk,
clust_size = moreores.silver_chunk_size,
y_min = moreores.silver_min_depth,
y_max = moreores.silver_max_depth
},
tools = {
pick = {
cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel= 1}
},
hoe = {
uses = 300
},
shovel = {
crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel= 1}
},
axe = {
choppy = {times = {[1] = 2.50, [2] = 0.80, [3] = 0.50}, uses = 100, maxlevel= 1},
fleshy = {times = {[2] = 1.10, [3] = 0.60}, uses = 100, maxlevel= 1}
},
sword = {
fleshy = {times = {[2] = 0.70, [3] = 0.30}, uses = 100, maxlevel= 1},
snappy = {times = {[2] = 0.70, [3] = 0.30}, uses = 100, maxlevel= 1},
choppy = {times = {[3] = 0.80}, uses = 100, maxlevel= 0}
},
local oredefs = {}
if moreores.silver_enabled then
oredefs.silver = {
description = S("Silver"),
makes = {ore = true, block = true, lump = true, ingot = true, chest = true},
oredef = {clust_scarcity = moreores.silver_chunk_size * moreores.silver_chunk_size * moreores.silver_chunk_size,
clust_num_ores = moreores.silver_ore_per_chunk,
clust_size = moreores.silver_chunk_size,
y_min = moreores.silver_min_depth,
y_max = moreores.silver_max_depth
},
full_punch_interval = 1.0,
damage_groups = {fleshy = 6},
},
tin = {
description = "Tin",
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
oredef = {clust_scarcity = moreores.tin_chunk_size * moreores.tin_chunk_size * moreores.tin_chunk_size,
clust_num_ores = moreores.tin_ore_per_chunk,
clust_size = moreores.tin_chunk_size,
y_min = moreores.tin_min_depth,
y_max = moreores.tin_max_depth
},
tools = {},
},
mithril = {
description = "Mithril",
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
oredef = {clust_scarcity = moreores.mithril_chunk_size * moreores.mithril_chunk_size * moreores.mithril_chunk_size,
clust_num_ores = moreores.mithril_ore_per_chunk,
clust_size = moreores.mithril_chunk_size,
y_min = moreores.mithril_min_depth,
y_max = moreores.mithril_max_depth
},
tools = {
pick = {
cracky = {times = {[1] = 2.25, [2] = 0.55, [3] = 0.35}, uses = 200, maxlevel= 1}
},
hoe = {
uses = 1000
},
shovel = {
crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel= 1}
},
axe = {
choppy = {times = {[1] = 1.75, [2] = 0.45, [3] = 0.45}, uses = 200, maxlevel= 1},
fleshy = {times = {[2] = 0.95, [3] = 0.30}, uses = 200, maxlevel= 1}
},
sword = {
fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 200, maxlevel= 1},
snappy = {times = {[2] = 0.70, [3] = 0.25}, uses = 200, maxlevel= 1},
choppy = {times = {[3] = 0.65}, uses = 200, maxlevel= 0}
}
tools = {
pick = {
cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel= 1}
},
full_punch_interval = 0.45,
damage_groups = {fleshy = 9},
}
hoe = {
uses = 300
},
shovel = {
crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel= 1}
},
axe = {
choppy = {times = {[1] = 2.50, [2] = 0.80, [3] = 0.50}, uses = 100, maxlevel= 1},
fleshy = {times = {[2] = 1.10, [3] = 0.60}, uses = 100, maxlevel= 1}
},
sword = {
fleshy = {times = {[2] = 0.70, [3] = 0.30}, uses = 100, maxlevel= 1},
snappy = {times = {[2] = 0.70, [3] = 0.30}, uses = 100, maxlevel= 1},
choppy = {times = {[3] = 0.80}, uses = 100, maxlevel= 0}
},
},
full_punch_interval = 1.0,
damage_groups = {fleshy = 6},
}
end
if moreores.tin_enabled then
oredefs.tin = {
description = S("Tin"),
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
oredef = {clust_scarcity = moreores.tin_chunk_size * moreores.tin_chunk_size * moreores.tin_chunk_size,
clust_num_ores = moreores.tin_ore_per_chunk,
clust_size = moreores.tin_chunk_size,
y_min = moreores.tin_min_depth,
y_max = moreores.tin_max_depth
},
tools = {},
}
end
if moreores.mithril_enabled then
oredefs.mithril = {
description = S("Mithril"),
makes = {ore = true, block = true, lump = true, ingot = true, chest = false},
oredef = {clust_scarcity = moreores.mithril_chunk_size * moreores.mithril_chunk_size * moreores.mithril_chunk_size,
clust_num_ores = moreores.mithril_ore_per_chunk,
clust_size = moreores.mithril_chunk_size,
y_min = moreores.mithril_min_depth,
y_max = moreores.mithril_max_depth
},
tools = {
pick = {
cracky = {times = {[1] = 2.25, [2] = 0.55, [3] = 0.35}, uses = 200, maxlevel= 1}
},
hoe = {
uses = 1000
},
shovel = {
crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel= 1}
},
axe = {
choppy = {times = {[1] = 1.75, [2] = 0.45, [3] = 0.45}, uses = 200, maxlevel= 1},
fleshy = {times = {[2] = 0.95, [3] = 0.30}, uses = 200, maxlevel= 1}
},
sword = {
fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 200, maxlevel= 1},
snappy = {times = {[2] = 0.70, [3] = 0.25}, uses = 200, maxlevel= 1},
choppy = {times = {[3] = 0.65}, uses = 200, maxlevel= 0}
}
},
full_punch_interval = 0.45,
damage_groups = {fleshy = 9},
}
end
for orename,def in pairs(oredefs) do
add_ore(modname, def.description, orename, def)
@ -325,16 +328,26 @@ minetest.register_craft({
}
})
if moreores.tin_enabled then
-- Bronze has some special cases, because it is made from copper and tin:
minetest.register_craft( {
type = "shapeless",
output = "default:bronze_ingot 3",
recipe = {
"moreores:tin_ingot",
"default:copper_ingot",
"default:copper_ingot",
}
})
minetest.register_craft( {
type = "shapeless",
output = "default:bronze_ingot 3",
recipe = {
"moreores:tin_ingot",
"default:copper_ingot",
"default:copper_ingot",
}
})
if moreores.override_default_bronze_recipe then
minetest.register_craft({
type = "shapeless",
output = "default:bronze_ingot 0",
recipe = {"default:steel_ingot", "default:copper_ingot"},
})
end
end
-- Unique node:
minetest.register_node("moreores:copper_rail", {
@ -365,7 +378,6 @@ minetest.register_node("moreores:copper_rail", {
},
})
if minetest.setting_getbool("log_mods") then
minetest.log("action", S("[moreores] loaded."))
end

45
intllib.lua Normal file
View File

@ -0,0 +1,45 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl(escape, open, num, close)
if escape == "" then
local replacement = tostring(args[tonumber(num)])
if open == "" then
replacement = replacement..close
end
return replacement
else
return "@"..open..num..close
end
end
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
end
local gettext, ngettext
if minetest.get_modpath("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
gettext, ngettext = intllib.make_gettext_pair()
else
-- Old method using text files.
gettext = intllib.Getter()
end
end
-- Fill in missing functions.
gettext = gettext or function(msgid, ...)
return format(msgid, ...)
end
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
return format(n==1 and msgid or msgid_plural, ...)
end
return gettext, ngettext

82
locale/de.po Normal file
View File

@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-10 13:36-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Xanthin\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:97
#, c-format
msgid "%s Ore"
msgstr "%serz"
#: init.lua:108
#, c-format
msgid "%s Block"
msgstr "%sblock"
#: init.lua:130
#, c-format
msgid "%s Lump"
msgstr "%sklumpen"
#: init.lua:145
#, c-format
msgid "%s Ingot"
msgstr "%sbarren"
#: init.lua:185
#, c-format
msgid "%s Sword"
msgstr "%sschwert"
#: init.lua:191
#, c-format
msgid "%s Pickaxe"
msgstr "%sspitzhacke"
#: init.lua:197
#, c-format
msgid "%s Axe"
msgstr "%saxt"
#: init.lua:203
#, c-format
msgid "%s Shovel"
msgstr "%sschaufel"
#: init.lua:208
#, c-format
msgid "%s Hoe"
msgstr ""
#: init.lua:235
msgid "Silver"
msgstr "Silber"
#: init.lua:270
msgid "Tin"
msgstr "Zinn"
#: init.lua:284
msgid "Mithril"
msgstr "Mithril"
#: init.lua:346
msgid "Copper Rail"
msgstr "Kupferschiene"
#: init.lua:374
msgid "[moreores] loaded."
msgstr "[moreores] geladen."

View File

@ -1,22 +0,0 @@
# Translation by Xanthin
[moreores] loaded. = [moreores] geladen.
%s Ore = %serz
%s Lump = %sklumpen
%s Ingot = %sbarren
%s Block = %sblock
%s Pickaxe = %sspitzhacke
%s Shovel = %sschaufel
%s Axe = %saxt
%s Sword = %sschwert
%s Hoe = %shacke
Copper = Kupfer
Tin = Zinn
Bronze = Bronze
Silver = Silber
Gold = Gold
Mithril = Mithril
Copper Rail = Kupferschiene

82
locale/es.po Normal file
View File

@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-10 13:36-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: kaeza\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:97
#, c-format
msgid "%s Ore"
msgstr "Mineral de %s"
#: init.lua:108
#, c-format
msgid "%s Block"
msgstr "Bloque de %s"
#: init.lua:130
#, c-format
msgid "%s Lump"
msgstr "Pepita de %s"
#: init.lua:145
#, c-format
msgid "%s Ingot"
msgstr "Lingote de %s"
#: init.lua:185
#, c-format
msgid "%s Sword"
msgstr "Espada de %s"
#: init.lua:191
#, c-format
msgid "%s Pickaxe"
msgstr "Pico de %s"
#: init.lua:197
#, c-format
msgid "%s Axe"
msgstr "Hacha de %s"
#: init.lua:203
#, c-format
msgid "%s Shovel"
msgstr "Pala de %s"
#: init.lua:208
#, c-format
msgid "%s Hoe"
msgstr ""
#: init.lua:235
msgid "Silver"
msgstr "plata"
#: init.lua:270
msgid "Tin"
msgstr "estaño"
#: init.lua:284
msgid "Mithril"
msgstr "mitrilo"
#: init.lua:346
msgid "Copper Rail"
msgstr "Riel de Cobre"
#: init.lua:374
msgid "[moreores] loaded."
msgstr "[moreores] cargado."

View File

@ -1,21 +0,0 @@
# Translation by kaeza
[moreores] loaded. = [moreores] cargado.
%s Ore = Mineral de %s
%s Lump = Pepita de %s
%s Ingot = Lingote de %s
%s Block = Bloque de %s
%s Pickaxe = Pico de %s
%s Shovel = Pala de %s
%s Axe = Hacha de %s
%s Sword = Espada de %s
Copper = cobre
Tin = estaño
Bronze = bronce
Silver = plata
Gold = oro
Mithril = mitrilo
Copper Rail = Riel de Cobre

82
locale/fr.po Normal file
View File

@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-10 13:36-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Calinou\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:97
#, c-format
msgid "%s Ore"
msgstr "Minerai en %s"
#: init.lua:108
#, c-format
msgid "%s Block"
msgstr "Bloc en %s"
#: init.lua:130
#, c-format
msgid "%s Lump"
msgstr "Roche en %s"
#: init.lua:145
#, c-format
msgid "%s Ingot"
msgstr "Lingot en %s"
#: init.lua:185
#, c-format
msgid "%s Sword"
msgstr "Épée en %s"
#: init.lua:191
#, c-format
msgid "%s Pickaxe"
msgstr "Pioche en %s"
#: init.lua:197
#, c-format
msgid "%s Axe"
msgstr "Hache en %s"
#: init.lua:203
#, c-format
msgid "%s Shovel"
msgstr "Pelle en %s"
#: init.lua:208
#, c-format
msgid "%s Hoe"
msgstr ""
#: init.lua:235
msgid "Silver"
msgstr "argent"
#: init.lua:270
msgid "Tin"
msgstr "étain"
#: init.lua:284
msgid "Mithril"
msgstr "mithril"
#: init.lua:346
msgid "Copper Rail"
msgstr "Rail en cuivre"
#: init.lua:374
msgid "[moreores] loaded."
msgstr "[moreores] a été chargé."

View File

@ -1,21 +0,0 @@
# Translation by Calinou
[moreores] loaded. = [moreores] a été chargé.
%s Ore = Minerai en %s
%s Lump = Roche en %s
%s Ingot = Lingot en %s
%s Block = Bloc en %s
%s Pickaxe = Pioche en %s
%s Shovel = Pelle en %s
%s Axe = Hache en %s
%s Sword = Épée en %s
Copper = cuivre
Tin = étain
Bronze = bronze
Silver = argent
Gold = or
Mithril = mithril
Copper Rail = Rail en cuivre

82
locale/it.po Normal file
View File

@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-10 13:36-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Pagliaccio\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:97
#, c-format
msgid "%s Ore"
msgstr "Minerale di %s"
#: init.lua:108
#, c-format
msgid "%s Block"
msgstr "Blocco di %s"
#: init.lua:130
#, c-format
msgid "%s Lump"
msgstr "%s grezzo"
#: init.lua:145
#, c-format
msgid "%s Ingot"
msgstr "Lingotto di %s"
#: init.lua:185
#, c-format
msgid "%s Sword"
msgstr "Spada di %s"
#: init.lua:191
#, c-format
msgid "%s Pickaxe"
msgstr "Piccone di %s"
#: init.lua:197
#, c-format
msgid "%s Axe"
msgstr "Ascia di %s"
#: init.lua:203
#, c-format
msgid "%s Shovel"
msgstr "Badile di %s"
#: init.lua:208
#, c-format
msgid "%s Hoe"
msgstr ""
#: init.lua:235
msgid "Silver"
msgstr "Argento"
#: init.lua:270
msgid "Tin"
msgstr "Stagno"
#: init.lua:284
msgid "Mithril"
msgstr "Mithril"
#: init.lua:346
msgid "Copper Rail"
msgstr "Binario di rame"
#: init.lua:374
msgid "[moreores] loaded."
msgstr "[moreores] caricato."

View File

@ -1,21 +0,0 @@
# Translation by Pagliaccio
[moreores] loaded. = [moreores] caricato.
%s Ore = Minerale di %s
%s Lump = %s grezzo
%s Ingot = Lingotto di %s
%s Block = Blocco di %s
%s Pickaxe = Piccone di %s
%s Shovel = Badile di %s
%s Axe = Ascia di %s
%s Sword = Spada di %s
Copper = Rame
Tin = Stagno
Bronze = Bronzo
Silver = Argento
Gold = Oro
Mithril = Mithril
Copper Rail = Binario di rame

82
locale/template.pot Normal file
View File

@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-10 13:36-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:97
#, c-format
msgid "%s Ore"
msgstr ""
#: init.lua:108
#, c-format
msgid "%s Block"
msgstr ""
#: init.lua:130
#, c-format
msgid "%s Lump"
msgstr ""
#: init.lua:145
#, c-format
msgid "%s Ingot"
msgstr ""
#: init.lua:185
#, c-format
msgid "%s Sword"
msgstr ""
#: init.lua:191
#, c-format
msgid "%s Pickaxe"
msgstr ""
#: init.lua:197
#, c-format
msgid "%s Axe"
msgstr ""
#: init.lua:203
#, c-format
msgid "%s Shovel"
msgstr ""
#: init.lua:208
#, c-format
msgid "%s Hoe"
msgstr ""
#: init.lua:235
msgid "Silver"
msgstr ""
#: init.lua:270
msgid "Tin"
msgstr ""
#: init.lua:284
msgid "Mithril"
msgstr ""
#: init.lua:346
msgid "Copper Rail"
msgstr ""
#: init.lua:374
msgid "[moreores] loaded."
msgstr ""

82
locale/tr.po Normal file
View File

@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-10 13:36-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mahmutelmas06 mahmutelmas06@hotmail.com\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua:97
#, c-format
msgid "%s Ore"
msgstr "%s madeni"
#: init.lua:108
#, c-format
msgid "%s Block"
msgstr "%s blok"
#: init.lua:130
#, c-format
msgid "%s Lump"
msgstr "%s yığını"
#: init.lua:145
#, c-format
msgid "%s Ingot"
msgstr "%s külçesi"
#: init.lua:185
#, c-format
msgid "%s Sword"
msgstr "%s kılıç"
#: init.lua:191
#, c-format
msgid "%s Pickaxe"
msgstr "%s kazma"
#: init.lua:197
#, c-format
msgid "%s Axe"
msgstr "%s balta"
#: init.lua:203
#, c-format
msgid "%s Shovel"
msgstr "%s kürek"
#: init.lua:208
#, c-format
msgid "%s Hoe"
msgstr ""
#: init.lua:235
msgid "Silver"
msgstr "Gümüş"
#: init.lua:270
msgid "Tin"
msgstr "Kalay"
#: init.lua:284
msgid "Mithril"
msgstr "Mithril"
#: init.lua:346
msgid "Copper Rail"
msgstr "Bakır ray"
#: init.lua:374
msgid "[moreores] loaded."
msgstr "[moreores] yüklendi."

View File

@ -1,25 +0,0 @@
# Translation by Mahmutelmas06
# mahmutelmas06@hotmail.com
# Türkçe Çeviri
# Turkish translation
# Language 2 letter iso code is "tr"
[moreores] loaded. = [moreores] yüklendi.
%s Ore = %s madeni
%s Lump = %s yığını
%s Ingot = %s külçesi
%s Block = %s blok
%s Pickaxe = %s kazma
%s Shovel = %s kürek
%s Axe = %s balta
%s Sword = %s kılıç
Copper = Bakır
Tin = Kalay
Bronze = Bronz
Silver = Gümüş
Gold = Altın
Mithril = Mithril
Copper Rail = Bakır ray

6
mg.lua
View File

@ -5,6 +5,7 @@ Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
if moreores.tin_enabled then
mg.register_ore({
name = "moreores:mineral_tin",
wherein = "default:stone",
@ -19,7 +20,9 @@ mg.register_ore({
forkturnangle = 57,
numperblock = 2
})
end
if moreores.silver_enabled then
mg.register_ore({
name = "moreores:mineral_silver",
wherein = "default:stone",
@ -36,7 +39,9 @@ mg.register_ore({
forkturnangle = 57,
numperblock = 2
})
end
if moreores.mithril_enabled then
mg.register_ore({
name = "moreores:mineral_mithril",
wherein = "default:stone",
@ -51,3 +56,4 @@ mg.register_ore({
segincldev = 0.6,
turnangle = 57,
})
end

42
readsettings.lua Normal file
View File

@ -0,0 +1,42 @@
------------------------------------------------------------------------------
------------------------------ 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)

39
settingtypes.txt Normal file
View File

@ -0,0 +1,39 @@
[Tin]
# Enables/disables tin generation
moreores_tin_enabled (Generate) bool true
#Chunk sizes for ore generation (bigger = ore deposits are more scattered around)
moreores_tin_chunk_size (Chunk size) int 7 1 100
#Amount of ore per chunk (higher = bigger ore deposits)
moreores_tin_ore_per_chunk (Ore per chunk) int 3 1 100
#Minimal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores_tin_min_depth (Min depth) int -31000 -31000 31000
#Maximal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores_tin_max_depth (Max depth) int 8 -31000 31000
#When tin is enabled and this is true, removes the default bronze recipe
#(steel + copper) in favor of the tin + copper recipe included in this mod.
moreores_override_default_bronze_recipe (Override default bronze recipe) bool false
[Silver]
# Enables/disables silver generation
moreores_silver_enabled (Generate) bool true
#Chunk sizes for ore generation (bigger = ore deposits are more scattered around)
moreores_silver_chunk_size (Chunk size) int 11 1 100
#Amount of ore per chunk (higher = bigger ore deposits)
moreores_silver_ore_per_chunk (Ore per chunk) int 4 1 100
#Minimal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores_silver_min_depth (Min depth) int -31000 -31000 31000
#Maximal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores_silver_max_depth (Max depth) int -2 -31000 31000
[Mithril]
# Enables/disables mithril generation
moreores_mithril_enabled (Generate) bool true
#Chunk sizes for ore generation (bigger = ore deposits are more scattered around)
moreores_mithril_chunk_size (Chunk size) int 11 1 100
#Amount of ore per chunk (higher = bigger ore deposits)
moreores_mithril_ore_per_chunk (Ore per chunk) int 1 1 100
#Minimal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores_mithril_min_depth (Min depth) int -31000 -31000 31000
#Maximal depths of ore generation (Y coordinate, 0 being sea level by default)
moreores_mithril_max_depth (Max depth) int -512 -31000 31000