mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-11-15 15:00:19 +01:00
12 lines
422 B
Lua
12 lines
422 B
Lua
local dyes = {"white", "grey", "black", "red", "yellow", "green", "cyan",
|
|
"blue", "magenta", "orange", "violet", "brown", "pink",
|
|
"dark_grey", "dark_green"}
|
|
|
|
for _, name in ipairs(dyes) do
|
|
local node = ("wool:%s"):format(name)
|
|
if minetest.registered_nodes[node] then
|
|
stairsplus_legacy.register_legacy(node)
|
|
stairsplus.api.register_alias_all(("moreblocks:%s"):format(name), node)
|
|
end
|
|
end
|