Add compatibility with Stairs, Moreblocks

Update sound.
This commit is contained in:
Jat15 2017-08-23 16:34:30 +02:00
parent 84a9198a62
commit e243584543
8 changed files with 33 additions and 1 deletions

View File

@ -1,2 +1,4 @@
default
mg?
moreblocks?
stairs?

View File

@ -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(
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)),
S("%s Block Slab"):format(S(description)),
default.node_sound_metal_defaults()
)
end
minetest.register_alias(mineral_name.."_block", block_item)
if oredef.makes.ingot then
minetest.register_craft( {

View File

@ -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

View File

@ -6,6 +6,8 @@
%s Lump = Pepita de %s
%s Ingot = Lingote de %s
%s Block = Bloque de %s
%s Block Slab =
%s Block Stair =
%s Pickaxe = Pico de %s
%s Shovel = Pala de %s
%s Axe = Hacha de %s

View File

@ -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
%s Block Stair = Escaliers en %s
%s Pickaxe = Pioche en %s
%s Shovel = Pelle en %s
%s Axe = Hache en %s

View File

@ -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

View File

@ -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

View File

@ -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