Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility with Stairs, Moreblocks #27

Closed
wants to merge 12 commits into from
2 changes: 2 additions & 0 deletions depends.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
default
mg?
moreblocks?
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
stairs?
20 changes: 19 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,26 @@ local function add_ore(modname, description, mineral_name, oredef)
description = S("%s Block"):format(S(description)),
tiles = { img_base .. "_block.png" },
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
sounds = default_metal_sounds,
sounds = default.node_sound_metal_defaults(),
})
if minetest.get_modpath("moreblocks") then
stairsplus:register_all("moreores", mineral_name.."_block", block_item, {
description = S("%s Block"):format(S(description)),
tiles = { img_base .. "_block.png" },
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
sounds = default.node_sound_metal_defaults()
})
elseif minetest.get_modpath("stairs") then
stairs.register_stair_and_slab(
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
mineral_name.."_block",
block_item,
{snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
{ img_base .. "_block.png"},
S("%s Block Stair"):format(S(description)),
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
S("%s Block Slab"):format(S(description)),
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
default.node_sound_metal_defaults()
)
end
minetest.register_alias(mineral_name.."_block", block_item)
if oredef.makes.ingot then
minetest.register_craft( {
Expand Down
2 changes: 2 additions & 0 deletions locale/de.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
%s Lump = %sklumpen
%s Ingot = %sbarren
%s Block = %sblock
%s Block Slab =
%s Block Stair =
%s Pickaxe = %sspitzhacke
%s Shovel = %sschaufel
%s Axe = %saxt
Expand Down
2 changes: 2 additions & 0 deletions locale/es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
%s Lump = Pepita de %s
%s Ingot = Lingote de %s
%s Block = Bloque de %s
%s Block Slab =
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
%s Block Stair =
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
%s Pickaxe = Pico de %s
%s Shovel = Pala de %s
%s Axe = Hacha de %s
Expand Down
2 changes: 2 additions & 0 deletions locale/fr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
%s Lump = Roche en %s
%s Ingot = Lingot en %s
%s Block = Bloc en %s
%s Block Slab = Demi-dalle en %s
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
%s Block Stair = Escaliers en %s
Jat15 marked this conversation as resolved.
Show resolved Hide resolved
%s Pickaxe = Pioche en %s
%s Shovel = Pelle en %s
%s Axe = Hache en %s
Expand Down
2 changes: 2 additions & 0 deletions locale/it.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
%s Lump = %s grezzo
%s Ingot = Lingotto di %s
%s Block = Blocco di %s
%s Block Slab =
%s Block Stair =
%s Pickaxe = Piccone di %s
%s Shovel = Badile di %s
%s Axe = Ascia di %s
Expand Down
2 changes: 2 additions & 0 deletions locale/pt_br.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
%s Lump = Pepita de %s
%s Ingot = Lingote de %s
%s Block = Bloco de %s
%s Block Slab =
%s Block Stair =
%s Pickaxe = Picareta de %s
%s Shovel = Pá de %s
%s Axe = Machado de %s
Expand Down
2 changes: 2 additions & 0 deletions locale/tr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
%s Lump = %s yığını
%s Ingot = %s külçesi
%s Block = %s blok
%s Block Slab =
%s Block Stair =
%s Pickaxe = %s kazma
%s Shovel = %s kürek
%s Axe = %s balta
Expand Down