Move stuff from mclx_stairs to mcl_stairs
[MineClone/MineClone2.git] / mods / ITEMS / mcl_stairs / register.lua
blob1875eff7a6afefac231bda2b74f32f1226e93e48
1 -- Register all Minecraft stairs and slabs
2 -- Note about hardness: For some reason, the hardness of slabs and stairs don't always match nicely, so that some
3 -- slabs actually take slightly longer to be dug than their stair counterparts.
4 -- Note sure if it is a good idea to preserve this oddity.
6 local woods = {
7 { "wood", "default_wood.png", "Oak Wood Stairs", "Oak Wood Slab", "Double Oak Wood Slab" },
8 { "junglewood", "default_junglewood.png", "Jungle Wood Stairs", "Jungle Wood Slab", "Double Jungle Wood Slab" },
9 { "acaciawood", "default_acacia_wood.png", "Acacia Wood Stairs", "Acacia Wood Slab", "Double Acacia Wood Slab" },
10 { "sprucewood", "mcl_core_planks_spruce.png", "Spruce Wood Stairs", "Spruce Wood Slab", "Double Spruce Wood Slab" },
11 { "birchwood", "mcl_core_planks_birch.png", "Birch Wood Stairs", "Birch Wood Slab", "Double Birch Wood Slab" },
12 { "darkwood", "mcl_core_planks_big_oak.png", "Dark Oak Wood Stairs", "Dark Oak Wood Slab", "Double Dark Oak Wood Slab" },
15 for w=1, #woods do
16 local wood = woods[w]
17 mcl_stairs.register_stair(wood[1], "mcl_core:"..wood[1],
18 {handy=1,axey=1, flammable=3,wood_stairs=1, material_wood=1},
19 {wood[2]},
20 wood[3],
21 mcl_sounds.node_sound_wood_defaults(),
23 "woodlike")
24 mcl_stairs.register_slab(wood[1], "mcl_core:"..wood[1],
25 {handy=1,axey=1, flammable=3,wood_slab=1, material_wood=1},
26 {wood[2]},
27 wood[4],
28 mcl_sounds.node_sound_wood_defaults(),
30 wood[5])
31 end
33 mcl_stairs.register_stair_and_slab_simple("stone_rough", "mcl_core:stone", "Stone Stairs", "Stone Slab", "Double Stone Slab")
35 mcl_stairs.register_slab("stone", "mcl_core:stone_smooth",
36 {pickaxey=1, material_stone=1},
37 {"mcl_stairs_stone_slab_top.png", "mcl_stairs_stone_slab_top.png", "mcl_stairs_stone_slab_side.png"},
38 "Polished Stone Slab",
39 mcl_sounds.node_sound_stone_defaults(), 2, "Double Polished Stone Slab")
41 mcl_stairs.register_stair_and_slab_simple("andesite", "mcl_core:andesite", "Andesite Stairs", "Andesite Slab", "Double Andesite Slab")
42 mcl_stairs.register_stair_and_slab_simple("granite", "mcl_core:granite", "Granite Stairs", "Granite Slab", "Double Granite Slab")
43 mcl_stairs.register_stair_and_slab_simple("diorite", "mcl_core:diorite", "Diorite Stairs", "Diorite Slab", "Double Diorite Slab")
45 mcl_stairs.register_stair_and_slab_simple("cobble", "mcl_core:cobble", "Cobblestone Stairs", "Cobblestone Slab", "Double Cobblestone Slab")
46 mcl_stairs.register_stair_and_slab_simple("mossycobble", "mcl_core:mossycobble", "Moss Stone Stairs", "Moss Stone Slab", "Double Moss Stone Slab")
48 mcl_stairs.register_stair_and_slab_simple("brick_block", "mcl_core:brick_block", "Brick Stairs", "Brick Slab", "Double Brick Slab")
51 mcl_stairs.register_stair("sandstone", "group:sandstone",
52 {pickaxey=1, material_stone=1},
53 {"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
54 "Sandstone Stairs",
55 mcl_sounds.node_sound_stone_defaults(), 0.8, nil, "mcl_core:sandstone")
56 mcl_stairs.register_slab("sandstone", "group:sandstone",
57 {pickaxey=1, material_stone=1},
58 {"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
59 "Sandstone Slab",
60 mcl_sounds.node_sound_stone_defaults(), 2, "Double Sandstone Slab", "mcl_core:sandstone")
61 mcl_stairs.register_stair_and_slab_simple("sandstonesmooth2", "mcl_core:sandstonesmooth2", "Smooth Sandstone Stairs", "Smooth Sandstone Slab", "Double Smooth Sandstone Slab")
63 mcl_stairs.register_stair("redsandstone", "group:redsandstone",
64 {pickaxey=1, material_stone=1},
65 {"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
66 "Red Sandstone Stairs",
67 mcl_sounds.node_sound_stone_defaults(), 0.8, nil, "mcl_core:redsandstone")
68 mcl_stairs.register_slab("redsandstone", "group:redsandstone",
69 {pickaxey=1, material_stone=1},
70 {"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
71 "Red Sandstone Slab",
72 mcl_sounds.node_sound_stone_defaults(), 2, "Double Red Sandstone Slab", "mcl_core:redsandstone")
73 mcl_stairs.register_stair_and_slab_simple("redsandstonesmooth2", "mcl_core:redsandstonesmooth2", "Smooth Red Sandstone Stairs", "Smooth Red Sandstone Slab", "Double Smooth Red Sandstone Slab")
75 -- Intentionally not group:stonebrick because of mclx_stairs
76 mcl_stairs.register_stair("stonebrick", "mcl_core:stonebrick",
77 {pickaxey=1, material_stone=1},
78 {"default_stone_brick.png"},
79 "Stone Bricks Stairs",
80 mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrick")
81 mcl_stairs.register_slab("stonebrick", "mcl_core:stonebrick",
82 {pickaxey=1, material_stone=1},
83 {"default_stone_brick.png"},
84 "Stone Bricks Slab",
85 mcl_sounds.node_sound_stone_defaults(), 2, "Double Stone Bricks Slab", "mcl_core:stonebrick")
87 mcl_stairs.register_stair("quartzblock", "group:quartz_block",
88 {pickaxey=1, material_stone=1},
89 {"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
90 "Quartz Stairs",
91 mcl_sounds.node_sound_stone_defaults(), 0.8, nil, "mcl_nether:quartz_block")
92 mcl_stairs.register_slab("quartzblock", "group:quartz_block",
93 {pickaxey=1, material_stone=1},
94 {"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"},
95 "Quartz Slab",
96 mcl_sounds.node_sound_stone_defaults(), 2, "Double Quartz Slab", "mcl_nether:quartz_block")
98 mcl_stairs.register_stair_and_slab_simple("quartz_smooth", "mcl_nether:quartz_smooth", "Smooth Quartz Stairs", "Smooth Quartz Slab", "Double Smooth Quartz Slab")
100 mcl_stairs.register_stair_and_slab("nether_brick", "mcl_nether:nether_brick",
101 {pickaxey=1, material_stone=1},
102 {"mcl_nether_nether_brick.png"},
103 "Nether Brick Stairs",
104 "Nether Brick Slab",
105 mcl_sounds.node_sound_stone_defaults(),
107 "Double Nether Brick Slab")
108 mcl_stairs.register_stair_and_slab("red_nether_brick", "mcl_nether:red_nether_brick",
109 {pickaxey=1, material_stone=1},
110 {"mcl_nether_red_nether_brick.png"},
111 "Red Nether Brick Stairs",
112 "Red Nether Brick Slab",
113 mcl_sounds.node_sound_stone_defaults(),
115 "Double Red Nether Brick Slab")
117 mcl_stairs.register_stair_and_slab_simple("end_bricks", "mcl_end:end_bricks", "End Stone Brick Stairs", "End Stone Brick Slab", "Double End Stone Brick Slab")
119 mcl_stairs.register_stair("purpur_block", "group:purpur",
120 {pickaxey=1, material_stone=1},
121 {"mcl_end_purpur_block.png"},
122 "Purpur Stairs",
123 mcl_sounds.node_sound_stone_defaults(),
124 1.5)
125 mcl_stairs.register_slab("purpur_block", "group:purpur",
126 {pickaxey=1, material_stone=1},
127 {"mcl_end_purpur_block.png"},
128 "Purpur Slab",
129 mcl_sounds.node_sound_stone_defaults(),
131 "Double Purpur Slab")
133 mcl_stairs.register_stair_and_slab_simple("prismarine", "mcl_ocean:prismarine", "Prismarine Stairs", "Prismarine Slab", "Double Prismarine Slab")
135 mcl_stairs.register_stair_and_slab_simple("prismarine_brick", "mcl_ocean:prismarine_brick", "Prismarine Brick Stairs", "Prismarine Brick Slab", "Double Prismarine Brick Slab")
136 mcl_stairs.register_stair_and_slab_simple("prismarine_dark", "mcl_ocean:prismarine_dark", "Dark Prismarine Stairs", "Dark Prismarine Slab", "Double Dark Prismarine Slab")
138 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"}, "Polished Andesite Slab", nil, nil, "Double Polished Andesite Slab")
139 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"}, "Polished Andesite Stairs", nil, nil, "woodlike")
141 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"}, "Polished Granite Slab", nil, nil, "Double Polished Granite Slab")
142 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"}, "Polished Granite Stairs", nil, nil, "woodlike")
144 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"}, "Polished Diorite Slab", nil, nil, "Double Polished Diorite Slab")
145 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"}, "Polished Diorite Stairs", nil, nil, "woodlike")
147 mcl_stairs.register_stair("stonebrickmossy", "mcl_core:stonebrickmossy",
148 {pickaxey=1},
149 {"mcl_core_stonebrick_mossy.png"},
150 "Mossy Stone Brick Stairs",
151 mcl_sounds.node_sound_stone_defaults(), 1.5, nil, "mcl_core:stonebrickmossy")
153 mcl_stairs.register_slab("stonebrickmossy", "mcl_core:stonebrickmossy",
154 {pickaxey=1},
155 {"mcl_core_stonebrick_mossy.png"},
156 "Mossy Stone Brick Slab",
157 mcl_sounds.node_sound_stone_defaults(), 2, "Double Mossy Stone Brick Slab", "mcl_core:stonebrickmossy")