2018-01-17 16:10:51 +01:00
|
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
2020-03-09 14:22:50 +01:00
|
|
|
local S = minetest.get_translator("carpets")
|
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
|
2020-03-09 14:22:50 +01:00
|
|
|
local nodes = {
|
2024-06-30 15:08:57 +02:00
|
|
|
{name="wool:black", description=S("Black carpet")},
|
|
|
|
{name="wool:blue", description=S("Blue carpet")},
|
|
|
|
{name="wool:brown", description=S("Brown carpet")},
|
|
|
|
{name="wool:cyan", description=S("Cyan carpet")},
|
|
|
|
{name="wool:dark_green", description=S("Dark Green carpet")},
|
|
|
|
{name="wool:dark_grey", description=S("Dark Grey carpet")},
|
|
|
|
{name="wool:green", description=S("Green carpet")},
|
|
|
|
{name="wool:grey", description=S("Grey carpet")},
|
|
|
|
{name="wool:magenta", description=S("Magenta carpet")},
|
|
|
|
{name="wool:orange", description=S("Orange carpet")},
|
|
|
|
{name="wool:pink", description=S("Pink carpet")},
|
|
|
|
{name="wool:red", description=S("Red carpet")},
|
|
|
|
{name="wool:violet", description=S("Violet carpet")},
|
|
|
|
{name="wool:white", description=S("White carpet")},
|
|
|
|
{name="wool:yellow", description=S("Yellow carpet")},
|
2017-03-16 23:53:55 +01:00
|
|
|
}
|
2020-03-09 14:22:50 +01:00
|
|
|
for _, node in ipairs(nodes) do
|
|
|
|
carpets.register(node.name, {description=node.description})
|
2016-09-04 17:09:25 +02:00
|
|
|
end
|
|
|
|
end
|