diff --git a/.luacheckrc b/.luacheckrc index 16e7350..187bab7 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -30,4 +30,6 @@ read_globals = { "frame", "mg", "toolranks", + "stairs", + "stairsplus", } diff --git a/init.lua b/init.lua index 73cf0ea..7fec77d 100644 --- a/init.lua +++ b/init.lua @@ -105,6 +105,27 @@ local function add_ore(modname, description, mineral_name, oredef) groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level = 2}, sounds = default_metal_sounds, }) + if minetest.get_modpath("moreblocks") then + stairsplus:register_all("moreores", mineral_name.."_block", block_item, { + description = S("@1 Block", S(description)), + tiles = {img_base .. "_block.png"}, + groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2}, + sounds = default_metal_sounds + }) + elseif minetest.get_modpath("stairs") then + stairs.register_stair_and_slab( + mineral_name.."_block", + block_item, + {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2}, + {img_base .. "_block.png"}, + S("@1 Stair", S(description)), + S("@1 Slab", S(description)), + default_metal_sounds, + false, + S("Inner @1 Stair", S(description)), + S("Outer @1 Stair", S(description)) + ) + end minetest.register_alias(mineral_name.."_block", block_item) if oredef.makes.ingot then minetest.register_craft( { diff --git a/locale/moreores.de.tr b/locale/moreores.de.tr index aac97be..ffa3359 100644 --- a/locale/moreores.de.tr +++ b/locale/moreores.de.tr @@ -20,3 +20,8 @@ Silver=Silber Gold=Gold Mithril=Mithril Copper Rail=Kupferschiene + +@1 Slab= @1treppe +@1 Stair= @1platte +Inner @1 Stair=Innere @1treppe +Outer @1 Stair=Äußere @1treppe diff --git a/locale/moreores.en.tr b/locale/moreores.en.tr index b13188d..ea73555 100644 --- a/locale/moreores.en.tr +++ b/locale/moreores.en.tr @@ -19,3 +19,8 @@ Silver=Silver Gold=Gold Mithril=Mithril Copper Rail=Copper Rail + +@1 Slab=@1 Slab +@1 Stair=@1 Stair +Inner @1 Stair=Inner @1 Stair +Outer @1 Stair=Outer @1 Stair diff --git a/locale/moreores.es.tr b/locale/moreores.es.tr index 3b709a3..6b2f483 100644 --- a/locale/moreores.es.tr +++ b/locale/moreores.es.tr @@ -20,3 +20,8 @@ Silver=plata Gold=oro Mithril=mitrilo Copper Rail=Riel de Cobre + +@1 Slab=Losa de @1 +@1 Stair=Escalera de @1 +Inner @1 Stair=Escalera interior de @1 +Outer @1 Stair=Escalera exterior de @1 diff --git a/locale/moreores.fr.tr b/locale/moreores.fr.tr index 2ac45a8..416dcbf 100644 --- a/locale/moreores.fr.tr +++ b/locale/moreores.fr.tr @@ -21,3 +21,8 @@ Silver=argent Gold=or Mithril=mithril Copper Rail=Rail en cuivre + +@1 Slab=Dalle en @1 +@1 Stair=Escalier en @1 +Inner @1 Stair=Escalier intérieur de @1 +Outer @1 Stair=Escalier extérieur de @1 diff --git a/locale/moreores.hu.tr b/locale/moreores.hu.tr index 820ece7..e9d2ed5 100644 --- a/locale/moreores.hu.tr +++ b/locale/moreores.hu.tr @@ -20,3 +20,8 @@ Silver=Ezüst Gold=Arany Mithril=Mithril Copper Rail=Réz sín + +@1 Slab= +@1 Stair= +Inner @1 Stair= +Outer @1 Stair= diff --git a/locale/moreores.it.tr b/locale/moreores.it.tr index 96541f7..b659e38 100644 --- a/locale/moreores.it.tr +++ b/locale/moreores.it.tr @@ -20,3 +20,8 @@ Silver=Argento Gold=Oro Mithril=Mithril Copper Rail=Binario di rame + +@1 Slab=Scala di @1 +@1 Stair=Lastra di @1 +Inner @1 Stair=Scala di @1 interna +Outer @1 Stair=Scala di @1 esterna diff --git a/locale/moreores.nl.tr b/locale/moreores.nl.tr index e572ff3..621c92a 100644 --- a/locale/moreores.nl.tr +++ b/locale/moreores.nl.tr @@ -17,3 +17,8 @@ Bronze=Brons Silver=Silver Gold=Goud Mithril=Mithril + +@1 Slab= +@1 Stair= +Inner @1 Stair= +Outer @1 Stair= diff --git a/locale/moreores.pl.tr b/locale/moreores.pl.tr index 2eb2993..46cec55 100644 --- a/locale/moreores.pl.tr +++ b/locale/moreores.pl.tr @@ -20,3 +20,8 @@ Silver=Srebro Gold=Złoto Mithril=Mithril Copper Rail=Miedziany tor + +@1 Slab= +@1 Stair= +Inner @1 Stair= +Outer @1 Stair= diff --git a/locale/moreores.pt_br.tr b/locale/moreores.pt_br.tr index 613209d..603bbec 100644 --- a/locale/moreores.pt_br.tr +++ b/locale/moreores.pt_br.tr @@ -21,3 +21,8 @@ Gold=Ouro Mithril=Mitrilo Copper Rail=Trilho de Cobre + +@1 Slab= +@1 Stair= +Inner @1 Stair= +Outer @1 Stair= diff --git a/locale/moreores.tr.tr b/locale/moreores.tr.tr index e41f8e3..e27b83b 100644 --- a/locale/moreores.tr.tr +++ b/locale/moreores.tr.tr @@ -26,3 +26,8 @@ Gold=Altın Mithril=Mithril Copper Rail=Bakır ray + +@1 Slab= +@1 Stair= +Inner @1 Stair= +Outer @1 Stair= diff --git a/mod.conf b/mod.conf index 341e834..b0805e6 100644 --- a/mod.conf +++ b/mod.conf @@ -1,5 +1,5 @@ name = moreores description = Adds new ore types. depends = default -optional_depends = carts,farming,frame,mg,toolranks +optional_depends = carts,farming,frame,mg,toolranks,moreblocks,stairs min_minetest_version = 5.0.0