
-- Register default stairs and slabs
--
-- ICE! stairs and slabs. By MustTest
stairs.register_stair_and_slab(
	"ice",
	"default:ice",
	{cracky = 3, puts_out_fire = 1, cold = 1, slippery = 1},
	{"default_ice.png"},
	"Ice",
	default.node_sound_glass_defaults()
)

stairs.register_stair_and_slab(
	"wood",
	"basictrees:tree_wood",
	{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
	{"default_wood.png"},
	"Wooden",
	default.node_sound_wood_defaults()
)

stairs.register_stair_and_slab(
	"junglewood",
	"basictrees:jungletree_wood",
	{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
	{"default_junglewood.png"},
	"Jungle Wood",
	default.node_sound_wood_defaults()
)

stairs.register_stair_and_slab(
	"pine_wood",
	"basictrees:pine_wood",
	{choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
	{"default_pine_wood.png"},
	"Pine Wood",
	default.node_sound_wood_defaults()
)

stairs.register_stair_and_slab(
	"acacia_wood",
	"basictrees:acacia_wood",
	{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
	{"default_acacia_wood.png"},
	"Acacia Wood",
	default.node_sound_wood_defaults()
)

stairs.register_stair_and_slab(
	"aspen_wood",
	"basictrees:aspen_wood",
	{choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
	{"default_aspen_wood.png"},
	"Aspen Wood",
	default.node_sound_wood_defaults()
)

stairs.register_stair_and_slab(
	"stone",
	"default:stone",
	{cracky = 3},
	{"default_stone.png"},
	"Stone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"cobble",
	"default:cobble",
	{cracky = 3},
	{"default_cobble.png"},
	"Cobblestone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"mossycobble",
	"default:mossycobble",
	{cracky = 3},
	{"default_mossycobble.png"},
	"Mossy Cobblestone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"stonebrick",
	"default:stonebrick",
	{cracky = 2},
	{"default_stone_brick.png"},
	"Stone Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"stone_block",
	"default:stone_block",
	{cracky = 2},
	{"default_stone_block.png"},
	"Stone Block",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_stone",
	"default:desert_stone",
	{cracky = 3},
	{"default_desert_stone.png"},
	"Redstone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_cobble",
	"default:desert_cobble",
	{cracky = 3},
	{"default_desert_cobble.png"},
	"Chalked Cobble Redstone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_cobble2",
	"default:desert_cobble2",
	{cracky = 3},
	{"default_desert_cobble2.png"},
	"Cobble Redstone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_stonebrick",
	"default:desert_stonebrick",
	{cracky = 2},
	{"default_desert_stone_brick.png"},
	"Redstone Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_stone_block",
	"default:desert_stone_block",
	{cracky = 2},
	{"default_desert_stone_block.png"},
	"Redstone Block",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"sandstone",
	"default:sandstone",
	{cracky = 3},
	{"default_sandstone.png"},
	"Sandstone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"sandstonebrick",
	"default:sandstonebrick",
	{cracky = 2},
	{"default_sandstone_brick.png"},
	"Sandstone Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"sandstone_block",
	"default:sandstone_block",
	{cracky = 2},
	{"default_sandstone_block.png"},
	"Sandstone Block",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_sandstone",
	"default:desert_sandstone",
	{cracky = 3},
	{"default_desert_sandstone.png"},
	"Desert Sandstone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_sandstonebrick",
	"default:desert_sandstone_brick",
	{cracky = 2},
	{"default_desert_sandstone_brick.png"},
	"Desert Sandstone Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"desert_sandstone_block",
	"default:desert_sandstone_block",
	{cracky = 2},
	{"default_desert_sandstone_block.png"},
	"Desert Sandstone Block",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"silver_sandstone",
	"default:silver_sandstone",
	{cracky = 3},
	{"default_silver_sandstone.png"},
	"Silver Sandstone",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"silver_sandstonebrick",
	"default:silver_sandstone_brick",
	{cracky = 2},
	{"default_silver_sandstone_brick.png"},
	"Silver Sandstone Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"silver_sandstone_block",
	"default:silver_sandstone_block",
	{cracky = 2},
	{"default_silver_sandstone_block.png"},
	"Silver Sandstone Block",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"obsidian",
	"default:obsidian",
	{cracky = 1, level = 2},
	{"default_obsidian.png"},
	"Obsidian",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"obsidianbrick",
	"default:obsidianbrick",
	{cracky = 1, level = 2},
	{"default_obsidian_brick.png"},
	"Obsidian Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"obsidian_block",
	"default:obsidian_block",
	{cracky = 1, level = 2},
	{"default_obsidian_block.png"},
	"Obsidian Block",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"brick",
	"default:brick",
	{cracky = 3},
	{"default_brick.png"},
	"Brick",
	default.node_sound_stone_defaults()
)

stairs.register_stair_and_slab(
	"straw",
	"farming:straw",
	{snappy = 3, flammable = 4},
	{"farming_straw.png"},
	"Straw",
	default.node_sound_leaves_defaults()
)

stairs.register_stair_and_slab(
	"straw_weathered",
	"farming:straw_weathered",
	{snappy = 3, flammable = 4},
	{"farming_straw_weathered.png"},
	"Weathered Straw",
	default.node_sound_leaves_defaults()
)

stairs.register_stair_and_slab(
	"steelblock",
	"default:steelblock",
	{cracky = 1, level = 2},
	{"default_steel_block.png"},
	"Wrought Iron Block",
	default.node_sound_metal_defaults()
)

stairs.register_stair_and_slab(
	"copperblock",
	"default:copperblock",
	{cracky = 1, level = 2},
	{"default_copper_block.png"},
	"Copper Block",
	default.node_sound_metal_defaults()
)

stairs.register_stair_and_slab(
	"bronzeblock",
	"default:bronzeblock",
	{cracky = 1, level = 2},
	{"default_bronze_block.png"},
	"Bronze Block",
	default.node_sound_metal_defaults()
)

stairs.register_stair_and_slab(
	"goldblock",
	"default:goldblock",
	{cracky = 1},
	{"default_gold_block.png"},
	"Gold Block",
	default.node_sound_metal_defaults()
)

stairs.register_stair_and_slab(
	"snowblock",
	"default:snowblock",
	{
		level = 1,
		crumbly = 3,
		puts_out_fire = 1,
		snow = 1,
		snowy = 1,
		falling_node = 1,
		melts = 1,
	},
	{"default_snow.png"},
	"Snow Block",
	default.node_sound_snow_defaults()
)

stairs.register_stair_and_slab(
	"default_glass",
	"default:glass",
	{cracky = 3, oddly_breakable_by_hand = 3},
	{"default_glass.png"},
	"Glass",
	default.node_sound_glass_defaults()
)
minetest.override_item("stairs:slab_default_glass", {
    sunlight_propagates = true,
})
minetest.override_item("stairs:stair_default_glass", {
    sunlight_propagates = true,
})

stairs.register_stair_and_slab(
	"obsidian_glass",
	"default:obsidian_glass",
	{cracky = 3, oddly_breakable_by_hand = 3},
	{"default_obsidian_glass.png"},
	"Obsidian Glass",
	default.node_sound_glass_defaults()
)
minetest.override_item("stairs:slab_obsidian_glass", {
	sunlight_propagates = true,
})
minetest.override_item("stairs:stair_obsidian_glass", {
	sunlight_propagates = true,
})

stairs.register_stair_and_slab(
	"meselamp",
	"default:meselamp",
	{level = 2, cracky = 3},
	{"default_meselamp.png"},
	"Mese Lamp",
	default.node_sound_glass_defaults()
)
minetest.override_item("stairs:slab_meselamp", {
	sunlight_propagates = true,
	light_source = default.LIGHT_MAX-1,
})
minetest.override_item("stairs:stair_meselamp", {
	sunlight_propagates = true,
	light_source = default.LIGHT_MAX-1,
})
