Commit d1d8478d authored by Milan's avatar Milan
Browse files

add moreblocks aliases and typofix

parent 73bd4af4
Loading
Loading
Loading
Loading
+72 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ stairsplus:register_all("default", "stone_block", "default:stone_block", {
    sounds = default.node_sound_stone_defaults(),
})

stairsplus:register_all("mordefaulteblocks", "desert_stone_block", "default:desert_stone_block", {
stairsplus:register_all("default", "desert_stone_block", "default:desert_stone_block", {
    description = "Desert Stone Block",
    tiles = {"default_desert_stone_block.png"},
    groups = {cracky=3},
@@ -80,3 +80,74 @@ 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")


-- 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] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "stone_block" .. t[2])
    minetest.register_alias("desert_stone_block" .. ":" .. t[1] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "desert_stone_block" .. t[2])
    minetest.register_alias("sandstone_block" .. ":" .. t[1] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "sandstone_block" .. t[2])
    minetest.register_alias("obsidian_block" .. ":" .. t[1] .. t[2] .. "_block", "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])
end
 No newline at end of file