1 local S
= minetest
.get_translator("gluncarp")
4 {"black", S("Black Carpet")},
5 {"blue", S("Blue Carpet")},
6 {"brown", S("Brown Carpet")},
7 {"cyan", S("Cyan Carpet")},
8 {"dark_green", S("Dark Green Carpet")},
9 {"dark_grey", S("Dark Grey Carpet")},
10 {"green", S("Green Carpet")},
11 {"grey", S("Grey Carpet")},
12 {"magenta", S("Magenta Carpet")},
13 {"orange", S("Orange Carpet")},
14 {"pink", S("Pink Carpet")},
15 {"red", S("Red Carpet")},
16 {"violet", S("Violet Carpet")},
17 {"white", S("White Carpet")},
18 {"yellow", S("Yellow Carpet")},
19 {"blackgold", S("Black and Gold Carpet")},
22 for i
in ipairs(carpet_tab
) do
23 local carpetname
= carpet_tab
[i
][1]
24 local carpetdesc
= carpet_tab
[i
][2]
26 minetest
.register_node("gluncarp:"..carpetname
, {
27 description
= carpetdesc
,
29 tiles
= {"gluncarp_"..carpetname
..".png"},
30 inventory_image
= "gluncarp_"..carpetname
.."_inv.png",
31 wield_image
= "gluncarp_"..carpetname
..".png",
33 is_ground_content
= false,
36 wield_scale
= { x
=1, y
=1, z
=0.5 },
39 fixed
= {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
41 groups
= {dig_immediate
=2, carpet
=1, attached_node
=1},
42 sounds
= hades_sounds
.node_sound_defaults(),