2023-02-15 19:55:41 +00:00
|
|
|
local stair_oxidization = {
|
|
|
|
{ "cut", "exposed_cut" },
|
|
|
|
{ "cut_inner", "exposed_cut_inner" },
|
|
|
|
{ "cut_outer", "exposed_cut_outer" },
|
|
|
|
{ "exposed_cut", "weathered_cut" },
|
|
|
|
{ "exposed_cut_inner", "weathered_cut_inner" },
|
|
|
|
{ "exposed_cut_outer", "weathered_cut_outer" },
|
|
|
|
{ "weathered_cut", "oxidized_cut" },
|
|
|
|
{ "weathered_cut_inner", "oxidized_cut_inner" },
|
|
|
|
{ "weathered_cut_outer", "oxidized_cut_outer" }
|
2022-05-01 01:11:51 +00:00
|
|
|
}
|
|
|
|
|
2023-02-15 18:41:43 +00:00
|
|
|
local slab_oxidization = {
|
2023-02-15 19:55:41 +00:00
|
|
|
{ "cut", "exposed_cut" },
|
|
|
|
{ "cut_top", "exposed_cut_top" },
|
|
|
|
{ "cut_double", "exposed_cut_double" },
|
|
|
|
{ "exposed_cut", "weathered_cut" },
|
|
|
|
{ "exposed_cut_top", "weathered_cut_top" },
|
|
|
|
{ "exposed_cut_double", "weathered_cut_double" },
|
|
|
|
{ "weathered_cut", "oxidized_cut" },
|
2023-05-20 16:44:54 +00:00
|
|
|
{ "weathered_cut_top", "oxidized_cut_top" },
|
2023-02-15 19:55:41 +00:00
|
|
|
{ "weathered_cut_double", "oxidized_cut_double" },
|
2023-02-15 18:41:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local def
|
|
|
|
local def_variant_oxidized
|
|
|
|
local def_variant_waxed
|
2023-02-15 18:59:39 +00:00
|
|
|
local def_variant_scraped
|
2023-02-15 18:41:43 +00:00
|
|
|
|
2023-02-15 19:55:41 +00:00
|
|
|
-- set up oxidized and waxed variants.
|
|
|
|
for i = 1, #stair_oxidization do
|
|
|
|
-- stairs
|
|
|
|
def = "mcl_stairs:stair_copper_" .. stair_oxidization[i][1]
|
|
|
|
def_variant_oxidized = "mcl_stairs:stair_copper_" .. stair_oxidization[i][2]
|
2023-02-15 18:41:43 +00:00
|
|
|
minetest.override_item(def, { _mcl_oxidized_variant = def_variant_oxidized })
|
|
|
|
|
2023-05-20 15:59:28 +00:00
|
|
|
def_variant_waxed = "mcl_stairs:stair_waxed_copper_" .. stair_oxidization[i][1]
|
2023-02-15 19:55:41 +00:00
|
|
|
minetest.override_item(def, { _mcl_waxed_variant = def_variant_waxed })
|
|
|
|
|
|
|
|
-- slabs
|
|
|
|
def = "mcl_stairs:slab_copper_" .. slab_oxidization[i][1]
|
|
|
|
def_variant_oxidized = "mcl_stairs:slab_copper_" .. slab_oxidization[i][2]
|
2023-02-15 18:41:43 +00:00
|
|
|
minetest.override_item(def, { _mcl_oxidized_variant = def_variant_oxidized })
|
|
|
|
|
2023-02-15 19:55:41 +00:00
|
|
|
def_variant_waxed = "mcl_stairs:slab_waxed_copper_" .. slab_oxidization[i][1]
|
|
|
|
minetest.override_item(def, { _mcl_waxed_variant = def_variant_waxed })
|
2022-05-01 01:11:51 +00:00
|
|
|
end
|
2023-02-15 18:59:39 +00:00
|
|
|
|
|
|
|
-- Set up scraped variants.
|
2023-02-15 19:55:41 +00:00
|
|
|
for i = 1, #stair_oxidization do
|
|
|
|
-- does both stairs and slabs.
|
2023-02-15 18:59:39 +00:00
|
|
|
if i > 3 then
|
2023-02-15 19:55:41 +00:00
|
|
|
def = "mcl_stairs:stair_copper_" .. stair_oxidization[i][1]
|
|
|
|
def_variant_scraped = "mcl_stairs:stair_copper_" .. stair_oxidization[i - 3][1]
|
2023-02-15 18:59:39 +00:00
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
2023-02-15 19:55:41 +00:00
|
|
|
|
|
|
|
def = "mcl_stairs:slab_copper_" .. slab_oxidization[i][1]
|
|
|
|
def_variant_scraped = "mcl_stairs:slab_copper_" .. slab_oxidization[i - 3][1]
|
2023-02-15 18:59:39 +00:00
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
end
|
2023-02-15 19:55:41 +00:00
|
|
|
if i > 6 then
|
|
|
|
def = "mcl_stairs:stair_copper_" .. stair_oxidization[i][2]
|
|
|
|
def_variant_scraped = "mcl_stairs:stair_copper_" .. stair_oxidization[i][1]
|
2023-02-15 18:59:39 +00:00
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
2023-02-15 19:55:41 +00:00
|
|
|
|
|
|
|
def = "mcl_stairs:slab_copper_" .. slab_oxidization[i][2]
|
|
|
|
def_variant_scraped = "mcl_stairs:slab_copper_" .. slab_oxidization[i][1]
|
2023-02-15 18:59:39 +00:00
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
end
|
|
|
|
end
|
2022-05-04 09:07:04 +00:00
|
|
|
|
2023-02-15 19:55:41 +00:00
|
|
|
-- Set up scraped variants for waxed stairs.
|
|
|
|
local waxed_variants = {
|
|
|
|
{ "waxed_copper_cut", "copper_cut" },
|
|
|
|
{ "waxed_copper_exposed_cut", "copper_exposed_cut" },
|
|
|
|
{ "waxed_copper_weathered_cut", "copper_weathered_cut" },
|
|
|
|
{ "waxed_copper_oxidized_cut", "copper_oxidized_cut" },
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1, #waxed_variants do
|
|
|
|
-- stairs
|
|
|
|
def = "mcl_stairs:stair_" .. waxed_variants[i][1]
|
|
|
|
def_variant_scraped = "mcl_stairs:stair_" .. waxed_variants[i][2]
|
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
|
|
|
|
def = "mcl_stairs:stair_" .. waxed_variants[i][1] .. "_inner"
|
|
|
|
def_variant_scraped = "mcl_stairs:stair_" .. waxed_variants[i][2] .. "_inner"
|
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
|
|
|
|
def = "mcl_stairs:stair_" .. waxed_variants[i][1] .. "_outer"
|
|
|
|
def_variant_scraped = "mcl_stairs:stair_" .. waxed_variants[i][2] .. "_outer"
|
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
|
|
|
|
-- slab
|
|
|
|
def = "mcl_stairs:slab_" .. waxed_variants[i][1]
|
|
|
|
def_variant_scraped = "mcl_stairs:slab_" .. waxed_variants[i][2]
|
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
|
|
|
|
def = "mcl_stairs:slab_" .. waxed_variants[i][1] .. "_top"
|
|
|
|
def_variant_scraped = "mcl_stairs:slab_" .. waxed_variants[i][2] .. "_top"
|
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
|
|
|
|
def = "mcl_stairs:slab_" .. waxed_variants[i][1] .. "_double"
|
|
|
|
def_variant_scraped = "mcl_stairs:slab_" .. waxed_variants[i][2] .. "_double"
|
|
|
|
minetest.override_item(def, { _mcl_stripped_variant = def_variant_scraped })
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2023-05-20 16:44:54 +00:00
|
|
|
-- Waxed Oxidized Slabs and Stairs
|
|
|
|
local oxidized_slabs = {
|
|
|
|
"oxidized_cut",
|
|
|
|
"oxidized_cut_double",
|
|
|
|
"oxidized_cut_top"
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1, #oxidized_slabs do
|
|
|
|
def = "mcl_stairs:slab_copper_" .. oxidized_slabs[i]
|
|
|
|
def_variant_waxed = "mcl_stairs:slab_waxed_copper_" .. oxidized_slabs[i]
|
|
|
|
minetest.override_item(def, { _mcl_waxed_variant = def_variant_waxed })
|
|
|
|
end
|
|
|
|
|
|
|
|
local oxidized_stairs = {
|
|
|
|
"oxidized_cut",
|
|
|
|
"oxidized_cut_inner",
|
|
|
|
"oxidized_cut_outer"
|
|
|
|
}
|
|
|
|
|
|
|
|
for i = 1, #oxidized_stairs do
|
|
|
|
def = "mcl_stairs:stair_copper_" .. oxidized_stairs[i]
|
|
|
|
def_variant_waxed = "mcl_stairs:stair_waxed_copper_" .. oxidized_stairs[i]
|
|
|
|
minetest.override_item(def, { _mcl_waxed_variant = def_variant_waxed })
|
|
|
|
end
|
2024-02-11 21:53:49 +00:00
|
|
|
|
|
|
|
minetest.register_alias("mcl_copper:raw_block", "mcl_copper:block_raw")
|
|
|
|
minetest.register_alias("mcl_copper:cut", "mcl_copper:block_cut")
|
|
|
|
minetest.register_alias("mcl_copper:waxed_cut", "mcl_copper:waxed_block_cut")
|
|
|
|
minetest.register_alias("mcl_copper:cut_exposed", "mcl_copper:block_exposed_cut")
|
|
|
|
minetest.register_alias("mcl_copper:waxed_cut_exposed", "mcl_copper:waxed_block_exposed_cut")
|
|
|
|
minetest.register_alias("mcl_copper:cut_weathered", "mcl_copper:block_weathered_cut")
|
|
|
|
minetest.register_alias("mcl_copper:waxed_cut_weathered", "mcl_copper:waxed_block_weathered_cut")
|
|
|
|
minetest.register_alias("mcl_copper:cut_oxidized", "mcl_copper:block_oxidized_cut")
|
|
|
|
minetest.register_alias("mcl_copper:waxed_cut_oxidized", "mcl_copper:waxed_block_oxidized_cut")
|