3 -- Load support for MT game translation.
4 local S = minetest.get_translator("wool")
9 local name, desc = unpack(dyes[i])
11 minetest.register_node("wool:" .. name, {
12 description = S(desc .. " Wool"),
13 tiles = {"wool_" .. name .. ".png"},
14 is_ground_content = false,
15 groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
16 flammable = 3, wool = 1},
17 sounds = default.node_sound_defaults(),
20 minetest.register_craft{
22 output = "wool:" .. name,
23 recipe = {"group:dye,color_" .. name, "group:wool"},
28 -- Backwards compatibility with jordach's 16-color wool mod
29 minetest.register_alias("wool:dark_blue", "wool:blue")
30 minetest.register_alias("wool:gold", "wool:yellow")
32 -- Dummy calls to S() to allow translation scripts to detect the strings.
33 -- To update this run:
34 -- for _,e in ipairs(dye.dyes) do print(("S(%q)"):format(e[2].." Wool")) end