New terracotta stairs and slabs

This commit is contained in:
JoseDouglas26 2024-05-07 13:23:31 -03:00
parent 026ea5940c
commit a234779b5d
1 changed files with 32 additions and 16 deletions

View File

@ -87,22 +87,22 @@ mcl_stairs.register_slab("stonebrickcracked", "mcl_core:stonebrickcracked",
local block = {}
block.dyes = {
{"white", S("White Concrete Stairs"), S("White Concrete Slab"), S("Double White Concrete Slab"), "white"},
{"grey", S("Grey Concrete Stairs"), S("Grey Concrete Slab"), S("Double Grey Concrete Slab"), "dark_grey"},
{"silver", S("Light Grey Concrete Stairs"), S("Light Grey Concrete Slab"), S("Double Light Grey Concrete Slab"), "grey"},
{"black", S("Black Concrete Stairs"), S("Black Concrete Slab"), S("Double Black Concrete Slab"), "black"},
{"red", S("Red Concrete Stairs"), S("Red Concrete Slab"), S("Double Red Concrete Slab"), "red"},
{"yellow", S("Yellow Concrete Stairs"), S("Yellow Concrete Slab"), S("Double Yellow Concrete Slab"), "yellow"},
{"green", S("Green Concrete Stairs"), S("Green Concrete Slab"), S("Double Green Concrete Slab"), "dark_green"},
{"cyan", S("Cyan Concrete Stairs"), S("Cyan Concrete Slab"), S("Double Cyan Concrete Slab"), "cyan"},
{"blue", S("Blue Concrete Stairs"), S("Blue Concrete Slab"), S("Double Blue Concrete Slab"), "blue"},
{"magenta", S("Magenta Concrete Stairs"), S("Magenta Concrete Slab"), S("Double Magenta Concrete Slab"), "magenta"},
{"orange", S("Orange Concrete Stairs"), S("Orange Concrete Slab"), S("Double Orange Concrete Slab"), "orange"},
{"purple", S("Purple Concrete Stairs"), S("Purple Concrete Slab"), S("Double Purple Concrete Slab"), "violet"},
{"brown", S("Brown Concrete Stairs"), S("Brown Concrete Slab"), S("Double Brown Concrete Slab"), "brown"},
{"pink", S("Pink Concrete Stairs"), S("Pink Concrete Slab"), S("Double Pink Concrete Slab"), "pink"},
{"lime", S("Lime Concrete Stairs"), S("Lime Concrete Slab"), S("Double Lime Concrete Slab"), "green"},
{"light_blue", S("Light Blue Concrete Stairs"), S("Light Blue Concrete Slab"), S("Double Light Blue Concrete Slab"), "lightblue"},
{"white", S("White Concrete Stairs"), S("White Concrete Slab"), S("Double White Concrete Slab"), S("White Terracotta Stairs"), S("White Terracotta Slab"), S("Double White Terracotta Slab")},
{"grey", S("Grey Concrete Stairs"), S("Grey Concrete Slab"), S("Double Grey Concrete Slab"), S("Grey Terracotta Stairs"), S("Grey Terracotta Slab"), S("Double Grey Terracotta Slab")},
{"silver", S("Light Grey Concrete Stairs"), S("Light Grey Concrete Slab"), S("Double Light Grey Concrete Slab"), S("Light Grey Terracotta Stairs"), S("Light Grey Terracotta Slab"), S("Double Light Grey Terracotta Slab")},
{"black", S("Black Concrete Stairs"), S("Black Concrete Slab"), S("Double Black Concrete Slab"), S("Black Terracotta Stairs"), S("Black Terracotta Slab"), S("Double Black Terracotta Slab")},
{"red", S("Red Concrete Stairs"), S("Red Concrete Slab"), S("Double Red Concrete Slab"), S("Red Terracotta Stairs"), S("Red Terracotta Slab"), S("Double Red Terracotta Slab")},
{"yellow", S("Yellow Concrete Stairs"), S("Yellow Concrete Slab"), S("Double Yellow Concrete Slab"), S("Yellow Terracotta Stairs"), S("Yellow Terracotta Slab"), S("Double Yellow Terracotta Slab")},
{"green", S("Green Concrete Stairs"), S("Green Concrete Slab"), S("Double Green Concrete Slab"), S("Green Terracotta Stairs"), S("Green Terracotta Slab"), S("Double Green Terracotta Slab")},
{"cyan", S("Cyan Concrete Stairs"), S("Cyan Concrete Slab"), S("Double Cyan Concrete Slab"), S("Cyan Terracotta Stairs"), S("Cyan Terracotta Slab"), S("Double Cyan Terracotta Slab")},
{"blue", S("Blue Concrete Stairs"), S("Blue Concrete Slab"), S("Double Blue Concrete Slab"), S("Blue Terracotta Stairs"), S("Blue Terracotta Slab"), S("Double Blue Terracotta Slab")},
{"magenta", S("Magenta Concrete Stairs"), S("Magenta Concrete Slab"), S("Double Magenta Concrete Slab"), S("Magenta Terracotta Stairs"), S("Magenta Terracotta Slab"), S("Double Magenta Terracotta Slab")},
{"orange", S("Orange Concrete Stairs"), S("Orange Concrete Slab"), S("Double Orange Concrete Slab"), S("Orange Terracotta Stairs"), S("Orange Terracotta Slab"), S("Double Orange Terracotta Slab")},
{"purple", S("Purple Concrete Stairs"), S("Purple Concrete Slab"), S("Double Purple Concrete Slab"), S("Purple Terracotta Stairs"), S("Purple Terracotta Slab"), S("Double Purple Terracotta Slab")},
{"brown", S("Brown Concrete Stairs"), S("Brown Concrete Slab"), S("Double Brown Concrete Slab"), S("Brown Terracotta Stairs"), S("Brown Terracotta Slab"), S("Double Brown Terracotta Slab")},
{"pink", S("Pink Concrete Stairs"), S("Pink Concrete Slab"), S("Double Pink Concrete Slab"), S("Pink Terracotta Stairs"), S("Pink Terracotta Slab"), S("Double Pink Terracotta Slab")},
{"lime", S("Lime Concrete Stairs"), S("Lime Concrete Slab"), S("Double Lime Concrete Slab"), S("Lime Terracotta Stairs"), S("Lime Terracotta Slab"), S("Double Lime Terracotta Slab")},
{"light_blue", S("Light Blue Concrete Stairs"), S("Light Blue Concrete Slab"), S("Double Light Blue Concrete Slab"), S("Light Blue Terracotta Stairs"), S("Light Blue Terracotta Slab"), S("Double Light Blue Terracotta Slab")},
}
local canonical_color = "yellow"
@ -114,6 +114,11 @@ for i=1, #block.dyes do
block.dyes[i][3],
block.dyes[i][4])
mcl_stairs.register_stair_and_slab_simple("hardened_clay_"..c, "mcl_colorblocks:hardened_clay_"..c,
block.dyes[i][5],
block.dyes[i][6],
block.dyes[i][7])
if doc_mod then
if not is_canonical then
doc.add_entry_alias("nodes", "mcl_stairs:slab_concrete_"..canonical_color, "nodes", "mcl_stairs:slab_concrete_"..c)
@ -122,10 +127,21 @@ for i=1, #block.dyes do
minetest.override_item("mcl_stairs:slab_concrete_"..c, { _doc_items_create_entry = false })
minetest.override_item("mcl_stairs:slab_concrete_"..c.."_double", { _doc_items_create_entry = false })
minetest.override_item("mcl_stairs:stair_concrete_"..c, { _doc_items_create_entry = false })
doc.add_entry_alias("nodes", "mcl_stairs:slab_hardened_clay_"..canonical_color, "nodes", "mcl_stairs:slab_hardened_clay_"..c)
doc.add_entry_alias("nodes", "mcl_stairs:slab_hardened_clay_"..canonical_color.."_double", "nodes", "mcl_stairs:slab_hardened_clay_"..c.."_double")
doc.add_entry_alias("nodes", "mcl_stairs:stair_hardened_clay_"..canonical_color, "nodes", "mcl_stairs:stair_hardened_clay_"..c)
minetest.override_item("mcl_stairs:slab_hardened_clay_"..c, { _doc_items_create_entry = false })
minetest.override_item("mcl_stairs:slab_hardened_clay_"..c.."_double", { _doc_items_create_entry = false })
minetest.override_item("mcl_stairs:stair_hardened_clay_"..c, { _doc_items_create_entry = false })
else
minetest.override_item("mcl_stairs:slab_concrete_"..c, { _doc_items_entry_name = S("Concrete Slab") })
minetest.override_item("mcl_stairs:slab_concrete_"..c.."_double", { _doc_items_entry_name = S("Double Concrete Slab") })
minetest.override_item("mcl_stairs:stair_concrete_"..c, { _doc_items_entry_name = S("Concrete Stairs") })
minetest.override_item("mcl_stairs:slab_hardened_clay_"..c, { _doc_items_entry_name = S("Terracotta Slab") })
minetest.override_item("mcl_stairs:slab_hardened_clay_"..c.."_double", { _doc_items_entry_name = S("Double Terracotta Slab") })
minetest.override_item("mcl_stairs:stair_hardened_clay_"..c, { _doc_items_entry_name = S("Terracotta Stairs") })
end
end
end