stairsplus:register_all("default", "stone_block", "default:stone_block", {
    description = "Stone Block",
    tiles = {"default_stone_block.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("default", "desert_stone_block", "default:desert_stone_block", {
    description = "Desert Stone Block",
    tiles = {"default_desert_stone_block.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("default", "sandstone_block", "default:sandstone_block", {
    description = "Sandstone Block",
    tiles = {"default_sandstone_block.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("default", "obsidian_block", "default:obsidian_block", {
    description = "Obsidian Block",
    tiles = {"default_obsidian_block.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("default", "tinblock", "default:tinblock", {
    description = "Tin Block",
    tiles = {"default_tinblock.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("trunks", "twigs", "trunks:twigs", {
    description = "Twigs",
    tiles = {"trunks_twigs.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("illuna", "stonebrick", "illuna:stonebrick", {
    description = "Illuna Stonebrick",
    tiles = {"default_stone_brick.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
    glow = 3,
})

stairsplus:register_all("ethereal", "willow_trunk", "ethereal:willow_trunk", {
    description = "Willow Trunk",
    tiles = {"willow_trunk.png"},
    groups = {cracky=3},
    sounds = default.node_sound_stone_defaults(),
    glow = 3,
})

local name = {"red", "green", "white", "black", "blue", "brown", "cyan",
		"grey", "dark_green", "dark_grey", "magenta", "orange", "pink",
		"red", "violet", "yellow"}

for i = 1, 16 do
	local name = name[i]
    stairsplus:register_all("moreblocks", "wool_"..name, "wool:"..name, {
        description = name.." Wool",
        tiles = {"wool_"..name..".png"},
        groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
                flammable = 3, wool = 1},
        sounds = illuna.node_sound_wool(),
    })
    minetest.register_alias(name..":slab_block_1", "moreblocks:slab_wool_"..name.."_1")
    minetest.register_alias(name..":slab_block_2", "moreblocks:slab_wool_"..name.."_2")
end
minetest.register_alias("wool:white_microslab", "moreblocks:slab_wool_white")

stairsplus:register_all("integral", "integral_bark", "integral:integral_bark", {
    description = "Integral Bark",
    tiles = {"default_tree.png"},
    groups = {choppy = 2},
    sounds = default.node_sound_wood_defaults(),
})

stairsplus:register_all("integral", "integral_wood", "integral:integral_wood", {
    description = "Integral Wood",
    tiles = {"integral_integral_wood.png"},
    groups = {choppy = 2},
    sounds = default.node_sound_wood_defaults(),
})

stairsplus:register_all("integral", "integral_ironwood", "integral:integral_ironwood", {
    description = "Integral Ironwood",
    tiles = {"integral_integral_wood.png^[colorize:#B7410E:80"},
    groups = {choppy = 2},
    sounds = default.node_sound_wood_defaults(),
})

stairsplus:register_all("integral", "integral_diamondwood", "integral:integral_diamondwood", {
    description = "Integral Diamondwood",
    tiles = {"integral_integral_wood.png^[colorize:#5D8AA8:80"},
    groups = {choppy = 2},
    sounds = default.node_sound_wood_defaults(),
})

stairsplus:register_all("integral", "integral_petrifiedwood", "integral:petrified_wood", {
    description = "Petrifiedwood",
    tiles = {"ores_petrified_wood.png"},
    groups = {cracky = 3},
    sounds = default.node_sound_wood_defaults(),
})

stairsplus:register_all("integral", "integral_amber", "integral:integral_amber", {
    description = "Integral Amber",
    tiles = {"integral_amber.png"},
    groups = {cracky = 3},
    sounds = default.node_sound_wood_defaults(),
    glow = 1,
})

table.insert(circular_saw.known_stairs, "default:stone_block")
table.insert(circular_saw.known_stairs, "default:desert_stone_block")
table.insert(circular_saw.known_stairs, "default:sandstone_block")
table.insert(circular_saw.known_stairs, "default:obsidian_block")
table.insert(circular_saw.known_stairs, "ethereal:willow_trunk")
table.insert(circular_saw.known_stairs, "illuna:stonebrick")
table.insert(circular_saw.known_stairs, "integral:integral_bark")
table.insert(circular_saw.known_stairs, "integral:integral_wood")
table.insert(circular_saw.known_stairs, "integral:integral_ironwood")
table.insert(circular_saw.known_stairs, "integral:integral_diamondwood")
table.insert(circular_saw.known_stairs, "integral:petrified_wood")
table.insert(circular_saw.known_stairs, "integral:integral_amber")

-- and now for the aliases

local saw_names = {
	{"micro", "_1"},
	{"panel", "_1"},
	{"micro", "_2"},
	{"panel", "_2"},
	{"micro", "_4"},
	{"panel", "_4"},
	{"micro", ""},
	{"panel", ""},

	{"micro", "_12"},
	{"panel", "_12"},
	{"micro", "_14"},
	{"panel", "_14"},
	{"micro", "_15"},
	{"panel", "_15"},
	{"stair", "_outer"},
	{"stair", ""},

	{"stair", "_inner"},
	{"slab", "_1"},
	{"slab", "_2"},
	{"slab", "_quarter"},
	{"slab", ""},
	{"slab", "_three_quarter"},
	{"slab", "_14"},
	{"slab", "_15"},

	{"slab", "_two_sides"},
	{"slab", "_three_sides"},
	{"slab", "_three_sides_u"},
	{"stair", "_half"},
	{"stair", "_alt_1"},
	{"stair", "_alt_2"},
	{"stair", "_alt_4"},
	{"stair", "_alt"},

	{"slope", ""},
	{"slope", "_half"},
	{"slope", "_half_raised"},
	{"slope", "_inner"},
	{"slope", "_inner_half"},
	{"slope", "_inner_half_raised"},
	{"slope", "_inner_cut"},
	{"slope", "_inner_cut_half"},

	{"slope", "_inner_cut_half_raised"},
	{"slope", "_outer"},
	{"slope", "_outer_half"},
	{"slope", "_outer_half_raised"},
	{"slope", "_outer_cut"},
	{"slope", "_outer_cut_half"},
	{"slope", "_outer_cut_half_raised"},
	{"slope", "_cut"},
}

for i = 1, #saw_names do
    local t = saw_names[i]
    minetest.register_alias("stone_block" .. ":" .. t[1] .. "_block" .. t[2], "default" .. ":" .. t[1] .. "_" .. "stone_block" .. t[2])
    minetest.register_alias("desert_stone_block" .. ":" .. t[1] .. "_block" .. t[2], "default" .. ":" .. t[1] .. "_" .. "desert_stone_block" .. t[2])
    minetest.register_alias("sandstone_block" .. ":" .. t[1] .. "_block" .. t[2], "default" .. ":" .. t[1] .. "_" .. "sandstone_block" .. t[2])
    minetest.register_alias("obsidian_block" .. ":" .. t[1] .. "_block" .. t[2], "default" .. ":" .. t[1] .. "_" .. "obsidian_block" .. t[2])
    minetest.register_alias("tinblock" .. ":" .. t[1] .. "_block" .. t[2], "default" .. ":" .. t[1] .. "_" .. "tinblock" .. t[2])
    minetest.register_alias("twigs" .. ":" .. t[1] .. "_block" .. t[2], "trunks" .. ":" .. t[1] .. "_" .. "twigs" .. t[2])
    minetest.register_alias("illuna_stonebrick" .. ":" .. t[1] .. "_block" .. t[2], "illuna" .. ":" .. t[1] .. "_" .. "stonebrick" .. t[2])
    minetest.register_alias("ethereal_willow_trunk" .. ":" .. t[1] .. "_block" .. t[2], "ethereal" .. ":" .. t[1] .. "_" .. "willow_trunk" .. t[2])
    minetest.register_alias("stairs" .. ":" .. t[1] .. "_" .. "integral_bark" .. t[2], "integral" .. ":" .. t[1] .. "_" .. "integral_bark" .. t[2])
    minetest.register_alias("stairs" .. ":" .. t[1] .. "_" .. "integral_wood" .. t[2], "integral" .. ":" .. t[1] .. "_" .. "integral_wood" .. t[2])
    minetest.register_alias("stairs" .. ":" .. t[1] .. "_" .. "integral_ironwood" .. t[2], "integral" .. ":" .. t[1] .. "_" .. "integral_ironwood" .. t[2])
    minetest.register_alias("stairs" .. ":" .. t[1] .. "_" .. "integral_diamondwood" .. t[2], "integral" .. ":" .. t[1] .. "_" .. "integral_diamondwood" .. t[2])
    minetest.register_alias("stairs" .. ":" .. t[1] .. "_" .. "petrified_wood" .. t[2], "integral" .. ":" .. t[1] .. "_" .. "petrified_wood" .. t[2])
    minetest.register_alias("stairs" .. ":" .. t[1] .. "_" .. "integral_amber" .. t[2], "integral" .. ":" .. t[1] .. "_" .. "integral_amber" .. t[2])
end