20 lines
553 B
Lua
20 lines
553 B
Lua
local name = {"red", "green", "white", "black", "blue", "brown", "cyan",
|
|
"grey", "dark_green", "dark_grey", "magenta", "orange", "pink",
|
|
"red", "violet", "yellow"}
|
|
for i = 1, 16 do
|
|
local name = name[i]
|
|
local nodename = "wool:"..name
|
|
local tmp = minetest.registered_nodes[nodename]
|
|
if not tmp then
|
|
return
|
|
end
|
|
local desc = tmp.description
|
|
stairs.register_stair_and_slab(name, nodename,
|
|
tmp.groups,
|
|
{"wool_"..name..".png"},
|
|
desc.." Stair",
|
|
desc.." Slab",
|
|
tmp.sounds
|
|
)
|
|
end
|