carpets/init.lua

26 lines
488 B
Lua
Raw Normal View History

local modpath = minetest.get_modpath(minetest.get_current_modname())
2016-11-05 07:17:08 +01:00
dofile(modpath .. "/api.lua")
2016-09-04 17:09:25 +02:00
if minetest.get_modpath("wool") then
local nodenames = {
"wool:black",
"wool:blue",
"wool:brown",
"wool:cyan",
"wool:dark_green",
"wool:dark_grey",
"wool:green",
"wool:grey",
"wool:magenta",
"wool:orange",
"wool:pink",
"wool:red",
"wool:violet",
"wool:white",
"wool:yellow",
}
for _, nodename in ipairs(nodenames) do
carpets.register(nodename)
2016-09-04 17:09:25 +02:00
end
end