New translation system, part 9: Items, part 5
This commit is contained in:
parent
47c817d75a
commit
f9b557c2ba
13 changed files with 199 additions and 174 deletions
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_wool")
|
||||
|
||||
-- minetest/wool/init.lua
|
||||
|
||||
-- Backwards compatibility with jordach's 16-color wool mod
|
||||
|
@ -9,23 +11,23 @@ local wool = {}
|
|||
-- colors, and then some recipes using more specific colors for a few non-base
|
||||
-- colors available. When crafting, the last recipes will be checked first.
|
||||
wool.dyes = {
|
||||
-- name, texture, wool desc., carpet desc., dye, color_group
|
||||
{"white", "wool_white", "White Wool", "White Carpet", nil, "basecolor_white"},
|
||||
{"grey", "wool_dark_grey", "Grey Wool", "Grey Carpet", "dark_grey", "unicolor_darkgrey"},
|
||||
{"silver", "wool_grey", "Light Grey Wool", "Light Grey Carpet", "grey", "basecolor_grey"},
|
||||
{"black", "wool_black", "Black Wool", "Black Carpet", "black", "basecolor_black"},
|
||||
{"red", "wool_red", "Red Wool", "Red Carpet", "red", "basecolor_red"},
|
||||
{"yellow", "wool_yellow", "Yellow Wool", "Yellow Carpet", "yellow", "basecolor_yellow"},
|
||||
{"green", "wool_dark_green", "Green Wool", "Green Carpet", "dark_green", "unicolor_dark_green"},
|
||||
{"cyan", "wool_cyan", "Cyan Wool", "Cyan Carpet", "cyan", "basecolor_cyan"},
|
||||
{"blue", "wool_blue", "Blue Wool", "Blue Carpet", "blue", "basecolor_blue"},
|
||||
{"magenta", "wool_magenta", "Magenta Wool", "Magenta Carpet", "magenta", "basecolor_magenta"},
|
||||
{"orange", "wool_orange", "Orange Wool", "Orange Carpet", "orange", "excolor_orange"},
|
||||
{"purple", "wool_violet", "Purple Wool", "Purple Carpet", "violet", "excolor_violet"},
|
||||
{"brown", "wool_brown", "Brown Wool", "Brown Carpet", "brown", "unicolor_dark_orange"},
|
||||
{"pink", "wool_pink", "Pink Wool", "Pink Carpet", "pink", "unicolor_light_red"},
|
||||
{"lime", "mcl_wool_lime", "Lime Wool", "Lime Carpet", "green", "basecolor_green"},
|
||||
{"light_blue", "mcl_wool_light_blue", "Light Blue Wool", "Light Blue Carpet", "lightblue", "unicolor_light_blue"},
|
||||
-- name, texture, wool desc., carpet desc., dye, color_group
|
||||
{"white", "wool_white", S("White Wool"), S("White Carpet"), nil, "basecolor_white"},
|
||||
{"grey", "wool_dark_grey", S("Grey Wool"), S("Grey Carpet"), "dark_grey", "unicolor_darkgrey"},
|
||||
{"silver", "wool_grey", S("Light Grey Wool"), S("Light Grey Carpet"), "grey", "basecolor_grey"},
|
||||
{"black", "wool_black", S("Black Wool"), S("Black Carpet"), "black", "basecolor_black"},
|
||||
{"red", "wool_red", S("Red Wool"), S("Red Carpet"), "red", "basecolor_red"},
|
||||
{"yellow", "wool_yellow", S("Yellow Wool"), S("Yellow Carpet"), "yellow", "basecolor_yellow"},
|
||||
{"green", "wool_dark_green", S("Green Wool"), S("Green Carpet"), "dark_green", "unicolor_dark_green"},
|
||||
{"cyan", "wool_cyan", S("Cyan Wool"), S("Cyan Carpet"), "cyan", "basecolor_cyan"},
|
||||
{"blue", "wool_blue", S("Blue Wool"), S("Blue Carpet"), "blue", "basecolor_blue"},
|
||||
{"magenta", "wool_magenta", S("Magenta Wool"), S("Magenta Carpet"), "magenta", "basecolor_magenta"},
|
||||
{"orange", "wool_orange", S("Orange Wool"), S("Orange Carpet"), "orange", "excolor_orange"},
|
||||
{"purple", "wool_violet", S("Purple Wool"), S("Purple Carpet"), "violet", "excolor_violet"},
|
||||
{"brown", "wool_brown", S("Brown Wool"), S("Brown Carpet"), "brown", "unicolor_dark_orange"},
|
||||
{"pink", "wool_pink", S("Pink Wool"), S("Pink Carpet"), "pink", "unicolor_light_red"},
|
||||
{"lime", "mcl_wool_lime", S("Lime Wool"), S("Lime Carpet"), "green", "basecolor_green"},
|
||||
{"light_blue", "mcl_wool_light_blue", S("Light Blue Wool"), S("Light Blue Carpet"), "lightblue", "unicolor_light_blue"},
|
||||
}
|
||||
|
||||
for _, row in ipairs(wool.dyes) do
|
||||
|
@ -38,7 +40,7 @@ for _, row in ipairs(wool.dyes) do
|
|||
-- Node Definition
|
||||
minetest.register_node("mcl_wool:"..name, {
|
||||
description = desc_wool,
|
||||
_doc_items_longdesc = "Wool is a decorational block which comes in many different colors.",
|
||||
_doc_items_longdesc = S("Wool is a decorational block which comes in many different colors."),
|
||||
stack_max = 64,
|
||||
is_ground_content = false,
|
||||
tiles = {texture..".png"},
|
||||
|
@ -49,7 +51,7 @@ for _, row in ipairs(wool.dyes) do
|
|||
})
|
||||
minetest.register_node("mcl_wool:"..name.."_carpet", {
|
||||
description = desc_carpet,
|
||||
_doc_items_longdesc = "Carpets are thin floor covers which come in many different colors.",
|
||||
_doc_items_longdesc = S("Carpets are thin floor covers which come in many different colors."),
|
||||
walkable = false, -- See <https://minecraft.gamepedia.com/Materials>
|
||||
is_ground_content = false,
|
||||
tiles = {texture..".png"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue