forked from VoxeLibre/VoxeLibre
Add blast resistance for stairs and slabs
This commit is contained in:
parent
28f19fdbb4
commit
a2281f384b
|
@ -70,7 +70,7 @@ end
|
||||||
-- Register stairs.
|
-- Register stairs.
|
||||||
-- Node will be called mcl_stairs:stair_<subname>
|
-- Node will be called mcl_stairs:stair_<subname>
|
||||||
|
|
||||||
function mcl_stairs.register_stair(subname, recipeitem, groups, images, description, sounds, hardness, corner_stair_texture_override)
|
function mcl_stairs.register_stair(subname, recipeitem, groups, images, description, sounds, blast_resistance, hardness, corner_stair_texture_override)
|
||||||
groups.stair = 1
|
groups.stair = 1
|
||||||
groups.building_block = 1
|
groups.building_block = 1
|
||||||
|
|
||||||
|
@ -87,6 +87,9 @@ function mcl_stairs.register_stair(subname, recipeitem, groups, images, descript
|
||||||
if not hardness then
|
if not hardness then
|
||||||
hardness = minetest.registered_items[recipeitem]._mcl_hardness
|
hardness = minetest.registered_items[recipeitem]._mcl_hardness
|
||||||
end
|
end
|
||||||
|
if not blast_resistance then
|
||||||
|
blast_resistance = minetest.registered_items[recipeitem]._mcl_blast_resistance
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node(":mcl_stairs:stair_" .. subname, {
|
minetest.register_node(":mcl_stairs:stair_" .. subname, {
|
||||||
|
@ -146,6 +149,7 @@ function mcl_stairs.register_stair(subname, recipeitem, groups, images, descript
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = blast_resistance,
|
||||||
_mcl_hardness = hardness,
|
_mcl_hardness = hardness,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -182,7 +186,7 @@ local slab_trans_dir = {[0] = 8, 0, 2, 1, 3, 4}
|
||||||
|
|
||||||
-- double_description: NEW argument, not supported in Minetest Game
|
-- double_description: NEW argument, not supported in Minetest Game
|
||||||
-- double_description: Description of double slab
|
-- double_description: Description of double slab
|
||||||
function mcl_stairs.register_slab(subname, recipeitem, groups, images, description, sounds, hardness, double_description)
|
function mcl_stairs.register_slab(subname, recipeitem, groups, images, description, sounds, blast_resistance, hardness, double_description)
|
||||||
local lower_slab = "mcl_stairs:slab_"..subname
|
local lower_slab = "mcl_stairs:slab_"..subname
|
||||||
local upper_slab = lower_slab.."_top"
|
local upper_slab = lower_slab.."_top"
|
||||||
local double_slab = lower_slab.."_double"
|
local double_slab = lower_slab.."_double"
|
||||||
|
@ -200,6 +204,9 @@ function mcl_stairs.register_slab(subname, recipeitem, groups, images, descripti
|
||||||
if not hardness then
|
if not hardness then
|
||||||
hardness = minetest.registered_items[recipeitem]._mcl_hardness
|
hardness = minetest.registered_items[recipeitem]._mcl_hardness
|
||||||
end
|
end
|
||||||
|
if not blast_resistance then
|
||||||
|
blast_resistance = minetest.registered_items[recipeitem]._mcl_blast_resistance
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Automatically generate double slab description
|
-- Automatically generate double slab description
|
||||||
|
@ -347,10 +354,10 @@ end
|
||||||
-- Nodes will be called mcl_stairs:{stair,slab}_<subname>
|
-- Nodes will be called mcl_stairs:{stair,slab}_<subname>
|
||||||
|
|
||||||
function mcl_stairs.register_stair_and_slab(subname, recipeitem,
|
function mcl_stairs.register_stair_and_slab(subname, recipeitem,
|
||||||
groups, images, desc_stair, desc_slab, sounds, hardness,
|
groups, images, desc_stair, desc_slab, sounds, blast_resistance, hardness,
|
||||||
double_description, corner_stair_texture_override)
|
double_description, corner_stair_texture_override)
|
||||||
mcl_stairs.register_stair(subname, recipeitem, groups, images, desc_stair, sounds, hardness, corner_stair_texture_override)
|
mcl_stairs.register_stair(subname, recipeitem, groups, images, desc_stair, sounds, blast_resistance, hardness, corner_stair_texture_override)
|
||||||
mcl_stairs.register_slab(subname, recipeitem, groups, images, desc_slab, sounds, hardness, double_description)
|
mcl_stairs.register_slab(subname, recipeitem, groups, images, desc_slab, sounds, blast_resistance, hardness, double_description)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Very simple registration function
|
-- Very simple registration function
|
||||||
|
@ -365,6 +372,6 @@ function mcl_stairs.register_stair_and_slab_simple(subname, sourcenode, desc_sta
|
||||||
groups[allowed_groups[a]] = def.groups[allowed_groups[a]]
|
groups[allowed_groups[a]] = def.groups[allowed_groups[a]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
mcl_stairs.register_stair_and_slab(subname, sourcenode, groups, def.tiles, desc_stair, desc_slab, def.sounds, def._mcl_hardness, desc_double_slab, corner_stair_texture_override)
|
mcl_stairs.register_stair_and_slab(subname, sourcenode, groups, def.tiles, desc_stair, desc_slab, def.sounds, def._mcl_blast_resistance, def._mcl_hardness, desc_double_slab, corner_stair_texture_override)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -20,15 +20,13 @@ for w=1, #woods do
|
||||||
{handy=1,axey=1, flammable=3,wood_stairs=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
|
{handy=1,axey=1, flammable=3,wood_stairs=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
|
||||||
{wood[2]},
|
{wood[2]},
|
||||||
wood[3],
|
wood[3],
|
||||||
mcl_sounds.node_sound_wood_defaults(),
|
mcl_sounds.node_sound_wood_defaults(), 3, 2,
|
||||||
2,
|
|
||||||
"woodlike")
|
"woodlike")
|
||||||
mcl_stairs.register_slab(wood[1], "mcl_core:"..wood[1],
|
mcl_stairs.register_slab(wood[1], "mcl_core:"..wood[1],
|
||||||
{handy=1,axey=1, flammable=3,wood_slab=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
|
{handy=1,axey=1, flammable=3,wood_slab=1, material_wood=1, fire_encouragement=5, fire_flammability=20},
|
||||||
{wood[2]},
|
{wood[2]},
|
||||||
wood[4],
|
wood[4],
|
||||||
mcl_sounds.node_sound_wood_defaults(),
|
mcl_sounds.node_sound_wood_defaults(), 3, 2,
|
||||||
2,
|
|
||||||
wood[5])
|
wood[5])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -38,7 +36,8 @@ mcl_stairs.register_slab("stone", "mcl_core:stone_smooth",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_stairs_stone_slab_top.png", "mcl_stairs_stone_slab_top.png", "mcl_stairs_stone_slab_side.png"},
|
{"mcl_stairs_stone_slab_top.png", "mcl_stairs_stone_slab_top.png", "mcl_stairs_stone_slab_side.png"},
|
||||||
S("Polished Stone Slab"),
|
S("Polished Stone Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Polished Stone Slab"))
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Polished Stone Slab"))
|
||||||
|
|
||||||
mcl_stairs.register_stair_and_slab_simple("andesite", "mcl_core:andesite", S("Andesite Stairs"), S("Andesite Slab"), S("Double Andesite Slab"))
|
mcl_stairs.register_stair_and_slab_simple("andesite", "mcl_core:andesite", S("Andesite Stairs"), S("Andesite Slab"), S("Double Andesite Slab"))
|
||||||
mcl_stairs.register_stair_and_slab_simple("granite", "mcl_core:granite", S("Granite Stairs"), S("Granite Slab"), S("Double Granite Slab"))
|
mcl_stairs.register_stair_and_slab_simple("granite", "mcl_core:granite", S("Granite Stairs"), S("Granite Slab"), S("Double Granite Slab"))
|
||||||
|
@ -54,24 +53,28 @@ mcl_stairs.register_stair("sandstone", "group:normal_sandstone",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
|
{"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
|
||||||
S("Sandstone Stairs"),
|
S("Sandstone Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 0.8, nil, "mcl_core:sandstone")
|
mcl_sounds.node_sound_stone_defaults(), 0.8, 0.8,
|
||||||
|
nil, "mcl_core:sandstone") --fixme: extra parameter from previous release
|
||||||
mcl_stairs.register_slab("sandstone", "group:normal_sandstone",
|
mcl_stairs.register_slab("sandstone", "group:normal_sandstone",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
|
{"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
|
||||||
S("Sandstone Slab"),
|
S("Sandstone Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Sandstone Slab"), "mcl_core:sandstone")
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Sandstone Slab"), "mcl_core:sandstone") --fixme: extra parameter from previous release
|
||||||
mcl_stairs.register_stair_and_slab_simple("sandstonesmooth2", "mcl_core:sandstonesmooth2", S("Smooth Sandstone Stairs"), S("Smooth Sandstone Slab"), S("Double Smooth Sandstone Slab"))
|
mcl_stairs.register_stair_and_slab_simple("sandstonesmooth2", "mcl_core:sandstonesmooth2", S("Smooth Sandstone Stairs"), S("Smooth Sandstone Slab"), S("Double Smooth Sandstone Slab"))
|
||||||
|
|
||||||
mcl_stairs.register_stair("redsandstone", "group:red_sandstone",
|
mcl_stairs.register_stair("redsandstone", "group:red_sandstone",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
|
{"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
|
||||||
S("Red Sandstone Stairs"),
|
S("Red Sandstone Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 0.8, nil, "mcl_core:redsandstone")
|
mcl_sounds.node_sound_stone_defaults(), 0.8, 0.8,
|
||||||
|
nil, "mcl_core:redsandstone") --fixme: extra parameter from previous release
|
||||||
mcl_stairs.register_slab("redsandstone", "group:red_sandstone",
|
mcl_stairs.register_slab("redsandstone", "group:red_sandstone",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
|
{"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
|
||||||
S("Red Sandstone Slab"),
|
S("Red Sandstone Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Red Sandstone Slab"), "mcl_core:redsandstone")
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Red Sandstone Slab"), "mcl_core:redsandstone") --fixme: extra parameter from previous release
|
||||||
mcl_stairs.register_stair_and_slab_simple("redsandstonesmooth2", "mcl_core:redsandstonesmooth2", S("Smooth Red Sandstone Stairs"), S("Smooth Red Sandstone Slab"), S("Double Smooth Red Sandstone Slab"))
|
mcl_stairs.register_stair_and_slab_simple("redsandstonesmooth2", "mcl_core:redsandstonesmooth2", S("Smooth Red Sandstone Stairs"), S("Smooth Red Sandstone Slab"), S("Double Smooth Red Sandstone Slab"))
|
||||||
|
|
||||||
-- Intentionally not group:stonebrick because of mclx_stairs
|
-- Intentionally not group:stonebrick because of mclx_stairs
|
||||||
|
@ -79,23 +82,27 @@ mcl_stairs.register_stair("stonebrick", "mcl_core:stonebrick",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"default_stone_brick.png"},
|
{"default_stone_brick.png"},
|
||||||
S("Stone Bricks Stairs"),
|
S("Stone Bricks Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrick")
|
mcl_sounds.node_sound_stone_defaults(), 6, 1.5,
|
||||||
|
nil, "mcl_core:stonebrick") --fixme: extra parameter from previous release
|
||||||
mcl_stairs.register_slab("stonebrick", "mcl_core:stonebrick",
|
mcl_stairs.register_slab("stonebrick", "mcl_core:stonebrick",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"default_stone_brick.png"},
|
{"default_stone_brick.png"},
|
||||||
S("Stone Bricks Slab"),
|
S("Stone Bricks Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Stone Bricks Slab"), "mcl_core:stonebrick")
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Stone Bricks Slab"), "mcl_core:stonebrick") --fixme: extra parameter from previous release
|
||||||
|
|
||||||
mcl_stairs.register_stair("quartzblock", "group:quartz_block",
|
mcl_stairs.register_stair("quartzblock", "group:quartz_block",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
|
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
|
||||||
S("Quartz Stairs"),
|
S("Quartz Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 0.8, nil, "mcl_nether:quartz_block")
|
mcl_sounds.node_sound_stone_defaults(), 0.8, 0.8,
|
||||||
|
nil, "mcl_nether:quartz_block") --fixme: extra parameter from previous release
|
||||||
mcl_stairs.register_slab("quartzblock", "group:quartz_block",
|
mcl_stairs.register_slab("quartzblock", "group:quartz_block",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
|
{"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
|
||||||
S("Quartz Slab"),
|
S("Quartz Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Quartz Slab"), "mcl_nether:quartz_block")
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Quartz Slab"), "mcl_nether:quartz_block") --fixme: extra parameter from previous release
|
||||||
|
|
||||||
mcl_stairs.register_stair_and_slab_simple("quartz_smooth", "mcl_nether:quartz_smooth", S("Smooth Quartz Stairs"), S("Smooth Quartz Slab"), S("Double Smooth Quartz Slab"))
|
mcl_stairs.register_stair_and_slab_simple("quartz_smooth", "mcl_nether:quartz_smooth", S("Smooth Quartz Stairs"), S("Smooth Quartz Slab"), S("Double Smooth Quartz Slab"))
|
||||||
|
|
||||||
|
@ -104,17 +111,15 @@ mcl_stairs.register_stair_and_slab("nether_brick", "mcl_nether:nether_brick",
|
||||||
{"mcl_nether_nether_brick.png"},
|
{"mcl_nether_nether_brick.png"},
|
||||||
S("Nether Brick Stairs"),
|
S("Nether Brick Stairs"),
|
||||||
S("Nether Brick Slab"),
|
S("Nether Brick Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(),
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
2,
|
S("Double Nether Brick Slab"), nil)
|
||||||
S("Double Nether Brick Slab"))
|
|
||||||
mcl_stairs.register_stair_and_slab("red_nether_brick", "mcl_nether:red_nether_brick",
|
mcl_stairs.register_stair_and_slab("red_nether_brick", "mcl_nether:red_nether_brick",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_nether_red_nether_brick.png"},
|
{"mcl_nether_red_nether_brick.png"},
|
||||||
S("Red Nether Brick Stairs"),
|
S("Red Nether Brick Stairs"),
|
||||||
S("Red Nether Brick Slab"),
|
S("Red Nether Brick Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(),
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
2,
|
S("Double Red Nether Brick Slab"), nil)
|
||||||
S("Double Red Nether Brick Slab"))
|
|
||||||
|
|
||||||
mcl_stairs.register_stair_and_slab_simple("end_bricks", "mcl_end:end_bricks", S("End Stone Brick Stairs"), S("End Stone Brick Slab"), S("Double End Stone Brick Slab"))
|
mcl_stairs.register_stair_and_slab_simple("end_bricks", "mcl_end:end_bricks", S("End Stone Brick Stairs"), S("End Stone Brick Slab"), S("Double End Stone Brick Slab"))
|
||||||
|
|
||||||
|
@ -122,14 +127,13 @@ mcl_stairs.register_stair("purpur_block", "group:purpur_block",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_end_purpur_block.png"},
|
{"mcl_end_purpur_block.png"},
|
||||||
S("Purpur Stairs"),
|
S("Purpur Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(),
|
mcl_sounds.node_sound_stone_defaults(), 6, 1.5,
|
||||||
1.5)
|
nil)
|
||||||
mcl_stairs.register_slab("purpur_block", "group:purpur_block",
|
mcl_stairs.register_slab("purpur_block", "group:purpur_block",
|
||||||
{pickaxey=1, material_stone=1},
|
{pickaxey=1, material_stone=1},
|
||||||
{"mcl_end_purpur_block.png"},
|
{"mcl_end_purpur_block.png"},
|
||||||
S("Purpur Slab"),
|
S("Purpur Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(),
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
2,
|
|
||||||
S("Double Purpur Slab"))
|
S("Double Purpur Slab"))
|
||||||
|
|
||||||
mcl_stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine", S("Prismarine Stairs"), S("Prismarine Slab"), S("Double Prismarine Slab"))
|
mcl_stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine", S("Prismarine Stairs"), S("Prismarine Slab"), S("Double Prismarine Slab"))
|
||||||
|
@ -137,27 +141,56 @@ mcl_stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine",
|
||||||
mcl_stairs.register_stair_and_slab_simple("prismarine_brick", "mcl_ocean:prismarine_brick", S("Prismarine Brick Stairs"), S("Prismarine Brick Slab"), S("Double Prismarine Brick Slab"))
|
mcl_stairs.register_stair_and_slab_simple("prismarine_brick", "mcl_ocean:prismarine_brick", S("Prismarine Brick Stairs"), S("Prismarine Brick Slab"), S("Double Prismarine Brick Slab"))
|
||||||
mcl_stairs.register_stair_and_slab_simple("prismarine_dark", "mcl_ocean:prismarine_dark", S("Dark Prismarine Stairs"), S("Dark Prismarine Slab"), S("Double Dark Prismarine Slab"))
|
mcl_stairs.register_stair_and_slab_simple("prismarine_dark", "mcl_ocean:prismarine_dark", S("Dark Prismarine Stairs"), S("Dark Prismarine Slab"), S("Double Dark Prismarine Slab"))
|
||||||
|
|
||||||
mcl_stairs.register_slab("andesite_smooth", "mcl_core:andesite_smooth", {pickaxey=1}, {"mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_stairs_andesite_smooth_slab.png"}, S("Polished Andesite Slab"), nil, nil, S("Double Polished Andesite Slab"))
|
mcl_stairs.register_slab("andesite_smooth", "mcl_core:andesite_smooth",
|
||||||
mcl_stairs.register_stair("andesite_smooth", "mcl_core:andesite_smooth", {pickaxey=1}, {"mcl_stairs_andesite_smooth_slab.png", "mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_stairs_andesite_smooth_slab.png"}, S("Polished Andesite Stairs"), nil, nil, "woodlike")
|
{pickaxey=1},
|
||||||
|
{"mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_stairs_andesite_smooth_slab.png"},
|
||||||
|
S("Polished Andesite Slab"),
|
||||||
|
nil, 6, nil,
|
||||||
|
S("Double Polished Andesite Slab"))
|
||||||
|
mcl_stairs.register_stair("andesite_smooth", "mcl_core:andesite_smooth",
|
||||||
|
{pickaxey=1},
|
||||||
|
{"mcl_stairs_andesite_smooth_slab.png", "mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_core_andesite_smooth.png", "mcl_stairs_andesite_smooth_slab.png"},
|
||||||
|
S("Polished Andesite Stairs"),
|
||||||
|
nil, 6, nil,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_slab("granite_smooth", "mcl_core:granite_smooth", {pickaxey=1}, {"mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_stairs_granite_smooth_slab.png"}, S("Polished Granite Slab"), nil, nil, S("Double Polished Granite Slab"))
|
mcl_stairs.register_slab("granite_smooth", "mcl_core:granite_smooth",
|
||||||
mcl_stairs.register_stair("granite_smooth", "mcl_core:granite_smooth", {pickaxey=1}, {"mcl_stairs_granite_smooth_slab.png", "mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_stairs_granite_smooth_slab.png"}, S("Polished Granite Stairs"), nil, nil, "woodlike")
|
{pickaxey=1},
|
||||||
|
{"mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_stairs_granite_smooth_slab.png"},
|
||||||
|
S("Polished Granite Slab"),
|
||||||
|
nil, 6, nil,
|
||||||
|
S("Double Polished Granite Slab"))
|
||||||
|
mcl_stairs.register_stair("granite_smooth", "mcl_core:granite_smooth",
|
||||||
|
{pickaxey=1},
|
||||||
|
{"mcl_stairs_granite_smooth_slab.png", "mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_core_granite_smooth.png", "mcl_stairs_granite_smooth_slab.png"},
|
||||||
|
S("Polished Granite Stairs"),
|
||||||
|
nil, 6, nil,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_slab("diorite_smooth", "mcl_core:diorite_smooth", {pickaxey=1}, {"mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_stairs_diorite_smooth_slab.png"}, S("Polished Diorite Slab"), nil, nil, S("Double Polished Diorite Slab"))
|
mcl_stairs.register_slab("diorite_smooth", "mcl_core:diorite_smooth",
|
||||||
mcl_stairs.register_stair("diorite_smooth", "mcl_core:diorite_smooth", {pickaxey=1}, {"mcl_stairs_diorite_smooth_slab.png", "mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_stairs_diorite_smooth_slab.png"}, S("Polished Diorite Stairs"), nil, nil, "woodlike")
|
{pickaxey=1},
|
||||||
|
{"mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_stairs_diorite_smooth_slab.png"},
|
||||||
|
S("Polished Diorite Slab"),
|
||||||
|
nil, 6, nil,
|
||||||
|
S("Double Polished Diorite Slab"))
|
||||||
|
mcl_stairs.register_stair("diorite_smooth", "mcl_core:diorite_smooth",
|
||||||
|
{pickaxey=1},
|
||||||
|
{"mcl_stairs_diorite_smooth_slab.png", "mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_core_diorite_smooth.png", "mcl_stairs_diorite_smooth_slab.png"},
|
||||||
|
S("Polished Diorite Stairs"),
|
||||||
|
nil, 6, nil,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_stair("stonebrickmossy", "mcl_core:stonebrickmossy",
|
mcl_stairs.register_stair("stonebrickmossy", "mcl_core:stonebrickmossy",
|
||||||
{pickaxey=1},
|
{pickaxey=1},
|
||||||
{"mcl_core_stonebrick_mossy.png"},
|
{"mcl_core_stonebrick_mossy.png"},
|
||||||
S("Mossy Stone Brick Stairs"),
|
S("Mossy Stone Brick Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickmossy")
|
mcl_sounds.node_sound_stone_defaults(), 6, 1.5,
|
||||||
|
nil)
|
||||||
|
|
||||||
mcl_stairs.register_slab("stonebrickmossy", "mcl_core:stonebrickmossy",
|
mcl_stairs.register_slab("stonebrickmossy", "mcl_core:stonebrickmossy",
|
||||||
{pickaxey=1},
|
{pickaxey=1},
|
||||||
{"mcl_core_stonebrick_mossy.png"},
|
{"mcl_core_stonebrick_mossy.png"},
|
||||||
S("Mossy Stone Brick Slab"),
|
S("Mossy Stone Brick Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Mossy Stone Brick Slab"), "mcl_core:stonebrickmossy")
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Mossy Stone Brick Slab"), "mcl_core:stonebrickmossy") --fixme: extra parameter from previous release
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,38 +22,68 @@ for b=1, #barks do
|
||||||
{handy=1,axey=1, flammable=3, bark_stairs=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
{handy=1,axey=1, flammable=3, bark_stairs=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||||
{minetest.registered_nodes[id].tiles[3]},
|
{minetest.registered_nodes[id].tiles[3]},
|
||||||
bark[2],
|
bark[2],
|
||||||
mcl_sounds.node_sound_wood_defaults(),
|
mcl_sounds.node_sound_wood_defaults(), 3, 2,
|
||||||
2,
|
|
||||||
"woodlike")
|
"woodlike")
|
||||||
mcl_stairs.register_slab(sub, id,
|
mcl_stairs.register_slab(sub, id,
|
||||||
{handy=1,axey=1, flammable=3, bark_slab=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
{handy=1,axey=1, flammable=3, bark_slab=1, material_wood=1, fire_encouragement=5, fire_flammability=5},
|
||||||
{minetest.registered_nodes[id].tiles[3]},
|
{minetest.registered_nodes[id].tiles[3]},
|
||||||
bark[3],
|
bark[3],
|
||||||
mcl_sounds.node_sound_wood_defaults(),
|
mcl_sounds.node_sound_wood_defaults(), 3, 2,
|
||||||
2,
|
|
||||||
bark[4])
|
bark[4])
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_stairs.register_slab("lapisblock", "mcl_core:lapisblock", {pickaxey=3}, {"mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_stairs_lapis_block_slab.png"}, S("Lapis Lazuli Slab"), nil, nil, S("Double Lapis Lazuli Slab"))
|
mcl_stairs.register_slab("lapisblock", "mcl_core:lapisblock",
|
||||||
mcl_stairs.register_stair("lapisblock", "mcl_core:lapisblock", {pickaxey=3}, {"mcl_stairs_lapis_block_slab.png", "mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_stairs_lapis_block_slab.png"}, S("Lapis Lazuli Stairs"), nil, nil, "woodlike")
|
{pickaxey=3},
|
||||||
|
{"mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_stairs_lapis_block_slab.png"},
|
||||||
|
S("Lapis Lazuli Slab"),
|
||||||
|
nil, nil, nil,
|
||||||
|
S("Double Lapis Lazuli Slab"))
|
||||||
|
mcl_stairs.register_stair("lapisblock", "mcl_core:lapisblock",
|
||||||
|
{pickaxey=3},
|
||||||
|
{"mcl_stairs_lapis_block_slab.png", "mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_core_lapis_block.png", "mcl_stairs_lapis_block_slab.png"},
|
||||||
|
S("Lapis Lazuli Stairs"),
|
||||||
|
nil, 6, nil,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_slab("goldblock", "mcl_core:goldblock", {pickaxey=4}, {"default_gold_block.png", "default_gold_block.png", "mcl_stairs_gold_block_slab.png"}, S("Slab of Gold"), nil, nil, S("Double Slab of Gold"))
|
mcl_stairs.register_slab("goldblock", "mcl_core:goldblock",
|
||||||
mcl_stairs.register_stair("goldblock", "mcl_core:goldblock", {pickaxey=4}, {"mcl_stairs_gold_block_slab.png", "default_gold_block.png", "default_gold_block.png", "default_gold_block.png", "default_gold_block.png", "mcl_stairs_gold_block_slab.png"}, S("Stairs of Gold"), nil, nil, "woodlike")
|
{pickaxey=4},
|
||||||
|
{"default_gold_block.png", "default_gold_block.png", "mcl_stairs_gold_block_slab.png"},
|
||||||
|
S("Slab of Gold"),
|
||||||
|
nil, nil, nil,
|
||||||
|
S("Double Slab of Gold"))
|
||||||
|
mcl_stairs.register_stair("goldblock", "mcl_core:goldblock",
|
||||||
|
{pickaxey=4},
|
||||||
|
{"mcl_stairs_gold_block_slab.png", "default_gold_block.png", "default_gold_block.png", "default_gold_block.png", "default_gold_block.png", "mcl_stairs_gold_block_slab.png"},
|
||||||
|
S("Stairs of Gold"),
|
||||||
|
nil, 6, nil,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_slab("ironblock", "mcl_core:ironblock", {pickaxey=2}, {"default_steel_block.png", "default_steel_block.png", "mcl_stairs_iron_block_slab.png"}, S("Slab of Iron"), nil, nil, S("Double Slab of Iron"))
|
mcl_stairs.register_slab("ironblock", "mcl_core:ironblock",
|
||||||
mcl_stairs.register_stair("ironblock", "mcl_core:ironblock", {pickaxey=2}, {"mcl_stairs_iron_block_slab.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "mcl_stairs_iron_block_slab.png"}, S("Stairs of Iron"), nil, nil, "woodlike")
|
{pickaxey=2},
|
||||||
|
{"default_steel_block.png", "default_steel_block.png", "mcl_stairs_iron_block_slab.png"},
|
||||||
|
S("Slab of Iron"),
|
||||||
|
nil, nil, nil,
|
||||||
|
S("Double Slab of Iron"))
|
||||||
|
mcl_stairs.register_stair("ironblock", "mcl_core:ironblock",
|
||||||
|
{pickaxey=2},
|
||||||
|
{"mcl_stairs_iron_block_slab.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "default_steel_block.png", "mcl_stairs_iron_block_slab.png"},
|
||||||
|
S("Stairs of Iron"),
|
||||||
|
nil, 6, nil,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_stair("stonebrickcracked", "mcl_core:stonebrickcracked",
|
mcl_stairs.register_stair("stonebrickcracked", "mcl_core:stonebrickcracked",
|
||||||
{pickaxey=1},
|
{pickaxey=1},
|
||||||
{"mcl_core_stonebrick_cracked.png"},
|
{"mcl_core_stonebrick_cracked.png"},
|
||||||
S("Cracked Stone Brick Stairs"),
|
S("Cracked Stone Brick Stairs"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickcracked")
|
mcl_sounds.node_sound_stone_defaults(), 6, 1.5,
|
||||||
|
"woodlike")
|
||||||
|
|
||||||
mcl_stairs.register_slab("stonebrickcracked", "mcl_core:stonebrickcracked",
|
mcl_stairs.register_slab("stonebrickcracked", "mcl_core:stonebrickcracked",
|
||||||
{pickaxey=1},
|
{pickaxey=1},
|
||||||
{"mcl_core_stonebrick_cracked.png"},
|
{"mcl_core_stonebrick_cracked.png"},
|
||||||
S("Cracked Stone Brick Slab"),
|
S("Cracked Stone Brick Slab"),
|
||||||
mcl_sounds.node_sound_stone_defaults(), 2, S("Double Cracked Stone Brick Slab"), "mcl_core:stonebrickcracked")
|
mcl_sounds.node_sound_stone_defaults(), 6, 2,
|
||||||
|
S("Double Cracked Stone Brick Slab"))
|
||||||
|
|
||||||
local block = {}
|
local block = {}
|
||||||
block.dyes = {
|
block.dyes = {
|
||||||
|
|
Loading…
Reference in New Issue