add darkage moreblocks aliases

This commit is contained in:
Milan 2020-03-05 20:49:09 +01:00
parent 51c05e61e1
commit 20d27a28ff

View File

@ -143,3 +143,82 @@ stairsplus:register_all("darkage", "marble", "darkage:marble", {
table.insert(circular_saw.known_stairs, "darkage:ors")
table.insert(circular_saw.known_stairs, "darkage:ors_brick")
table.insert(circular_saw.known_stairs, "darkage:marble")
-- 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("slate" .. ":" .. t[1] .. t[2] .. "_block", "darkage" .. ":" .. t[1] .. "_" .. "slate" .. t[2])
minetest.register_alias("slate_tile" .. ":" .. t[1] .. t[2] .. "_block", "darkage" .. ":" .. t[1] .. "_" .. "slate_tile" .. t[2])
minetest.register_alias("adobe" .. ":" .. t[1] .. t[2] .. "_block", "darkage" .. ":" .. t[1] .. "_" .. "adobe" .. t[2])
minetest.register_alias("basalt" .. ":" .. t[1] .. t[2] .. "_block", "darkage" .. ":" .. t[1] .. "_" .. "basalt" .. t[2])
minetest.register_alias("basalt_cobble" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "basalt_cobble" .. t[2])
minetest.register_alias("chalk" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "chalk" .. t[2])
minetest.register_alias("cobble_with_plaster" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "cobble_with_plaster" .. t[2])
minetest.register_alias("gneiss" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "gneiss" .. t[2])
minetest.register_alias("gneiss_cobble" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "gneiss_cobble" .. t[2])
minetest.register_alias("schist" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "schist" .. t[2])
minetest.register_alias("serpentine" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "serpentine" .. t[2])
minetest.register_alias("shale" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "shale" .. t[2])
minetest.register_alias("slate_cobble" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "slate_cobble" .. t[2])
minetest.register_alias("stone_brick" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "stone_brick" .. t[2])
minetest.register_alias("ors" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "ors" .. t[2])
minetest.register_alias("ors_brick" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "ors_brick" .. t[2])
minetest.register_alias("marble" .. ":" .. t[1] .. "_block" .. t[2], "darkage" .. ":" .. t[1] .. "_" .. "marble" .. t[2])
end