2017-01-11 22:17:47 +01:00
|
|
|
for _,name in ipairs({"red", "green", "white", "black", "blue", "brown", "cyan",
|
2017-01-12 00:11:38 +01:00
|
|
|
"grey", "dark_green", "dark_grey", "magenta", "orange", "pink",
|
2017-01-11 22:17:47 +01:00
|
|
|
"red", "violet", "yellow"}) do
|
|
|
|
local nodename = "wool:"..name
|
|
|
|
local tmp = minetest.registered_nodes[nodename]
|
|
|
|
if not tmp then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
local desc = tmp.description
|
2017-01-11 22:55:47 +01:00
|
|
|
stairs.register_stair_and_slab(name, nodename,
|
2017-01-11 22:17:47 +01:00
|
|
|
tmp.groups,
|
|
|
|
{"wool_"..name..".png"},
|
|
|
|
desc.." Stair",
|
|
|
|
desc.." Slab",
|
|
|
|
tmp.sounds
|
|
|
|
)
|
|
|
|
end
|