moreblocks/stairsplus_legacy/wool.lua

12 lines
422 B
Lua
Raw Normal View History

local dyes = {"white", "grey", "black", "red", "yellow", "green", "cyan",
"blue", "magenta", "orange", "violet", "brown", "pink",
"dark_grey", "dark_green"}
2022-06-21 00:17:28 +02:00
for _, name in ipairs(dyes) do
local node = ("wool:%s"):format(name)
2022-07-01 03:31:44 +02:00
if minetest.registered_nodes[node] then
stairsplus_legacy.register_legacy(node)
stairsplus.api.register_alias_all(("moreblocks:%s"):format(name), node)
end
end