illuna/stairs.lua

20 lines
553 B
Lua
Raw Normal View History

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]
2017-01-11 22:17:47 +01:00
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