From c36392298fde8a88fed7f22f498c98a950144ee8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Jun 2017 19:27:35 +0200 Subject: [PATCH] Make compatible with new mcl_stairs mod --- depends.txt | 2 +- stairslabs.lua | 192 ++++++++++++++++++++++++++++----------------------------- 2 files changed, 97 insertions(+), 97 deletions(-) rewrite stairslabs.lua (60%) diff --git a/depends.txt b/depends.txt index 3ef7640..3a38e79 100644 --- a/depends.txt +++ b/depends.txt @@ -6,5 +6,5 @@ mcl_fences mcl_walls mcl_ocean mcl_colorblocks -stairs +mcl_stairs mcstair diff --git a/stairslabs.lua b/stairslabs.lua dissimilarity index 60% index f7190f4..05979a2 100644 --- a/stairslabs.lua +++ b/stairslabs.lua @@ -1,96 +1,96 @@ -stairs.register_stair_and_slab_simple("end_bricks", "mcl_end:end_bricks", "End Stone Brick Stairs", "End Stone Brick Slab") -mcstair.add("stairs:stair_end_bricks") - -stairs.register_stair_and_slab_simple("red_nether_brick", "mcl_nether:red_nether_brick", "Red Nether Brick Stairs", "Red Nether Brick Slab") -mcstair.add("stairs:stair_red_nether_brick") - -stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine", "Prismarine Stairs", "Prismarine Slab") -mcstair.add("stairs:stair_prismarine") - -stairs.register_stair_and_slab_simple("prismarine_dark", "mcl_ocean:prismarine_dark", "Dark Prismarine Stairs", "Dark Prismarine Slab") -mcstair.add("stairs:stair_prismarine_dark") - -stairs.register_stair_and_slab_simple("mossycobble", "mcl_core:mossycobble", "Moss Stone Stairs", "Moss Stone Slab") -mcstair.add("stairs:stair_mossycobble") - -stairs.register_stair_and_slab_simple("lapisblock", "mcl_core:lapisblock", "Lapis Lazuli Stairs", "Lapis Lazuli Slab") -mcstair.add("stairs:stair_lapisblock") - -stairs.register_stair_and_slab_simple("goldblock", "mcl_core:goldblock", "Stairs of Gold", "Slab of Gold") -mcstair.add("stairs:stair_goldblock") - -stairs.register_stair_and_slab_simple("ironblock", "mcl_core:ironblock", "Stairs of Iron", "Slab of Iron") -mcstair.add("stairs:stair_ironblock") - -stairs.register_stair_and_slab_simple("andesite_smooth", "mcl_core:andesite_smooth", "Polished Andesite Stairs", "Polished Andesite Slab") -mcstair.add("stairs:stair_andesite_smooth") - -stairs.register_stair_and_slab_simple("diorite_smooth", "mcl_core:diorite_smooth", "Polished Diorite Stairs", "Polished Diorite Slab") -mcstair.add("stairs:stair_diorite_smooth") - -stairs.register_stair_and_slab_simple("granite_smooth", "mcl_core:granite_smooth", "Polished Granite Stairs", "Polished Granite Slab") -mcstair.add("stairs:stair_granite_smooth") - -stairs.register_stair("stonebrickmossy", "mcl_core:stonebrickmossy", - {pickaxey=1}, - {"mcl_core_stonebrick_mossy.png"}, - "Mossy Stone Brick Stairs", - mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickmossy") -mcstair.add("stairs:stair_stonebrickmossy") - -stairs.register_slab("stonebrickmossy", "mcl_core:stonebrickmossy", - {pickaxey=1}, - {"mcl_core_stonebrick_mossy.png"}, - "Mossy Stone Brick Slab", - mcl_sounds.node_sound_stone_defaults(), 2, nil, "mcl_core:stonebrickmossy") - -stairs.register_stair("stonebrickcracked", "mcl_core:stonebrickcracked", - {pickaxey=1}, - {"mcl_core_stonebrick_cracked.png"}, - "Cracked Stone Brick Stairs", - mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickcracked") -mcstair.add("stairs:stair_stonebrickcracked") - -stairs.register_slab("stonebrickcracked", "mcl_core:stonebrickcracked", - {pickaxey=1}, - {"mcl_core_stonebrick_cracked.png"}, - "Cracked Stone Brick Slab", - mcl_sounds.node_sound_stone_defaults(), 2, nil, "mcl_core:stonebrickcracked") - - -stairs.register_slab("stonebrickcarved", "mcl_core:stonebrickcarved", - {pickaxey=1}, - {"mcl_core_stonebrick_carved.png", "mcl_core_stonebrick_carved.png", "mcl_supplemental_stonebrick_carved_slab.png"}, - "Chiseled Stone Brick Slab", - mcl_sounds.node_sound_stone_defaults(), - minetest.registered_nodes["mcl_core:granite_smooth"]._mcl_hardness, - "Double Chiseled Stone Brick Slab") - --- TODO: Chiseled stone brick stairs - -local block = {} -block.dyes = { - {"white", "White", "white"}, - {"grey", "Grey", "dark_grey"}, - {"silver", "Light Grey", "grey"}, - {"black", "Black", "black"}, - {"red", "Red", "red"}, - {"yellow", "Yellow", "yellow"}, - {"green", "Green", "dark_green"}, - {"cyan", "Cyan", "cyan"}, - {"blue", "Blue", "blue"}, - {"magenta", "Magenta", "magenta"}, - {"orange", "Orange", "orange"}, - {"purple", "Purple", "violet"}, - {"brown", "Brown", "brown"}, - {"pink", "Pink", "pink"}, - {"lime", "Lime", "green"}, - {"light_blue", "Light Blue", "lightblue"}, -} - -for i=1, #block.dyes do - local c = block.dyes[i][1] - stairs.register_stair_and_slab_simple("concrete_"..c, "mcl_colorblocks:concrete_"..c, block.dyes[i][2].." Concrete Stairs", block.dyes[i][2].." Concrete Slab") - mcstair.add("stairs:stair_concrete_"..c) -end - +mcl_stairs.register_stair_and_slab_simple("end_bricks", "mcl_end:end_bricks", "End Stone Brick Stairs", "End Stone Brick Slab") +mcstair.add("mcl_stairs:stair_end_bricks") + +mcl_stairs.register_stair_and_slab_simple("red_nether_brick", "mcl_nether:red_nether_brick", "Red Nether Brick Stairs", "Red Nether Brick Slab") +mcstair.add("mcl_stairs:stair_red_nether_brick") + +mcl_stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine", "Prismarine Stairs", "Prismarine Slab", "Double Prismarine Slab") +mcstair.add("mcl_stairs:stair_prismarine") + +mcl_stairs.register_stair_and_slab_simple("prismarine_dark", "mcl_ocean:prismarine_dark", "Dark Prismarine Stairs", "Dark Prismarine Slab", "Double Dark Prismarine Slab") +mcstair.add("mcl_stairs:stair_prismarine_dark") + +mcl_stairs.register_stair_and_slab_simple("mossycobble", "mcl_core:mossycobble", "Moss Stone Stairs", "Moss Stone Slab", "Double Moss Stone Slab") +mcstair.add("mcl_stairs:stair_mossycobble") + +mcl_stairs.register_stair_and_slab_simple("lapisblock", "mcl_core:lapisblock", "Lapis Lazuli Stairs", "Lapis Lazuli Slab", "Double Lapis Lazuli Slab") +mcstair.add("mcl_stairs:stair_lapisblock") + +mcl_stairs.register_stair_and_slab_simple("goldblock", "mcl_core:goldblock", "Stairs of Gold", "Slab of Gold", "Double Slab of Gold") +mcstair.add("mcl_stairs:stair_goldblock") + +mcl_stairs.register_stair_and_slab_simple("ironblock", "mcl_core:ironblock", "Stairs of Iron", "Slab of Iron", "Double Slab of Iron") +mcstair.add("mcl_stairs:stair_ironblock") + +mcl_stairs.register_stair_and_slab_simple("andesite_smooth", "mcl_core:andesite_smooth", "Polished Andesite Stairs", "Polished Andesite Slab", "Double Polished Andesite Slab") +mcstair.add("mcl_stairs:stair_andesite_smooth") + +mcl_stairs.register_stair_and_slab_simple("diorite_smooth", "mcl_core:diorite_smooth", "Polished Diorite Stairs", "Polished Diorite Slab", "Double Polished Diorite Slab") +mcstair.add("mcl_stairs:stair_diorite_smooth") + +mcl_stairs.register_stair_and_slab_simple("granite_smooth", "mcl_core:granite_smooth", "Polished Granite Stairs", "Polished Granite Slab", "Double Polished Granite Slab") +mcstair.add("mcl_stairs:stair_granite_smooth") + +mcl_stairs.register_stair("stonebrickmossy", "mcl_core:stonebrickmossy", + {pickaxey=1}, + {"mcl_core_stonebrick_mossy.png"}, + "Mossy Stone Brick Stairs", + mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickmossy") +mcstair.add("mcl_stairs:stair_stonebrickmossy") + +mcl_stairs.register_slab("stonebrickmossy", "mcl_core:stonebrickmossy", + {pickaxey=1}, + {"mcl_core_stonebrick_mossy.png"}, + "Mossy Stone Brick Slab", + mcl_sounds.node_sound_stone_defaults(), 2, "Double Mossy Stone Brick Slab", "mcl_core:stonebrickmossy") + +mcl_stairs.register_stair("stonebrickcracked", "mcl_core:stonebrickcracked", + {pickaxey=1}, + {"mcl_core_stonebrick_cracked.png"}, + "Cracked Stone Brick Stairs", + mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickcracked") +mcstair.add("mcl_stairs:stair_stonebrickcracked") + +mcl_stairs.register_slab("stonebrickcracked", "mcl_core:stonebrickcracked", + {pickaxey=1}, + {"mcl_core_stonebrick_cracked.png"}, + "Cracked Stone Brick Slab", + mcl_sounds.node_sound_stone_defaults(), 2, "Double Cracked Stone Brick Slab", "mcl_core:stonebrickcracked") + + +mcl_stairs.register_slab("stonebrickcarved", "mcl_core:stonebrickcarved", + {pickaxey=1}, + {"mcl_core_stonebrick_carved.png", "mcl_core_stonebrick_carved.png", "mcl_supplemental_stonebrick_carved_slab.png"}, + "Chiseled Stone Brick Slab", + mcl_sounds.node_sound_stone_defaults(), + minetest.registered_nodes["mcl_core:granite_smooth"]._mcl_hardness, + "Double Chiseled Stone Brick Slab") + +-- TODO: Chiseled stone brick stairs + +local block = {} +block.dyes = { + {"white", "White", "white"}, + {"grey", "Grey", "dark_grey"}, + {"silver", "Light Grey", "grey"}, + {"black", "Black", "black"}, + {"red", "Red", "red"}, + {"yellow", "Yellow", "yellow"}, + {"green", "Green", "dark_green"}, + {"cyan", "Cyan", "cyan"}, + {"blue", "Blue", "blue"}, + {"magenta", "Magenta", "magenta"}, + {"orange", "Orange", "orange"}, + {"purple", "Purple", "violet"}, + {"brown", "Brown", "brown"}, + {"pink", "Pink", "pink"}, + {"lime", "Lime", "green"}, + {"light_blue", "Light Blue", "lightblue"}, +} + +for i=1, #block.dyes do + local c = block.dyes[i][1] + mcl_stairs.register_stair_and_slab_simple("concrete_"..c, "mcl_colorblocks:concrete_"..c, block.dyes[i][2].." Concrete Stairs", block.dyes[i][2].." Concrete Slab") + mcstair.add("mcl_stairs:stair_concrete_"..c) +end + -- 2.11.4.GIT