2018-01-17 16:10:51 +01:00
|
|
|
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
|
|
|
|
2018-01-17 16:10:51 +01: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",
|
2017-03-16 23:53:55 +01:00
|
|
|
}
|
2018-01-17 16:10:51 +01:00
|
|
|
for _, nodename in ipairs(nodenames) do
|
|
|
|
carpets.register(nodename)
|
2016-09-04 17:09:25 +02:00
|
|
|
end
|
|
|
|
end
|